case classHighPriorityAckMailbox(settings: Settings, config: Config) extends PriorityUnboundedDequeMailbox with Product with Serializable
When using context.become to wait for an Ack, then Ack will
normally be placed at the end of the queue. This custom mailbox
will prioritise Ack messages so that they are always placed at
the front of the queue.
This showed a performance improvement of 1 hour to 2 minutes when
sending about 100,000 messages, as the client actor was spending
the vast majority of its time traversing the work queue and
re-stashing messages.
Linear Supertypes
Serializable, Serializable, Product, Equals, PriorityUnboundedDequeMailbox, ProducesMessageQueue[MessageQueue], MailboxType, AnyRef, Any
When using
context.becometo wait for anAck, thenAckwill normally be placed at the end of the queue. This custom mailbox will prioritiseAckmessages so that they are always placed at the front of the queue.This showed a performance improvement of 1 hour to 2 minutes when sending about 100,000 messages, as the client actor was spending the vast majority of its time traversing the work queue and re-stashing messages.