APIs, data, messaging
Backend
Server logic that accepts requests, stores data, moves long-running work to the background and exchanges messages with other services and external systems.
What is happening
Pick a scenario — it plays out in the district on the diagram, and every step is explained here.
The animation is slowed down for clarity; latencies in the trace are realistic.
District scenarios
Technologies
Pick a technology to light up the buildings it runs in. Tap or click a building to open its details. Technologies with no building in the city lead to case studies.
In case studies
In case studies
- pgvector / MilvusVector search: storing embeddings and finding the closest by meaning.
- Sockets · TCP / UDPClient-server applications on Python sockets: connections, data exchange, network errors.
In case studies
In case studies
What it looks like in code
api/routers/reports.py
@router.post("/reports", status_code=202)
async def create_report(body: ReportIn) -> TaskOut:
task = await tasks.create(kind="report", params=body.model_dump())
await queue.publish("reports", {"task_id": task.id})
return TaskOut(task_id=task.id, status="queued")