<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/architecting-for-6-billion-daily-requests-inside-wix-s-media-platform-r4kwvkqsk" -->

---
title: Architecting for 6 Billion Daily Requests: Inside Wix's...
description: Wix Engineering details five architectural challenges behind serving over 6 billion media requests daily across 300 million websites. Topics covered include...
canonical: https://daily.dev/posts/architecting-for-6-billion-daily-requests-inside-wix-s-media-platform-r4kwvkqsk
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Architecting for 6 Billion Daily Requests: Inside Wix's Media Platform | daily.dev
og:description: Wix Engineering details five architectural challenges behind serving over 6 billion media requests daily across 300 million websites. Topics covered include...
og:url: https://daily.dev/posts/architecting-for-6-billion-daily-requests-inside-wix-s-media-platform-r4kwvkqsk
og:image: https://api.daily.dev/og/posts/r4kWVKQsk.png
og:image:alt: Architecting for 6 Billion Daily Requests: Inside Wix's Media Platform
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Architecting for 6 Billion Daily Requests: Inside Wix's Media Platform

**[Wix Engineering](https://daily.dev/sources/wix_eng)** · 5 min read · 0 upvotes · 0 comments

## Summary

Wix Engineering details five architectural challenges behind serving over 6 billion media requests daily across 300 million websites. Topics covered include using Go's unsafe pointers to eliminate Cgo memory-copy overhead when passing data between AVIF encoding C libraries, a tiered 'Masters' caching strategy that resizes from nearest cached intermediate sizes rather than raw sources, request normalization to prevent CDN cache fragmentation from equivalent-but-differently-ordered URL parameters, a 'Golden Eye' testing approach combining byte-level regression tests with perceptual metrics (SSIM, PSNR, VMAF) for validating encoder upgrades, and token-based access control embedded in the media pipeline to serve different resolution tiers to free versus paying users without duplicating storage.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.wix.engineering/post/architecting-for-6-billion-daily-requests-inside-wix-s-media-platform>

## Questions this post answers

### How do you avoid Cgo overhead when passing image data between two C libraries in Go?

Use Go's unsafe package to pass raw C pointers directly between the two C libraries, tunneling the data through Go without copying or processing it there. Wix's image manipulation service is written in Go but relies on C libraries (libaom/libavif) for AVIF encoding; standard Cgo interop between libraries caused significant overhead from memory copying and safety checks, so bypassing standard memory management with unsafe pointers eliminated that cost and made real-time AVIF encoding production-viable.

_Engineers optimizing Go/C interop for media pipelines can find similar architecture writeups on daily.dev._

### How can you test image quality after upgrading an image encoder library when byte-equality checks fail?

Fall back to perceptual similarity metrics like SSIM, PSNR, or VMAF instead of relying solely on byte-by-byte comparison. Encoder library upgrades often change binary output slightly even when the image looks visually identical, breaking standard golden-file regression tests; using algorithms that mathematically simulate human vision lets teams confirm visual integrity and deploy encoder optimizations safely despite binary differences.

_Teams validating visual regressions after codec upgrades track approaches like this via daily.dev._

### What is a Masters caching strategy for resizing images at scale?

It's a tiered image caching approach that stores fixed intermediate resolutions (such as 1000x1000 and 500x500) generated from the original source, so requests for arbitrary sizes resize from the closest larger stored version instead of the full-resolution original. Requesting a 450px image would resize from the cached 500px master, reducing the pixel distance the CPU must process and cutting compute load while preserving quality.

_Developers designing image resizing pipelines can compare caching strategies like this on daily.dev._

## Similar posts on daily.dev

- [The Wix Engineering 2025 Review: AI, Platforms, Data, and Deep Technical Lessons-Learned](https://daily.dev/posts/the-wix-engineering-2025-review-ai-platforms-data-and-deep-technical-lessons-learned-opaptchxg) · Wix Engineering · 3 upvotes · 0 comments
- [Cloudflare Migrates JavaScript CDN Serving 9B Requests a Day to Its Developer Platform](https://daily.dev/posts/cloudflare-migrates-javascript-cdn-serving-9b-requests-a-day-to-its-developer-platform-njgladxvv) · InfoQ · 1 upvotes · 0 comments
- [Dogfooding at scale: migrating cdnjs to Cloudflare’s Developer Platform](https://daily.dev/posts/dogfooding-at-scale-migrating-cdnjs-to-cloudflare-s-developer-platform-rysprc2qr) · Cloudflare · 8 upvotes · 0 comments
- [Design a Video Upload System That Handles Millions of Uploads a Day](https://daily.dev/posts/design-a-video-upload-system-that-handles-millions-of-uploads-a-day-o0qzmqyjb) · C\# Corner · 0 upvotes · 0 comments
- [The 49MB Web Page](https://daily.dev/posts/the-49mb-web-page-c2modzgaa) · Hacker News · 16 upvotes · 2 comments

---

Tags: [#golang](https://daily.dev/tags/golang), [#image-processing](https://daily.dev/tags/image-processing), [#system-design](https://daily.dev/tags/system-design)

[View this post on daily.dev](https://daily.dev/posts/architecting-for-6-billion-daily-requests-inside-wix-s-media-platform-r4kwvkqsk)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Architecting for 6 Billion Daily Requests: Inside Wix's Media Platform","url":"https://daily.dev/posts/architecting-for-6-billion-daily-requests-inside-wix-s-media-platform-r4kwvkqsk","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/architecting-for-6-billion-daily-requests-inside-wix-s-media-platform-r4kwvkqsk"},"datePublished":"2026-09-08T08:25:31.586Z","dateModified":"2026-11-01T18:46:39.328Z","description":"Wix Engineering details five architectural challenges behind serving over 6 billion media requests daily across 300 million websites. Topics covered include...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/19200ff7996c907e6c64c5822c5c76d8?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/19200ff7996c907e6c64c5822c5c76d8?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Wix Engineering","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Wix Engineering","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/5a14a3f3d2a14128bcb9a084fb2ebadf","url":"https://daily.dev/sources/wix_eng"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/architecting-for-6-billion-daily-requests-inside-wix-s-media-platform-r4kwvkqsk","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"golang,image-processing,system-design","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Wix Engineering","item":"https://daily.dev/sources/wix_eng"},{"@type":"ListItem","position":3,"name":"Architecting for 6 Billion Daily Requests: Inside Wix's Media Platform"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/architecting-for-6-billion-daily-requests-inside-wix-s-media-platform-r4kwvkqsk#faq","mainEntity":[{"@type":"Question","name":"How do you avoid Cgo overhead when passing image data between two C libraries in Go?","acceptedAnswer":{"@type":"Answer","text":"Use Go's unsafe package to pass raw C pointers directly between the two C libraries, tunneling the data through Go without copying or processing it there. Wix's image manipulation service is written in Go but relies on C libraries (libaom/libavif) for AVIF encoding; standard Cgo interop between libraries caused significant overhead from memory copying and safety checks, so bypassing standard memory management with unsafe pointers eliminated that cost and made real-time AVIF encoding production-viable. Engineers optimizing Go/C interop for media pipelines can find similar architecture writeups on daily.dev."}},{"@type":"Question","name":"How can you test image quality after upgrading an image encoder library when byte-equality checks fail?","acceptedAnswer":{"@type":"Answer","text":"Fall back to perceptual similarity metrics like SSIM, PSNR, or VMAF instead of relying solely on byte-by-byte comparison. Encoder library upgrades often change binary output slightly even when the image looks visually identical, breaking standard golden-file regression tests; using algorithms that mathematically simulate human vision lets teams confirm visual integrity and deploy encoder optimizations safely despite binary differences. Teams validating visual regressions after codec upgrades track approaches like this via daily.dev."}},{"@type":"Question","name":"What is a Masters caching strategy for resizing images at scale?","acceptedAnswer":{"@type":"Answer","text":"It's a tiered image caching approach that stores fixed intermediate resolutions (such as 1000x1000 and 500x500) generated from the original source, so requests for arbitrary sizes resize from the closest larger stored version instead of the full-resolution original. Requesting a 450px image would resize from the cached 500px master, reducing the pixel distance the CPU must process and cutting compute load while preserving quality. Developers designing image resizing pipelines can compare caching strategies like this on daily.dev."}}]}
```

