Messaging Patterns
Actors communicate by exchanging messages. Proto.Actor supports several common patterns that build on this simple foundation.
- Send – fire and forget, the sender does not expect a reply.
- Ask Pattern – request–response using
Request
orRequestAsync
. - Envelope Pattern – batch multiple messages and acknowledge them as a unit.
- Routing – use Routers to distribute work across actors or forward messages.
The diagram below summarizes how messages can be routed and queued.