Hello @Alberto Morando,
welcome to this moderated Azure community forum.
Although I use C#, Azure Functions are reliable in my situation.
10Hz could be a challenge if you have to do the scaling yourself because you need to monitor the resource usage.
Can you first test the Azure Function being triggered while no actual logic being executed?
So you only log the separate calls and show 10Hz is not an issue?
This way, is this works well, the challenge could be the DB connection.
I'm not an expert regarding Python, but it seems you are creating and destroying a DB connection with EVERY call, 10 times a second.
Can you reuse an existing connection that survives the stateless Function calls?
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.