Hi there,
I have a need across multiple web servers to
- Receive an inbound message
- Retrieve keys a, b and c from said message (what the keys are is not important. They just uniquely identify this message as being a part of a given group)
- Persist this message to Hangfire persistence with both the message and the keys (as in BackgroundJob.Enqueue(() => ProcessMessage(Message, Key1, Key2, Key3));
- When this message is picked up for processing, have the backgroundserver process ONLY messages which match particular keys.
What I don’t want is to have the background server pick up a message, read it, realize this is not a message it cares about (based on the keys) and stuff it back on the queue. The expected behaviour would be that the background server would receive a message only if it was configured to read such messages.
Is such a thing possible using Hangfire?