2.3.5 · Lesson 15 of 25
CI/CD + GenAI Gateway
Production AI applications should not be manually deployed every time.
Overview
Production AI applications should not be manually deployed every time.
A CI/CD pipeline can automate:
Code ↓ Build ↓ Test ↓ Security Scan ↓ Deploy ↓ Monitor ↓ Rollback if required
CodePipeline + CodeBuild
Conceptually:
Developer ↓ Source ↓ CodePipeline ↓ CodeBuild ↓ Tests ↓ Security Scan ↓ Deploy
GenAI Gateway
A GenAI gateway provides a centralized abstraction/control layer between applications and model providers.
Application A ──┐ Application B ──┼──→ GenAI Gateway → Models Application C ──┘
The gateway can conceptually centralize:
- model access
- routing
- observability
- controls
- policies
- usage management
Why abstraction matters
Without abstraction:
App → Model A App → Model B App → Model C
Changing models may require modifying many applications.
With a gateway:
Apps ↓ GenAI Gateway ↓ Models
The application remains more isolated from model-provider details.
2.4 — Implement FM API Integrations
This section focuses specifically on how applications communicate with foundation models.
Think:
Application
↓
API Layer
↓
FM
↓
ResponseBut production systems also need:
- asynchronous processing
- streaming
- retries
- rate limiting
- fallback
- routing
- observability
Key points
- model access
- routing
- observability
- controls
- policies
- usage management
- asynchronous processing
- streaming
Exam focus
Know when and how to apply CI/CD + GenAI Gateway in production GenAI implementations.