Replies: 1 comment 2 replies
-
I don't fully understand the problem as stated but that could just be a me thing.
I'm interpreting this statement as; you don't want a message that is pending for say Account A to block processing for all other messages when you have messages for Account B C and D. In that case, using the Advanced Queue Settings Queue Threads to a value N greater than 1 and using a Thread Assignment Variable will allow messages from up to N accounts to process simultaneously while keeping the sequence of messages with respect to the accounts. You could still get "deadlocked" if all N accounts are stuck in a pending state from the upstream responding system.
I just don't understand this statement. I'm not sure which record from where and what you mean by sent back. |
Beta Was this translation helpful? Give feedback.
-
I'm looking to get some feedback on a process flow I'm designing and I'm falling short.
The problem I'm trying to solve is when the initial record is sent and the HTTP receiver sends back a 'locked' response message and that same record is sent again some time later (but the initial record is still hasn't been successfully processed). I need to maintain FIFO as this drives the process flow for the receiver destination.
I tried Message Queuing but from what I initially saw, the account was trying to constantly get processed but it was locked so it was in a loop. This prevented other messages from being processed which I can't have happen.
I created another interface that takes the response from the main interface which works but the logical issue I'm having a problem with is when another instance of that record is sent and needs to be sent back. The original message hasn't been processed and I can't cleanly think of a way to handle this.
I can share code if needed but I'm wondering if I'm not using the Queueing feature correctly.
I have queue messages on failure
Retry count: 3
Rotate Queue: no (need to maintain FIFO)
Regen template: yes
Include filter/transformer: yes
I set the response status of the message when I receive a 'lock' in the header response.
Edit:
Napkin note:
if the account is locked, then set the updatedby to queued
if the account is locked a second time, then set the updated to queued
when the account's first entry is successful, set the updated to processed and retry the second entry
we need to maintain FIFO
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions