Taocarts Moves Parcel Tracking to WebSockets for Real-Time Buyer Updates
Taocarts, a cross-border platform that mirrors Chinese marketplace products into overseas storefronts, faced a flood of buyer questions about parcel location. Its original dashboard polled the backend every 30 seconds per open tab, which put heavy read load on the servers and still left buyers with stale status. The team chose WebSockets over Server-Sent Events because it allowed clients to subscribe to specific parcel IDs and receive only changes. A narrow Node service handles authentication, subscriptions, and fan-out via Redis pub/sub, while the Laravel API remains the source of truth. The design keeps no tracking state in the socket layer, uses heartbeats and reconnection with resubscription, and batches and coalesces updates to limit bursts.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.




Discussion (0)
Log in to join the discussion and vote.
Log in