C
C#4mo ago
Jii

Need Help with Rate Limiting in Azure Function App (C#, Version 4, In-Process)

Hello everyone! Is anyone here experienced with Azure Function Apps, particularly C# developers? I have a question about applying rate limiting for the same request. Specifically, I need to limit the number of OTP generation attempts for a single email address within a specific time frame. The email address is passed in the request body. Just a note, the Azure Function App is running on version 4 with In-Process (not isolated). Any guidance would be appreciated.
2 Replies
Mayor McCheese
Mayor McCheese4mo ago
I'd consider something like durable entities, it's basically an actor model within function apps. https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-entities
Durable entities - Azure Functions
Learn what durable entities are and how to use them in the Durable Functions extension for Azure Functions.
Mayor McCheese
Mayor McCheese4mo ago
Also in process is dead It won't be supported going forward
Want results from more Discord servers?
Add your server