Editorial question133.7K views1,444 votes1 answer1 comment2,258 following
AI-generatedHow does Akka handle an actor's mailbox when a Kill message triggers a supervisor restart?
In an Akka system, an actor can be terminated by sending a Kill message, which throws an ActorKilledException and is processed by the actor's supervisor. Assuming the default supervisor strategy (which stops the actor and then restarts it), what happens to the messages that were already in the actor's mailbox at the moment the Kill was processed? Are those m