Practical Lessons from Upgrading JD's Phone Recharge System Architecture
This article shares JD's practical experience of scaling its phone‑recharge platform by introducing caching, concurrent processing, micro‑service decomposition, vertical‑and‑horizontal sharding, read/write separation, resource isolation, and gray‑release deployment to meet rapidly growing user demand.
JD's phone‑recharge service saw a 40% increase in active users, driving a surge in order volume that exceeded the capacity of its legacy architecture, prompting a comprehensive system upgrade.
Application‑layer improvements : a Redis‑based cache (JimDB) was added for hot data such as feature flags and white‑lists, reducing database load; concurrent processing programs were written to parallelize independent tasks like order settlement; and the overall system structure was refactored to improve cohesion and reduce coupling.
Micro‑service transformation : the monolithic application was split into five services (PC order, mobile order, MQ processor, admin console, worker). Each service communicates via JD's RPC framework (JSF) and message framework (JMQ), enabling independent development, testing, and deployment while maintaining overall functionality.
Database‑layer strategies : a vertical‑plus‑horizontal sharding scheme separates enterprise and consumer orders, using hash‑based routing on account PIN or order ID; read‑write separation directs low‑latency reads to replicas; low‑frequency pages are statically generated and served via Nginx; and data aggregation is handled by syncing shards to Elasticsearch.
Deployment and operations : resource isolation is achieved with Hystrix for semaphore and thread‑pool isolation, independent containers, and multi‑datacenter traffic distribution; gray‑release and version‑rollback mechanisms use data‑flow switches and cache flags to ensure seamless upgrades without user impact.
After these upgrades, the system achieved optimal throughput and stability, successfully handling peak traffic during major sales events such as 618 and Double‑11.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
JD Retail Technology
Official platform of JD Retail Technology, delivering insightful R&D news and a deep look into the lives and work of technologists.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
