Skip to content

Checking your reading list…

Retry

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Backend Development
2 min read

Why Java Dominates High Concurrency Tutorials While C++ Powers Billion-Request Systems

The article explains that Java suffices for typical high concurrency (thousands to tens of thousands RPS), but extreme scale (millions RPS) and low-latency needs require C++ due to GC pauses, citing Alibaba's async_simple and WeChat's 10B-request red packet system as examples.

A reader asks why high concurrency tutorials predominantly feature Java instead of C++, C#, Rust, or Go, noting C++'s higher efficiency and questioning whether memory safety or garbage collection is the reason.

C++ Powers Extreme-Scale Systems at Alibaba and WeChat

Contrary to the perception, C++ is widely used for the highest concurrency tiers. Alibaba, a major Java user, relies on C++ for critical services. Its open-source async_simple framework (GitHub: https://github.com/alibaba/async_simple/tree/main) provides C++20 stackless coroutines ( Lazy), stackful coroutines ( Uthread), and Future/Promise components. Developed by Alibaba's Intelligent Engine division, async_simple runs in graph computing engines, time-series databases, and search engines, and has withstood two Double 11 shopping festivals handling billion-level traffic peaks with strong performance and stability.

async_simple architecture diagram
async_simple architecture diagram

Why Bilibili High Concurrency Content Is Mostly Java

Java handles the concurrency levels most developers encounter — thousands to tens of thousands of requests per second — perfectly well. Content targeting millions of requests per second would attract a tiny audience unless creators manufacture a false premise that all "high" concurrency requires C++.

C++ Career Opportunities Exist in Large-Scale Systems

Engineers interested in C++ high-concurrency/low-latency work can find roles at major companies where user volume demands C++. For example, the gaming domain frequently faces massive concurrent requests during events that concentrate players. WeChat red packets, peaking at over 10 million requests per second (a world-class scenario), are built by WeChat's WXG group, a heavy C++ user. Details are shared in https://www.woshipm.com/pd/232838.html.

WeChat red packet system design article
WeChat red packet system design article

GC Pauses Make Java Unsuitable for Low-Latency Requirements

Some high-concurrency scenarios also demand low latency, such as real-time games. Unlike typical internet apps where users tolerate retries or loading spinners, real-time games cannot accept unpredictable pauses. Garbage collection performs reachability analysis and memory reclamation by stopping all application threads ( Stop-The-World ), and the timing is uncontrollable by programmers, ruling out GC-based languages for these use cases.

For attribution, corrections or content rights, contactadmin@besthub.dev

Report an issue with this article

Discussion 0

Questions, practical examples and thoughtful responses.

Open full discussion