Skip to main content

Microservices Architecture

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

Service Catalog

  • Core Services
  • Support Services
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

  • Platform: Kubernetes 1.28
  • Container Runtime: containerd
  • Service Mesh: Istio
  • Registry: AWS ECR
pipeline:
  - lint: ESLint, golangci-lint
  - test: Unit & integration tests
  - build: Multi-stage Docker builds
  - scan: Security vulnerability scanning
  - deploy: Blue-green deployment
  • Development: Feature branches auto-deploy
  • Staging: Mirrors production configuration
  • Production: Multi-region deployment
  • DR Site: Hot standby in secondary region

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.