Allowing Messages with Priority
- Problem: cached data which may be updated
- All update requests should be handled before get requests
- Messages will be processed in a different order than they arrive
- All get requests can be treated equivalently
- Attributes of the problem
- Two message types: priority and normal
- Handle all priority messages in the order received
- If no priority message exists, handle normal messages
- When a priority message arrives, handle it as the next message processed
- The problem doesn't sound difficult, but it is not easily solved
- Recommendation: avoid using message priorities
- Sometimes you just can't