Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
GenAI in Production: Scale LLM Apps with FastAPI & LLMOps
New
13 students

GenAI in Production: Scale LLM Apps with FastAPI & LLMOps

Master scaling and operating GenAI in production with FastAPI, LLMOps pipelines, traffic routing, and guardrails.
Created byACHRAF ER-RAYA
Last updated 9/2026
English

What you'll learn

  • Scale GenAI traffic using FastAPI gateway controls, token-bucket rate limiting in Redis, dynamic batching, and dynamic provider fallbacks.
  • Deploy continuous LLMOps pipelines featuring automated prompt evaluations, guardrails, and zero-downtime model rollouts on Kubernetes.
  • Secure LLM applications using input/output guardrails, real-time prompt injection filters, and automated PII redaction on production data.
  • Implement full distributed tracing and observability for GenAI workloads using OpenTelemetry to optimize TTFT, token costs, and latency.

Course content

5 sections • 9 lectures • 1h 56m total length
  • Scaling GenAI Traffic with FastAPI Routing Controls10:36
  • Scaling GenAI Traffic with FastAPI Routing Controls (PART2)21:27

Requirements

  • Intermediate proficiency in Python and basic REST API development (FastAPI or Flask experience helpful).

Description

This course contains the use of artificial intelligence.

Stop building GenAI prototypes that fail in production. Learn how to scale, secure, and operate enterprise-grade LLM applications with high reliability, low latency, and full observability.

Who this course is for:

  • Senior Software Engineers building scalable GenAI features and microservices.

  • Machine Learning & LLMOps Engineers moving models from notebooks to production.

  • Backend Developers integrating LLM APIs into enterprise applications.

  • Cloud & DevOps Engineers designing reliable infrastructure for generative AI.

What you will learn:

  • Scale GenAI traffic using FastAPI with advanced rate limiting and controls

  • Implement automatic multi-provider LLM fallbacks and circuit breakers

  • Build production-grade LLMOps evaluation and CI/CD pipelines

  • Deploy real-time input and output guardrails to prevent prompt injections

  • Optimize latency, time-to-first-token, and infrastructure costs

  • Implement distributed tracing for LLM applications with OpenTelemetry

  • Enforce token-bucket rate limits and per-tenant usage quotas using Redis

  • Execute zero-downtime prompt version rollouts and canary deployments

Requirements:

  • Python proficiency (intermediate level).

  • Basic understanding of REST APIs and FastAPI fundamentals.

  • Familiarity with Docker and basic cloud deployment concepts.

  • Core understanding of LLMs and API-based model providers (OpenAI, Anthropic, or open-source models).

Final Project: Build and deploy a complete, market-ready Production GenAI Gateway featuring FastAPI, Redis token-bucket rate limiting, automatic provider failover, safety guardrails, continuous evaluation pipelines, and OpenTelemetry instrumentation ready to handle real-world user traffic.

Who this course is for:

  • Senior Software Engineers, Backend Developers, and System Architects building enterprise-scale GenAI microservices and APIs.