Yes, I could think of same approach but then the below Issues might encounter.
- On each call from consume operation, does it do bind and unbind? or the session persists for some time? Will it be a problem from soalce Infra , If the consume operations called multiple times in a loop?
- It could fail , If there is a time out from front end application while we are processing in mulesoft.
- Error handling would be much difficult. Depending on the load.
I don’t think it is even possible with AMQ, I totally agree Ideal case should be from a db but here we need process this data from downstream applications and put in to queue