How molktru13/togglemaster-microservicos works
ToggleMaster is a feature-flag platform split into five services. A client request enters through the Nginx Ingress; flag and targeting APIs manage definitions and rules, while evaluation combines both inputs, caches them in Redis, and returns a decision. Evaluation events flow asynchronously through SQS to analytics, which stores and serves them from DynamoDB. Auth validates API keys for the management services. The README documents ingress routing and infrastructure; sampled source confirms service calls and storage behavior, but deployment wiring is not mapped here.
Main entry points: evaluator.go Decision logic · handlers.go API key service · flag-service/app.py Flag management · targeting-service/app.py Targeting rules
Components 17
API entry
- Nginx Ingress
Flag management
- API key service
auth-service/handlers.go - Key generation
auth-service/key.go - Flag management
flag-service/app.py - Targeting rules
targeting-service/app.py
Evaluation
- Evaluation API
evaluation-service/handlers.go - Decision logic
evaluation-service/evaluator.go - Evaluation models
evaluation-service/types.go - Event publisher
evaluation-service/sqs.go
Analytics
- Analytics worker and API
analytics-service/app.py
Data stores
- Auth PostgreSQL
- Flags PostgreSQL
- Targeting PostgreSQL
- Redis cache
- SQS events
- DynamoDB analytics
Other components
- API client
Connections 21
- API client → Nginx Ingress: sends requests
README.md - Nginx Ingress → API key service: routes /auth
README.md - Nginx Ingress → Flag management: routes /flags
README.md - Nginx Ingress → Targeting rules: routes /rules
README.md - Nginx Ingress → Evaluation API: routes /evaluate
README.md - Nginx Ingress → Analytics worker and API: routes /analytics
README.md - API key service → Key generation: generates keys
auth-service/handlers.go - API key service → Auth PostgreSQL: reads and writes
auth-service/handlers.go - Flag management → API key service: validates keys
flag-service/app.py - Targeting rules → API key service: validates keys
targeting-service/app.py - Flag management → Flags PostgreSQL: reads and writes
flag-service/app.py - Targeting rules → Targeting PostgreSQL: reads and writes
targeting-service/app.py - Evaluation API → Decision logic: requests decision
evaluation-service/handlers.go - Evaluation API → Event publisher: publishes event
evaluation-service/handlers.go - Decision logic → Evaluation models: uses models
evaluation-service/evaluator.go - Decision logic → Redis cache: reads and caches
evaluation-service/evaluator.go - Decision logic → Flag management: fetches flag
evaluation-service/evaluator.go - Decision logic → Targeting rules: fetches rules
evaluation-service/evaluator.go - Event publisher → SQS events: sends events
evaluation-service/sqs.go - Analytics worker and API → SQS events: receives and deletes
analytics-service/app.py - Analytics worker and API → DynamoDB analytics: stores and queries
analytics-service/app.py