The growing adoption of serverless container services has created challenges in selecting optimal cloud platforms for production LLM deployments, yet comparative performance evaluations remain limited. This study evaluates AWS Fargate and Azure Container Apps for LLM deployments, investigating whether architectural differences cause substantial performance variations under diverse load patterns. We conducted systematic experiments using containerized Llama 3.2:1b across multiple scenarios: baseline measurements, inference tests with varying prompt lengths, streaming API performance, and concurrent load testing with progressive scaling. Each scenario was executed on both standard and auto-scaled infrastructure with 10 runs per configuration to ensure statistical reliability. Key findings reveal distinct platform characteristics: AWS Fargate demonstrates superior baseline API response times and time-to-first-token performance, while Azure Container Apps consistently outperforms AWS in inference processing for short and medium prompts with better consistency across test runs. Streaming performance shows platform-specific trade-offs, with AWS achieving lower initial latency but Azure providing superior token generation consistency. Under concurrent loads, both platforms maintain full capacity at lower concurrency levels, but AWS exhibits exponential response time degradation at higher loads while Azure shows more linear, predictable scaling behavior. Statistical analysis confirms significant performance differences across all metrics, validating that platform architecture fundamentally impacts LLM deployment performance. These findings indicate platform selection should align with specific workload requirements: AWS Fargate for latency-critical applications with steady loads, and Azure Container Apps for inference-intensive workloads requiring robust scaling and consistency. This study offers crucial benchmarking data for businesses deploying production-grade AI services on serverless container platforms.
References
[1] Abraham A., Yang J.: Analyzing the system features, usability, and performance of a containerized application on serverless cloud computing systems. Research Square 2023 [https://doi.org/10.21203/rs.3.rs-3167840/v1].
[2] Agache A. et al.: Firecracker: Lightweight virtualization for serverless applications. 17th USENIX Symposium on Networked Systems Design and Implementation (NSDI '20), 2020, 419–434.
[3] Dittakavi R. S. S.: Cold start latency in serverless computing: Current trends and mitigation techniques. EDUZONE: International Peer Reviewed/Refereed Multidisciplinary Journal 12(2), 2023, 134–138.
[4] Golec M. et al.: Cold start latency in serverless computing: A systematic review, taxonomy, and future directions (Appendix). Journal of ACM 37(4), 2024, 1–8.
[5] Jain P. et al.: Performance analysis of various server hosting techniques. Procedia Computer Science 173, 2020, 70–77 [https://doi.org/10.1016/j.procs.2020.06.010].
[6] Jonnakuti S.: LLMs in the cloud: Best practices for scaling generative AI in regulated industries. International Journal of Engineering Technology Research & Management 8(2), 2024, 105–112.
[7] Llama3.2:1b. Meta, 2024 [https://ollama.com/library/llama3.2:1b].
[8] McGrath G., Brenner P. R.: Serverless computing: Design, implementation, and performance. IEEE 37th International Conference on Distributed Computing Systems Workshops (ICDCSW), 2017, 405–410 [https://doi.org/10.1109/ICDCSW.2017.36].
[9] MSV J.: The evolution of serverless container platform on AWS Fargate. The New Stack, 2019 [https://thenewstack.io/the-evolution-of-serverless-container-platform-on-aws-fargate/].
[10] Ollama. GitHub - ollama/ollama: Get up and running with Llama 3.3, DeepSeek-R1, Phi-4, Gemma 3, Mistral Small 3.1 and other large language models. GitHub, 2025 [https://github.com/ollama/ollama].
[11] Petrovski T., Gusev M.: Container vs function as a service: Impact on cloud deployment for real-world applications. 47th MIPRO ICT and Electronics Convention (MIPRO), 2024, 869–874 [https://doi.org/10.1109/MIPRO60963.2024.10569811].
[12] Roloff E. et al.: High performance computing in the cloud: Deployment, performance and cost efficiency. IEEE 4th International Conference on Cloud Computing Technology and Science (CloudCom). Taipei, Taiwan, 2012, 371–378 [https://doi.org/10.1109/CloudCom.2012.6427549].
[13] Sadaqat M., Sánchez-Gordón M., Colomo-Palacios R.: Benchmarking serverless computing: Performance and usability. Journal of Information Technology Research 15(1), 2022, 1–17 [https://doi.org/10.4018/JITR.299374].
[14] Sagi S.: Overcoming challenges in deploying large language models for generative AI use cases: The role of containers and orchestration. International Journal of Computer Trends and Technology 72(2), 2024, 75–81 [https://doi.org/10.14445/22312803/IJCTT-V72I2P114].
[15] Seth D., Chintale P.: Performance benchmarking of serverless computing platforms. International Journal of Computer Trends and Technology 72(6), 2024, 160–167 [https://doi.org/10.14445/22312803/IJCTT-V72I6P121].
[16] Shrestha R., Nisha B.: Performance evaluation and comparison of microservices and serverless deployments in cloud. IEEE 8th International Conference on Smart Cloud (SmartCloud). Tokyo, Japan, 2023, 202–207 [https://doi.org/10.1109/SmartCloud58862.2023.00043].
[17] Srivastava S. et al.: The future of AI in production: Leveraging Kubernetes for Large Language Model deployment. International Journal for Multidisciplinary Research 7(1), 2025, 1–18.
[18] Stroh D., Mailach A., Siegmund N.: Themes of building LLM-based applications for production: A practitioner's view. arXiv preprint arXiv:2411.08574v2, 2024.
[19] Synergy Research Group: Cloud Market Jumped to $330 billion in 2024 – GenAI is Now Driving Half of the Growth. [https://www.srgresearch.com/articles/cloud-market-jumped-to-330-billion-in-2024-genai-is-now-driving-half-of-the-growth] (avaible: 7.06.2025).
[20] Waseem M. et al.: Containerization in multi-cloud environment: Roles, strategies, challenges, and solutions for effective implementation. arXiv preprint arXiv:2403.12980v2, 2024.