Bảo mật, HA, Load Balance & Hiệu năng

6
CRITICAL/HIGH đã fix
100%
Service có healthz
3
Tier load test
DLQ+Retry
Event bus

1. Bảo mật (Security)

Đã thực thi

Đang khuyến nghị

#Hạng mụcMứcHành động
1Per-user + per-endpoint rate limitMEDIUMBổ sung middleware token-bucket trong gateway
2JWT key rotation (multi-key kid)MEDIUMHỗ trợ JWKS với 2 key active đồng thời
3Audit cho thao tác API keyLOWBắn event qua audit-service
4Redact secrets trong build logLOWMask URL có credentials trước khi ghi

2. High Availability (HA)

3. Load Balancing

LớpDịch vụTính năng
Edge globalglobal-lb-serviceGeo + latency routing, fail-over region
L7 ứng dụngload-balancer-service · waf-serviceHTTP routing, sticky session, WAF rules, rate-limit
L4 transportload-balancer-serviceTCP/UDP target groups, health checks
Service-to-serviceAPI Gateway / DNS-SRVRound-robin, header-based, retries
K8s ingresscluster-bootstrap addonsNginx/Envoy ingress controller, TLS termination

4. Hiệu năng (Performance)

Test tải (k6)

TestFileMục tiêu
All services smoketests/load-test/all-services-load.jsPhủ ramp 50→500 VU, tất cả endpoint healthz
Gatewaytests/load-test/gateway-load.jsStress đường vào
Compute stresstests/load-test/compute-stress.jsTạo/xóa instance đồng thời
Databasetests/load-test/database-load.jsCRUD bursts qua DB-engine
Networktests/load-test/network-load.jsProvision VPC/SG ở concurrency cao
Security servicestests/load-test/security-load.jsWAF/DDoS/IAM tải đồng thời
New servicestests/load-test/new-services-load.jsAI/Vector/Spanner/AlloyDB

5. Auto Pentest & Security Scan

6. Truy cập runtime

ServiceURL
API Gateway healthzhttp://localhost:8080/healthz
Lotus Consolehttp://localhost:3100
Grafanahttp://localhost:3300
Jaeger UIhttp://localhost:16686
Prometheushttp://localhost:9090
RabbitMQ UIhttp://localhost:15672