Microservices Architecture

We split systems into independently deployable FastAPI services and connect them over REST, WebSocket and Redis.

Splitting into microservices isn't always the right answer; we draw service boundaries along the parts of the system that genuinely change independently. In a typical project of ours, authentication, the device gateway, mission management, recording and media are separate services, each with its own Docker image, database schema and release.

Between services we use REST for calls, WebSocket for live data and Redis pub/sub and Streams for event delivery and queues, switching to gRPC and Protobuf where latency is critical. In most systems we prefer Redis over heavier messaging infrastructure: fewer moving parts, easier operations.

Entry
  • Nginx
Services
  • Auth
  • Mission
  • Recording
  • Media
Gateway
  • Device gateway
Field
  • Devices
Services and how they connect

What we do

  • Service boundaries

    Designing independently changing parts as separate services, schemas and releases.

  • Inter-service communication

    REST, WebSocket, Redis pub/sub and Streams; gRPC where needed.

  • Single entry point

    Routing, TLS and rate limiting through Nginx.

  • Shared foundation

    Logging, authorization and configuration from the same library in every service.

Technologies we use

  • FastAPI
  • Docker
  • Redis
  • REST
  • WebSocket
  • gRPC / Protobuf
  • Nginx