Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actor client SDK requires actor implementation #417

Open
danielgerlag opened this issue Oct 27, 2022 · 2 comments
Open

Actor client SDK requires actor implementation #417

danielgerlag opened this issue Oct 27, 2022 · 2 comments

Comments

@danielgerlag
Copy link

It seems the to use the JS SDK for actors, the client invoking a remote actor needs a copy of the implementation code in order to register the actor... drilling into the code, it looks like the only reason for this is to get the name of the actor type. Would it be possible to have an overload to create the proxy builder that does not require passing in the implementation, but rather just the actor type name?

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 4, 2023

This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

@jasonvasquez
Copy link

Just to add, this detail is important to me as well. Within a larger application suite, I am attempting to expose an actor-enabled library to the rest of the application without exposing the implementation. As a work-around, I now have created client-side "fake" Actor implementations that share the implementation name and implement the Actor's interface. This works, but isn't ideal.

If, as an alternative, we could pass a constant identifying the Actor, that would work fine here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants