Building Our Own CDN Nodes: How We Achieved 70% Faster Image Load Times for Zay Myanmar
In e-commerce, a one-second delay in page load time can reduce conversions by 7%. For Zay Myanmar, our biggest performance bottleneck was painfully obvious: product image...
Building Our Own CDN Nodes: How We Achieved 70% Faster Image Load Times for Zay Myanmar
In e-commerce, a one-second delay in page load time can reduce conversions by 7%. For Zay Myanmar, our biggest performance bottleneck was painfully obvious: product images. Relying on international Content Delivery Networks (CDNs) meant images were often routed through Singapore or Hong Kong before reaching a user in Mandalay, adding critical seconds of latency on Myanmar's international gateways.
The off-the-shelf solution wasn't working. So, our infrastructure team embarked on an ambitious project: building a lightweight, custom CDN directly inside Myanmar's internet service provider (ISP) networks.
The Challenge & Solution: Global CDNs have few points of presence (PoPs) in Myanmar. Our solution was to deploy our own caching servers—essentially, smart hard drives—inside the data centers of major local ISPs (e.g., MPT, Ooredoo, Telenor). Here’s how it works:
- Origin Server: All original, high-resolution product images are stored on our main cloud servers.
- Edge Cache Nodes: We placed custom-configured NGINX caching servers at partner ISP locations.
- Smart Routing: When a user in Yangon on MPT network requests a product page, our system directs their image requests to the MPT-located cache node.
- Cache Fill & Serve: If the image is in the cache (because another MPT user recently viewed the same product), it's served instantly, locally. If not, the node fetches it once from our origin server, caches it, and serves it to the first and all subsequent MPT users.
The Results:
- 70% Reduction in Image Load Time: Median load time for product galleries dropped from 4.2 seconds to 1.3 seconds.
- 80% Reduction in Origin Server Load: Over 80% of image requests are now served from local caches, drastically reducing bandwidth costs and load on our core infrastructure.
- Improved Reliability: Users are no longer affected by temporary slowdowns on international internet links.
Technical Nuances: This wasn't a simple plug-and-play. We had to develop our own cache invalidation logic (to ensure updated product images propagate correctly), implement robust monitoring to track hit/miss rates at each node, and negotiate agreements with ISP partners. We also built a fallback system to the global CDN if a local node fails.
This project exemplifies the Joyoma engineering ethos: when the existing tools don't meet the unique demands of our market, we innovate and build our own. By bringing the content physically closer to our users, we didn't just tweak a setting—we re-architected a fundamental piece of the internet for Myanmar, making the online shopping experience faster, cheaper, and more reliable for everyone.
Keep reading
Tech & Innovation
Why We Chose a Microservices Architecture for Zay Myanmar's Marketplace
The vision for Zay Myanmar was ambitious from day one: to build an e-commerce marketplace that could scale from a thousand to a million daily users wi...
Tech & Innovation
Work Myanmar Launches "SkillPath": Career Recommendations for Myanmar's Job Seekers
Today's job search is too often a game of keyword matching. A "Marketing Executive" might not search for "Growth Hacker" roles, even if their skills a...