Conditional Modules & Dynamic Bundling, A Netflix Original
Netflix runs hundreds of A/B tests a year and we have seen exponential growth in variations of user experiences we serve to our Netflix users. Pre-publishing these millions of variations of the UI bundles to allow for these unique experiences, was not possible at Netflix’s scale.
So what did we do?
We built our own "Conditional Module Bundler" on top of Webpack. This talk gives a sneak peek at how Netflix uses "conditional dependency graph" and "runtime dynamic bundling" to generate and deliver unique UI bundles directly at runtime. The audience will also get to know about the challenges involved and the lessons learned while building such a system.
Learn about how we hacked Webpack for our needs, leveraged Abstract Syntax Tree (AST) to identify conditional dependencies in our dependency graph and glued them all together to build a highly scalable, server-side JS and CSS bundler, that serves these unique user experiences to millions of Netflix customers across the globe.
Rajat has been involved in several engineering challenges at Netflix, including Conditional Runtime Bundler called Codex, Netflix’s NodeJS PaaS called NodeQuark.
He also maintains and is a core contributor to Restify.