You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A high-concurrency virtual asset trading platform for in-game items, accounts, and digital goods.
Features flash sales, Alipay sandbox payment, and AI-powered review moderation.
Built end-to-end with an Agentic workflow powered by Claude Code.
✨ Highlights
⚡ High-Concurrency Flash Sale & Order System
Redisson distributed lock enforces one-order-per-user at the application layer; version-field optimistic lock at the database layer eliminates overselling under concurrent writes.
Orders flow through RocketMQ for async decoupling, significantly boosting system throughput.
Full payment lifecycle via Alipay Sandbox: PENDING → PAID → SHIPPED → COMPLETED.
Spring Task auto-cancels timed-out orders; a state machine + optimistic lock guarantees atomic status transitions, safely resolving races between concurrent payment callbacks and scheduled cancellations.
🛡️ Two-Level Cache Architecture
Layer
Technology
Strategy
L1 Local
Caffeine
Hot data in-process, microsecond latency
L2 Distributed
Redis
Shared across instances, millisecond latency
Bloom Filter prevents cache penetration on non-existent keys.
Logical Expiration prevents hotspot key breakdown without locking the main thread.
Dynamic random TTL offsets expiration timing to prevent cache avalanche.
Cache Aside strategy: update DB first, then delete cache. On deletion failure, a RocketMQ delayed retry compensates; TTL serves as the final safety net — achieving eventual consistency.
🤖 AI-Powered Review Moderation
Built on XLM-R-base (multilingual), extended with a Mixture-of-Experts (MoE) routing layer.
Training uses dynamic temperature annealing sampling for load-balanced expert routing.
LoRA supervised fine-tuning on domain-specific review dataset.
Results: 98% accuracy on language-family classification, 85% recall on inappropriate content detection.