Skip to content

Architecture

This section documents the system architecture, design patterns, and technical decisions.

Contents

  • Overview - High-level architecture and dual API design
  • Data Model - Database schema and relationships
  • Security - Authentication, authorization, and security measures
  • Observability - Logging, metrics, and tracing

Key Patterns

Ocmonica follows a layered architecture: - Handlers (REST/gRPC) - Request validation, response formatting - Services - Business logic, RBAC enforcement - Repository - Data access, SQL queries