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

[java-sdk] Java Actor runtime #29

Closed
artursouza opened this issue Dec 9, 2019 · 1 comment
Closed

[java-sdk] Java Actor runtime #29

artursouza opened this issue Dec 9, 2019 · 1 comment
Assignees
Labels
triaged/resolved Items triaged and ready

Comments

@artursouza
Copy link
Member

Creating the Java Actor runtime classes, similar to the one in the Dotnet sdk.

Implementing the API endpoints for the SDK. The business logic should be (preferably) identical to the one in the Dotnet SDK.

Following are some of the few classes in C# SDK;

ActorRuntime: This is the actor runtime in SDK and contains information about registered types. It contains a mapping of ActorType and ActorManager. Actor types are registered with ActorRuntime.

ActorManager: It manages actors instances for an actor type, activates, deactivates them and make method calls to them.

ActorStateManager: Abstracts state management for Actors, provides a cache for Actor states, so that states which have already been worked on are not fetched again from Dapr for an active actor.

Actor: Base class for Actors. (In Java it can be called DaprActor)

DaprStateProvide: ActorStateManager uses it to interact with Dapr for state management.

RouterBuilderExtensions: This is for registering routes with aspnetcore, it registers the required routes (urls) on which Dapr runtime will call into user service code.

@artursouza
Copy link
Member Author

Unit tests to close on this issue: #85 #86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged/resolved Items triaged and ready
Projects
None yet
Development

No branches or pull requests

2 participants