Sorry for the late reply.
The events (SendDataEvent and OnDataReceived) are not in the same process.
The producer can produce data and add to queue at any time
And reply may be received after an hour or a day... so I've background job to fetch replies and triggers (OnDataReceived)...
That's why I think I need persistence queue with some locking mechanism.
Since there is potential that reply is received while new Data is generated, etc.
|