Recent Posts
Archives

Posts Tagged ‘AmericanExpress’

PostHeaderIcon [NodeCongress2021] The Micro-Frontend Revolution at Amex – Ruben Casas

Orchestrating frontend sprawl for legions of coders while infusing modern stacks like Node.js and React demands architectural ingenuity. Ruben Casas, software engineer at American Express, chronicles their micro-frontend odyssey—a 2016 vanguard yielding seamless compositions for millions, sans monolithic morass.

Ruben’s tale unfurls with a CTO’s conundrum: ballooning teams clash against legacy behemoths, spawning coordination quagmires and sync lags. Microservices scaled backends; frontends craved analogs—autonomous squads wielding isolated codebases, horizontal velocity.

Forging Modular Compositions

Amex’s OneApp framework—open-source beacon—espouses iframe-free integration: Webpack bundles modules to CDN artifacts, runtime loaders fetch per-route payloads. Ruben diagrams: root orchestrates, injecting via shadow DOM for scoped styles/scripts, mitigating clashes.

Prod hums via module maps—versioned manifests—pulling from CDNs; updates propagate sans restarts, hot-swapping in-memory. Development mirrors: Docker-spun OneApp proxies local clones amid prod stubs, isolating tweaks.

Deployment Dynamics and Cultural Catalysts

CIs per-repo trigger tests—units, integrations—publishing to CDNs; OneApp ingests, composing fluidly. Ruben lauds scalability: thousands collaborate frictionlessly, upgrades cascade independently.

Yet, patterns, not panaceas—tailor to contexts. OneApp’s GitHub invites forks, embodying Amex’s trailblazing ethos.

Links: