Does Azure Container Apps bill after the response to a request is sent back to client?

Lyubomir-3610 0 Reputation points
2023-05-09T14:27:45.0466667+00:00

How i think it works is 1. request comes 2. Request is handled for about 15 seconds 3. response sent back 4. some time passes without requests (maybe 15 minutes?) 5. scale to 0 stops the container.

Am i billed for step 4. ? Is this the way Azure Container Apps works?

I'm trying to compare it with Google Cloud Run CPU-only-during-requests allocation: https://cloud.google.com/run/pricing#billable-time.

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
325 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 69,946 Reputation points
    2023-05-10T05:56:13.14+00:00

    @Lyubomir-3610 Thanks for reaching out.

    The billing differs depending upon which plan you have created your Azure Container apps.

    Let's say if you are under the consumption plan and if you are in idle state then the usage is charged at a reduced idle rate when a replica is inactive. The billing document already covers this in detail: https://azure.microsoft.com/en-us/pricing/details/container-apps/

    To answer your question

    1. request comes :
    2. Request is handled for about 15 seconds
    3. response sent back

    You will be charged per second based on CPU and memory for 15 seconds. If there are n replica, then it would be n * per second based on CPU * per second based on memory * 15 (sec) for consumption plan

    1. some time passes without requests (maybe 15 minutes?)
    2. scale to 0 stops the container.

    You will still be charged based on Idle usage price for consumption plan $0.000003 per second each for CPU and memory * min replicas during that time * time (in sec)

    You can also refer to the billing document: https://video2.skills-academy.com/en-us/azure/container-apps/billing

    To calculate the pricing please refer to this : https://azure.microsoft.com/en-us/pricing/calculator/

    Feel free to get back to me if you have any queries or concerns.

    Please "Accept Answer" if the answer is helpful so that it can help others in the community.

    0 comments No comments