...
After these operations are completed, the temporary queues are drained and the event is added to the HARegionQueue. The diagrams below show the different put paths in detail.
Delivering/Dispatching Events to Client:
...
The diagram below shows a simplified view of the queue removal logic.
Memory Optimization:
...