Hi Andy McCormick Thanks for reaching out. You’re correct that the Azure SDK for PHP has entered a retirement phase and is no longer officially supported by Microsoft. https://zcusa.951200.xyz/en-us/azure/service-bus-messaging/service-bus-php-how-to-use-queues However, you can still use the Azure Service Bus with PHP through the REST API. https://zcusa.951200.xyz/en-us/azure/service-bus-messaging/service-bus-php-how-to-use-queues.
In PHP, you could implement long-polling by making an HTTP request to your Service Bus endpoint and setting a high timeout value. If no messages are available, the server will hold the connection open until a message arrives or the timeout is reached. If a message is received, you can process it and then immediately make another request, effectively keeping a constant connection open.
but in terms of efficiency, it is hard to tell, ideally it should be something like -->GET call wait for X amount of time--->receives messages--->call GET again.
this should make the trick, but the only thing will be the performance, if you are planning high throughput then it might not be the best choice.
Let me know in case of further queries, I would be glad to assist you.
Please "Upvote" and "Accept" if the answer is helpful so that it can help others in the community.