Azure WebJob (created using Azure WebJob SDK) with QueueTrigger is configured to process messages added to 'queue1'. https://learn.microsoft.com/en-us/azure/app-service/webjobs-sdk-get-started
This webjob will have multiple instances (e.g. 3 instances) of it running simultaneously and all of them poll for messages sent to the same queue 'queue1'.
Is it possible for more than 1 instance to dequeue the same message at the same time? If yes, is it our webjob's responsibility to have distributed locking mechanism to allow message processing only once (if that's the goal)?

webjobsrun in parallel.Azure WebJobs uses a new feature
leaseto ensure each meassage is processed only by one instance at a time.The
WebJobs SDKsupports distributed processing of message from a queue.Yes, when more than 1 instance of
WebJobsare running there are changes to process the same message from the queue. To avoid this, we can useSingletonAttributeas mentioned in the MSDoc.The
WebJobhas to implement the distributed locking mechanism.As mentioned in Multiple instances