scaling of azure functions

Anonymous
2023-07-13T02:08:43.36+00:00

As shown in the image, Functions and Web Apps are deployed in the same App Services.

If WebApp scales, will Functions scale together?

And if functions are scaled, will the data in IoTHub be stored in MongoDB in duplicate?image

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
{count} votes

Answer accepted by question author
  1. VenkateshDodda-MSFT 25,241 Reputation points Microsoft Employee Moderator
    2023-07-13T05:25:12.11+00:00

    @Anonymous Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.

    Since both Function App and App service are residing in the same app service, if we scale out the WebApp to some N instance which is nothing but scaling your app service plan to those N instances so both function App and Web App will run on those N instances.

    Scaling is designed to make sure that your application is running even in peak traffic time by increasing the number of instances of your application to handle the different incoming requests, by using this same request won't be handle by newly scaled instances and it will not create any duplicate records in MongoDB.

    Feel free to reach back to me if you have any further questions on this.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.