A simple message queue
Message queue means that you put something in a place, someone else could get it. Two keys are essential:
- The producer put the message in sequence.
- The consumer get the message also in sequence.
Consumer handles itself message position, which is independent with message production.