Micro Frontends Architecture with Module Federation · Lección

Estrategias de versionado y rollback

Aprenda a versionar remotos federados de forma segura y a revertir al instante un solo micro frontend cuando un despliegue sale mal.

Lección 4 de 413 pasos

Estrategias de versionado y rollback es una lección gratuita de Micro Frontends Architecture with Module Federation en CoddyKit. Esta es la lección 4 de 4. Puedes leer la lección completa abajo gratuitamente — luego la practicas en el navegador con un editor de código integrado y un tutor de IA 24/7. Forma parte de la ruta de aprendizaje de Micro Frontends Architecture with Module Federation, y tu progreso se sincroniza en la web y la app de CoddyKit. El curso de Micro Frontends Architecture with Module Federation incluye 4 lecciones en total.

Partes de esta lección aún no han sido traducidas y se muestran en inglés.

Why Versioning Is Hard in MFEs

Each micro frontend deploys independently, yet they run together in the browser. Without disciplined versioning, one bad deploy can break a host that was working moments ago.

Immutable Build Artifacts

The foundation of safe deployment is immutable artifacts: every build produces uniquely named files that are never overwritten.

/cart/2.4.1/remoteEntry.js
/cart/2.4.2/remoteEntry.js

Content Hashing

Adding a content hash to filenames guarantees a changed bundle gets a new URL, so caches and hosts never serve a stale or mismatched file by accident.

/cart/remoteEntry.7f3a9c.js

A Version Manifest

A small manifest maps each remote name to the URL currently in production. The host reads it to discover which remote version to load.

{
  "cart": "/cart/2.4.2/remoteEntry.js",
  "search": "/search/1.9.0/remoteEntry.js"
}

Deploying = Updating the Manifest

Because artifacts are immutable, a deployment is just pointing the manifest to a new version. This makes promotion and rollback a single, fast change.

Instant Rollback

To roll back, point the manifest entry back to the previous version. Since the old artifact still exists, the rollback is immediate and risk-free.

// rollback cart
"cart": "/cart/2.4.1/remoteEntry.js"

Canary Releases per Remote

Serve a new remote version to a small percentage of users via the manifest, watch metrics, then ramp to 100% — or roll back instantly if errors spike.

Semantic Versioning of Remotes

Use semver for remotes and especially for shared contracts. A major bump signals a breaking interface change that consumers must coordinate around.

Coordinating Shared Dependencies

Rolling back one remote while others advanced can create shared-dependency mismatches. Keep shared library versions within compatible ranges so any single rollback stays safe.

Automating Rollback in CI/CD

Wire health checks into the pipeline so a failed post-deploy check automatically reverts the manifest, turning rollback into a hands-off safety net.

if ! healthcheck cart; then
  promote cart 2.4.1 # auto rollback
fi

Auditing Versions

Log every manifest change with who, what, and when. This audit trail is invaluable when diagnosing which deploy introduced a regression.

Quick Check

Test your versioning and rollback knowledge.

Recap

You learned versioning and rollback:

  • Use immutable, content-hashed artifacts
  • A manifest maps remotes to current versions
  • Deploy and rollback by changing the manifest
  • Canary per remote and use semver for contracts
  • Automate rollback on failed health checks

Disciplined versioning makes independent deploys safe.

Gratis para empezar

Aprende JavaScript con un tutor de IA — gratis

Escribe y ejecuta código real en tu navegador, obtén ayuda instantánea de un tutor de IA disponible 24/7 y continúa donde lo dejaste en la web o en la aplicación.

Cursos
12
Lecciones
48

Preguntas frecuentes

¿La lección «Estrategias de versionado y rollback» es gratis?

Sí — el texto completo de «Estrategias de versionado y rollback» es gratis para leer aquí en la web. Para practicarla de forma interactiva (editor de código integrado y tutor de IA 24/7) y desbloquear el resto del curso de Micro Frontends Architecture with Module Federation, actualiza a CoddyKit PRO. El curso de Micro Frontends Architecture with Module Federation incluye 4 lecciones en total.

¿Qué aprenderé en «Estrategias de versionado y rollback»?

Aprenda a versionar remotos federados de forma segura y a revertir al instante un solo micro frontend cuando un despliegue sale mal. Practicas Micro Frontends Architecture with Module Federation con código real que ejecutas directamente en el navegador, y un tutor de IA 24/7 responde tus preguntas mientras trabajas en la lección.

¿Necesito experiencia previa para empezar Micro Frontends Architecture with Module Federation?

No se requiere experiencia previa. Micro Frontends Architecture with Module Federation en CoddyKit está estructurado para principiantes hasta estudiantes avanzados, así que puedes empezar aquí o desde el inicio y avanzar a tu ritmo. Esta es la lección 4 de 4.

¿Cuánto tiempo toma la lección «Estrategias de versionado y rollback»?

La mayoría de las lecciones de CoddyKit toman alrededor de 5–10 minutos. Cada una es compacta e interactiva, así que avanzas constantemente y retomas exactamente por donde dejaste en la web y la app.

¿Puedo escribir y ejecutar código en esta lección de Micro Frontends Architecture with Module Federation?

Sí. Cada lección de Micro Frontends Architecture with Module Federation incluye un editor de código integrado, así que escribes y ejecutas código real directamente en tu navegador y obtienes retroalimentación instantánea de IA — sin configuración local necesaria.

Todas las lecciones de este curso

  1. Pipelines de despliegue independientes
  2. Compilaciones y versiones automatizadas
  3. Alojamiento y escalado de aplicaciones federadas
  4. Estrategias de versionado y rollback
← Volver a Micro Frontends Architecture with Module Federation