A TCP Host server is located on-premises. Now from Azure environment I need to connect with the host server. Once the connection is established, the host server will be sending messages continuously, and the received messages will be forwarded to Azure Service Bus queue.
I was given the following architecture(simplified). The architecture proposes a function app which will be used to connect with the on-prem server, and then receives messages continuously, and then place the messages on to the service bus queue.
Per Microsoft guidelines it says we must avoid long running functions, as it causes timeout issues.
Considering the above requirement (establishing connection and receiving messages - i.e. long running task) and MS guidelines, is Azure Function a right choice? I believe a web job or a web app would be a better fit for this purpose.
