Microservices Architecture

Ganntec employs a microservices architecture that enables independent scaling, deployment, and development of different platform components.

Service Catalog

ServiceTechnologyPurposeInstances
API GatewayKongRequest routing, auth3
Main APIBun + HonoUser operations10
Trading ServiceGoOrder execution5
Chart ServiceGoMarket data8
Auth ServiceNode.jsAuthentication3

Service Communication

Service Mesh Features

Service Discovery

Automatic service registration and health checking

Load Balancing

Intelligent traffic distribution with circuit breaking

Observability

Distributed tracing and metrics collection

Security

mTLS between services and policy enforcement

Deployment Strategy

Service Patterns

1. API Gateway Pattern

  • Single entry point for all client requests
  • Authentication and authorization
  • Request routing and load balancing
  • Rate limiting and throttling

2. Event Sourcing

  • All state changes captured as events
  • Complete audit trail
  • Event replay capability
  • CQRS implementation

3. Saga Pattern

  • Distributed transaction management
  • Compensating transactions
  • State machine orchestration
  • Failure recovery

Monitoring & Observability

Each service exports metrics, logs, and traces for comprehensive observability
  • Metrics: Prometheus + Grafana
  • Logging: ELK Stack (Elasticsearch, Logstash, Kibana)
  • Tracing: Jaeger with OpenTelemetry
  • Alerting: PagerDuty integration

Service SLAs

ServiceAvailabilityLatency (p99)Error Rate
API Gateway99.99%<50ms<0.01%
Main API99.95%<100ms<0.1%
Trading Service99.99%<10ms<0.001%
Chart Service99.9%<200ms<0.1%

Our microservices architecture enables rapid development and deployment while maintaining system reliability and performance.