I’m looking for a way of multiple processes (on different hosts!) updating something similar to a std::deque; I need to be able to insert/pop and get/update ‘at’* any place in the container. I’ve had a few ideas of how to do this but I don’t want to roll my own, so could anyone suggest something I could use? like a message queue implementation that I’ve not heard of?
I’m wondering about wrapping a deque in its own process and calling it MyOwnSpecialMessageQueue?
or a static array in shared mem but I can see the push/pop being expensive and I’d have to protect against another process modifying it at the same time.
or… chaining multiple mq’s together, thus letting me get the random access I want.
Any ideas much appreciated, thanks
(*note once setup, the at’s will always be at the same index into a fixed size queue)