Logo docs

Architecture

Architecture Documentation#

Deep dive into ncps internals and design.

Guides#

Overview#

ncps is designed as a modular caching proxy with pluggable storage and database backends.

Key Design Principles#

  1. Modularity - Separate concerns (storage, database, locks, server)
  2. Flexibility - Support multiple backends for storage and database
  3. Scalability - Scale from single instance to high availability
  4. Simplicity - Easy to deploy and operate

System Architecture#

┌─────────────────────────────────────┐
│           HTTP Server (Chi)         │
└───────────────┬─────────────────────┘
                │
┌───────────────▼─────────────────────┐
│         Cache Layer                 │
│  - Request handling                 │
│  - Upstream fetching                │
│  - Signing                          │
└───┬─────────────┬───────────────────┘
    │             │
    ▼             ▼
┌────────┐    ┌────────────┐
│Storage │    │  Database  │
│Backend │    │  Backend   │
└────────┘    └────────────┘

Related Documentation#