I have some microservices which post message in queue and then one my listen function listen it and do a further process.
I set Lock time for 120 sec but what is best way to determine and set lock time for queue listener. cos I have 10 replica of same function running at same time and I want to make sure if any function pick that message it must be lock until it complete process.
I put random number now as 120 lock time but what is way to calculate it if we are calling some other api from that listener function cos we are not sure how other api are going to behave.