We are using Azure services for this, and we have a web api (Flask) running on Azue Web Service App, connected to a PostgreSQL in a different service (so far so good, although the connection is a bit slow). Anyway, there is an action performed by users that triggers a process. Basically, we need to pre-process thousands of records (between 1000 and 5000), and processing each one takes between 5 and 10 seconds.
We thought in using Azure Functions to this, and trigger thousands of http requests. But the requests are not parallelized, even when we added more instances. It seems they are queued. I talked to Azure support and they told me this may not the best solution, since Azure functions are expected to run quick, not take several seconds to perform.
So my question is: what's the best architecture for doing something like this on Azure? I read about something called Event Grid, but I have no clue (first time using Azure). The basic solution would be to have a VM, that can receive parameters and start processes, but that's something that would be too complicated (and we don't have a devops in our team that could take care of that).
Thanks in advance.