In combination with #6, a way to limit the queue in size would be helpful as well. This may be trickier to achieve if items are added from both sides.