Backend Development 10 min read

Scaling Live‑Ecommerce Platforms: Architecture Behind Billions of Users

This article examines the rapid rise of live‑ecommerce during the 618 shopping festival, explains why the “live + ecommerce” model demands robust backend, streaming and CDN infrastructure, and details Tencent Cloud’s architectural solutions—including media processing, low‑latency protocols, bandwidth optimization and anti‑attack measures—to support massive concurrent traffic.

Tencent Tech
Tencent Tech
Tencent Tech
Scaling Live‑Ecommerce Platforms: Architecture Behind Billions of Users

Live‑Ecommerce Platform Common Architecture

Domestic leading live‑ecommerce platforms generally adopt a three‑layer architecture: an e‑commerce system, a live‑streaming module, and an instant‑messaging (IM) service. The e‑commerce and IM components are mature, while the live module introduces new technical challenges that need to be addressed.

Technical Architecture and Implementation Challenges

Key difficulty areas include:

Anchor side: ensuring smooth product listing, interactive features, and multi‑camera push streams; supporting various hardware encoders and AI beauty filters.

Media processing: real‑time transcoding for multiple video formats, compliance review to block illegal content, and recording for replay and audit.

CDN: handling massive concurrent traffic for both website and audio‑video files, mitigating network instability across operators and regions.

Viewer side: adapting to over 500 device models (mini‑programs, PC, mobile), guaranteeing uninterrupted playback, interaction, tipping, likes, and one‑click purchase.

Implementation Solutions

Tencent Cloud offers a one‑stop live solution that can be deployed within a day. For the anchor side, developers can integrate Tencent Cloud Live SDKs (iOS, Android, Web) to support third‑party cameras, encoders, and AI beauty effects such as filters, stickers, makeup, and green‑screen.

Media processing is handled by cloud live services that provide real‑time transcoding, multi‑format packaging, and a combined machine‑plus‑human review system to ensure content compliance.

CDN leverages more than 1,300 acceleration nodes in over 30 countries, solving cross‑operator and cross‑region latency issues.

On the viewer side, Tencent Cloud Playback SDK (HTTP‑FLV) and Cloud Communication SDK enable interactive features, reward systems, and e‑commerce purchasing, compatible with mini‑programs, PCs, and most smartphones.

How to Reduce Latency?

Choosing the right streaming protocol is crucial. Most e‑commerce live streams use RTMP for pushing and HTTP‑FLV for pulling, achieving end‑to‑end latency under 5 seconds. HLS incurs 20‑30 seconds due to larger TS segments. Recommendations:

Set GOP interval to around 2 seconds; larger intervals increase delay.

Avoid third‑party encoders that introduce buffering; compare with Tencent Cloud Mobile Live SDK demo.

If lower latency is required, consider Tencent Cloud Fast Live or TRTC, which can provide sub‑second viewing experience.

How to Solve Stalling Issues?

Stalling is often caused by insufficient upstream bandwidth or improper encoding settings. Recommendations include:

Adjust bitrate according to audience network conditions; a high‑definition (HD) preset is generally optimal.

Prompt anchors about poor network quality and suggest moving closer to the router or using wired connections.

Reduce the upstream push bitrate or reserve uplink bandwidth for the stream; many large anchors use dedicated fiber connections.

Monitor client‑side parameters such as frame rate, resolution, CPU and memory usage to avoid resource contention.

Conclusion

The article analyzes the background and technical challenges of e‑commerce live streaming, presents the architectural blueprint, and demonstrates how Tencent Cloud provides reliable, high‑quality solutions for massive concurrent traffic. With the continued rollout of 5G and other emerging technologies, the live‑ecommerce market is expected to keep expanding.

e-commerceArchitecturecloud computinglive streaminglow latency
Tencent Tech
Written by

Tencent Tech

Tencent's official tech account. Delivering quality technical content to serve developers.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.