personal
FIHOS (go-react-fihos)
Multi-Tenant Wi-Fi Hotspot Billing & Network Operating System
Production-oriented 6-container platform (Go/Gin backend, background workers, React/Vite frontend, PostgreSQL 17, Redis 7) for managing multi-tenant Wi-Fi hotspots, MikroTik routers, vouchers, customer wallets, and bandwidth rate boosts.
Go (Golang)GinReact 18TypeScriptPostgreSQL 17Redis 7golang-migrateDocker Compose
Problem
Internet cafes, coffee shops, and neighborhood ISPs need a single multi-tenant platform to synchronize MikroTik routers, issue voucher batches, bill monthly subscribers, schedule temporary speed boosts, and detect abnormal traffic.
Solution
Architected a 6-service containerized Go + React system featuring dedicated background workers for router synchronization, rate-boost window reconciliation, HMAC-signed payment webhooks, and traffic anomaly alerting.
Architecture & Engineering Highlights
- Engineered a 6-container Docker Compose architecture (web, api, worker, migrate, postgres 17, redis 7) with strict X-Tenant-Id multi-tenant isolation.
- Built concurrent Go background workers for MikroTik REST router sync/probing (with deterministic simulate mode), scheduled bandwidth rate boosts, and session reconciliation.
- Implemented customer wallets, monthly billing window generation, HMAC-signed payment webhooks, and an automated traffic anomaly detection engine.
System Architecture
[React/Vite Web UI (nginx :8081)] ---> [Go/Gin API Server (:8080)]
|
+------------------------+------------------------+
| | |
v v v
[PostgreSQL 17 (:55432)] [Redis 7 (:6380)] [Go Background Worker]
(Multi-Tenant Data & (Session Store & (MikroTik REST Sync,
golang-migrate) Rate Cache) Billing, Anomaly Engine)Capabilities
Full Stack Engineering
React 18 + Vite SPANginx Reverse ProxyMulti-Tenant RBAC
Backend & Data
Go (Gin)PostgreSQL 17Redis 7golang-migrate
AI Engineering
Traffic Anomaly Detection EngineAutomated Usage Rollups & Alerts
Delivery & Quality
18 Automated Test FilesDeterministic Router Simulation Mode6-Service Docker Stack
Engineering Decisions
| Challenge | Decision | Rationale |
|---|---|---|
| Testing router synchronization and bandwidth rate-boost reconciliation without physical MikroTik hardware. | Pluggable Router Transport with Deterministic Simulate Mode | Allows unit, integration, and E2E tests to deterministically verify router state reconciliation offline while supporting real MikroTik REST transport in production. |
| Periodic router probing, billing window generation, and anomaly rollups blocking HTTP API latency. | Dedicated Go Background Worker Container | Separates latency-sensitive HTTP/WebSocket API traffic from scheduled background reconciliation jobs. |
My Contribution
- Built the Go/Gin API, background worker routines, database migrations, and React dashboard.
- Implemented HMAC-signed webhook verification and 18 unit/integration/E2E test files.
Quantified Engineering Metrics
140 Source Files18 Automated Test Files6 Docker ServicesGo + PostgreSQL 17 + Redis 7