How shestoi/gobigtech works
GoBigTech is a Go microservices backend for checkout, identity, inventory, payment, asynchronous assembly, and user notifications. The main path begins with an order request, checks inventory and payment, then uses Kafka-driven assembly and notification stages. IAM provides registration, login, sessions, and authorization; Notification also accepts Alertmanager webhooks. Edges follow the excerpts and README; some internal wiring and event-to-service links are documented only broadly, so those links are dashed rather than asserted as verified calls.
Main entry points: handler.go Order HTTP API · service.go Order service · grpc Inventory/payment clients · kafka Order Kafka events
Components 25
Order management
- Order HTTP API
services/order/internal/api/http/handler.go - Order service
services/order/internal/service/service.go - Order PostgreSQL
services/order/internal/repository/postgres/repository.go - Inventory/payment clients
services/order/internal/client/grpc - Order Kafka events
services/order/internal/event/kafka
Core services
- IAM gRPC API
services/iam/internal/api/grpc/handler.go - IAM service
services/iam/internal/service/service.go - User PostgreSQL
services/iam/internal/repository/postgres/repository.go - Session Redis
services/iam/internal/repository/redis/session_repository.go - Inventory gRPC API
services/inventory/internal/api/grpc/handler.go - Inventory service
services/inventory/internal/service/service.go - Inventory MongoDB
services/inventory/internal/repository/mongo/repository.go - Payment gRPC API
services/payment/internal/api/grpc/handler.go - Payment service
services/payment/internal/service/service.go - Payment memory store
services/payment/internal/repository/memory/memory.go
Events and notifications
- Assembly Kafka consumer
services/assembly/internal/event/kafka/consumer.go - Assembly service
services/assembly/internal/service/service.go - Assembly Kafka publisher
services/assembly/internal/event/kafka/producer.go - Notification consumers
services/notification/internal/event/kafka/payment_consumer.go - Notification service
services/notification/internal/service/service.go - Notification PostgreSQL
services/notification/internal/repository/postgres/repository.go - Telegram sender
services/notification/internal/telegram/client.go - Alertmanager webhook
services/notification/internal/api/http/alertmanager.go
Shared platform
- Observability
platform/observability/init.go
Other components
- Customer
Connections 25
- Customer → Order HTTP API: creates order
- Order HTTP API → Order service: handles request
services/order/internal/api/http/handler.go - Order service → Order PostgreSQL: uses repository
services/order/internal/service/service.go - Order HTTP API → Inventory/payment clients: checkout integrations
- Order service → Inventory/payment clients: checks and charges
- Order service → Order Kafka events: publishes events
- Order HTTP API → IAM gRPC API: session authorization
- IAM gRPC API → IAM service: dispatches calls
services/iam/internal/api/grpc/handler.go - IAM service → User PostgreSQL: reads and writes
services/iam/internal/service/service.go - IAM service → Session Redis: manages sessions
services/iam/internal/service/service.go - Inventory/payment clients → Inventory gRPC API: gRPC requests
- Inventory gRPC API → Inventory service: dispatches calls
services/inventory/internal/api/grpc/handler.go - Inventory service → Inventory MongoDB: uses repository
services/inventory/internal/service/service.go - Inventory/payment clients → Payment gRPC API: gRPC requests
- Payment gRPC API → Payment service: dispatches calls
services/payment/internal/api/grpc/handler.go - Payment service → Payment memory store: uses repository
services/payment/internal/service/service.go - Order Kafka events → Assembly Kafka consumer: Kafka events
- Assembly Kafka consumer → Assembly service: processes events
- Assembly service → Assembly Kafka publisher: publishes completion
- Order Kafka events → Notification consumers: payment events
- Assembly Kafka publisher → Notification consumers: assembly events
- Notification consumers → Notification service: dispatches events
- Notification service → Notification PostgreSQL: uses repository
services/notification/internal/service/service.go - Notification service → Telegram sender: sends messages
services/notification/internal/service/service.go - Alertmanager webhook → Telegram sender: sends alerts
services/notification/internal/api/http/alertmanager.go