Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1362

In Akka Typed, what constitutes an Actor

$
0
0

@ignatius wrote:

I’m coming from Classic Actors and I’m learning Typed Actors. I’d like to gain some more intuition about the relationship between the ActorContext and a Behavior.

With classic Actors it is clear what an Actor is. An actor is literally an Actor instance. Ironically, with Typed Actors we no longer have any actors, it seems. We only have Behaviors and ActorContexts.

I can create a Behavior that doesn’t have an ActorContext, and I believe I can create multiple ActorContexts for a single Behavior by nesting setups (even though I think this is not intended). The Behavior that has access to a context can change.

Coming from classic Actors, how can I gain some intuition of what an ActorContext is? Where are the boundaries where an Actor begins and ends? What owns an ActorContext / what does an ActorContext own?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1362

Trending Articles