Backend Development 14 min read

Paginated Loading of Shopping Cart Auxiliary Information in JD E‑commerce Platform

This article examines the challenges of scaling JD's shopping cart, proposes a paginated loading strategy for auxiliary product information to reduce backend load and improve user experience, and details the technical design, pagination options, pre‑loading mechanisms, and measured performance benefits.

JD Tech
JD Tech
JD Tech
Paginated Loading of Shopping Cart Auxiliary Information in JD E‑commerce Platform

The JD shopping cart has continuously expanded its capacity from 80 items in 2015 to over 220 items for premium users, causing significant backend load due to full‑data refreshes and complex calculations for selections, promotions, and pricing.

To avoid the performance bottleneck of loading all auxiliary information (such as coupons, stock, activity tags) at once, the article proposes a paginated loading approach that fetches auxiliary data only for the items currently visible on the screen and pre‑loads adjacent pages based on user scrolling behavior.

Three pagination strategies are evaluated: pure product pagination, store‑based pagination, and a combined product‑plus‑store pagination that keeps items from the same store together while still paging by product count, ultimately chosen for preserving business logic and aligning with upstream batch interfaces.

The solution includes a configurable pre‑loading policy that balances user experience against unnecessary API calls, a timestamp‑based dirty‑data check to discard stale responses, and adaptive loading based on scroll speed to further reduce unnecessary traffic.

Measured results show a reduction of over 30% in auxiliary‑information API calls, substantial resource savings during peak traffic, and a smoother, low‑latency shopping cart experience without sacrificing functionality.

backendPerformancepaginationshopping cartAsynchronous Loading
JD Tech
Written by

JD Tech

Official JD technology sharing platform. All the cutting‑edge JD tech, innovative insights, and open‑source solutions you’re looking for, all in one place.

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.