Domain
AI backend engineering
The services around the model: APIs, sessions, background jobs, storage and multi-tenancy.
0 of 9 articles published. Topics are listed in reading order: each comes after the topics it builds on.
APIs for AI features
The endpoints between your users and the model.
- Designing APIs around model callsComing soon
Keeping provider details behind your own API, validating inputs, and returning stable shapes when models change.
Architecture · Intermediate
- Streaming model output to browsersComing soon
Server-sent events from model stream to user, handling disconnects, proxies and partial output.
Implementation · Advanced
- Long requests: synchronous, async or streamingComing soon
When to answer inline, stream, or return a job id the client polls, based on how long the work takes.
Comparison · Advanced
Conversation and run storage
Storing chats, runs and their results.
- Storing conversations and messagesComing soon
A schema for conversations, messages, tool calls and model metadata that supports history, audit and deletion.
Implementation · Advanced
- Recording what generated each answerComing soon
Saving model, prompt version, parameters and sources with each output so answers can be explained later.
Operations · Production
Background work
Moving slow model work off the request path.
- Background jobs for AI tasksComing soon
Queuing summarisation, embedding and generation work, reporting progress, and notifying users when it's done.
Implementation · Advanced
Multi-tenant AI backends
Serving many customers from one system safely.
- Tenant isolation in AI featuresComing soon
Keeping each tenant's data, prompts, caches, memories and indexes apart at every layer.
Security · Production
- Per-tenant quotas and fair useComing soon
Rate limits and token budgets per tenant and per user, so one customer can't exhaust shared capacity.
Configuration · Advanced
Files and uploads
Accepting and storing files that AI features process.
- Handling file uploads for AI processingComing soon
Size and type checks, private object storage, signed URLs, and scanning before a model or parser touches a file.
Security · Advanced