I'm using Azure service bus queue and I have a worker which takes a message and processes it for ~15 minutes whereas the maximum queue message lock is for 5 minutes. I have noticed in the logs that one process is taking this message and start processing it and after like 7 minutes a second process is taking the same message (the message lock duration time is over) and start processing it too. While the 2nd process is working the 1st process finishes and returns true to the service bus, and then the 2nd process logs are gone, like it's disappearing. when processing a message service bus is picking the message and when it's over it's popping the message from the queue, I'm thinking that maybe this is the reason for this weird behavior but I couldn't find any information about it in the documentation. can anyone clarify this point? what happen if message processing is done and popped from the queue while the same message is being processed by another processor?
BTW I know that there is an option to renew the lock but I couldn't find a good way to do it on nodejs.