Skip to content
All topics

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.

  1. Designing APIs around model callsComing soon

    Keeping provider details behind your own API, validating inputs, and returning stable shapes when models change.

    Architecture · Intermediate

  2. Streaming model output to browsersComing soon

    Server-sent events from model stream to user, handling disconnects, proxies and partial output.

    Implementation · Advanced

  3. 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.

  1. Storing conversations and messagesComing soon

    A schema for conversations, messages, tool calls and model metadata that supports history, audit and deletion.

    Implementation · Advanced

  2. 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.

  1. 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.

  1. Tenant isolation in AI featuresComing soon

    Keeping each tenant's data, prompts, caches, memories and indexes apart at every layer.

    Security · Production

  2. 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.

  1. 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