At the moment I am trying to build a python process which constantly listen for new events that come from a Rest API using server-send-events (SSE/EventSource) and then ingest those into Azure event hub automatically.
So what is the best practice to automate those steps? Using Azure Functions with some kind of trigger? Or just running an infinte loop in a script in which an API listener gets the data and put it to the event hub?