Backpressure and Flow Control
actors backpressure
Backpressure and Flow Control A common misconception is that actor systems automatically handle unlimited message rates. In reality, every actor has finite processing capacity. Unbounded mailboxes may lead to increased memory usage and eventually to process failure.
Strategies inside Proto.Actor Bounded mailboxes limit how many messages an actor can queue. Throttling or work pulling lets actors request work only when ready. Batching aggregates many messages into one processing unit. When external queues help If producers outrun consumers for extended periods, or if you need durable buffering, place a persistent queue or log in front of the actor system.
Read more...