Integration Patterns: Sync, Streaming, Async, Batch and Events
Adding AI to an existing system is mostly an integration problem. LLM calls are slow (seconds), variable, occasionally failing and metered. Put one in the wrong place, such as inside a checkout request, and you've made the whole product slower and more fragile. This lesson is the toolkit for putting it in the right place.
In this lesson
- Learning objectives
- The shapes
- Keep AI off the critical path
- Reliability around model calls
- Event-driven freshness for AI indexes
- Long-running processes: use a workflow engine
- Worked example: AI triage in an existing ticketing system
- Self-check
Questions covered
- How would you add AI summarisation to an existing CRM without making the CRM slower or less reliable?
- When do you choose a workflow engine over a queue and workers?
This lesson is part of AI Architect: System Design & AI Integration. Unlock the full course to read it, take the quiz and track your progress.