버전 관리 및 롤백 전략
페더레이션된 원격 앱의 버전을 안전하게 관리하고 배포에 문제가 생겼을 때 단일 마이크로 프런트엔드를 즉시 롤백하는 방법을 배웁니다.
버전 관리 및 롤백 전략은(는) CoddyKit의 무료 Micro Frontends Architecture with Module Federation 강의입니다. 이것은 4개 중 4번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 Micro Frontends Architecture with Module Federation 학습 경로의 일부이며, 진행 상황이 웹과 CoddyKit 앱에 동기화됩니다. Micro Frontends Architecture with Module Federation 강의에는 총 4개의 강의가 포함되어 있습니다.
이 강의의 일부는 아직 번역되지 않았으며 영어로 표시됩니다.
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.jsContent 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.jsA 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
fiAuditing 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.
AI 튜터와 함께 JavaScript을(를) 배우세요 — 무료
브라우저에서 실제 코드를 작성하고 실행하며, 24/7 AI 튜터로부터 즉각적인 도움을 받고, 웹이나 앱에서 중단한 부분부터 계속 학습하세요.
- 코스
- 12
- 레슨
- 48
자주 묻는 질문
“버전 관리 및 롤백 전략” 강의는 무료인가요?
네 — “버전 관리 및 롤백 전략” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 Micro Frontends Architecture with Module Federation 강의 전체를 잠금 해제할 수 있습니다. Micro Frontends Architecture with Module Federation 강의에는 총 4개의 강의가 포함되어 있습니다.
“버전 관리 및 롤백 전략”에서 뭘 배우나요?
페더레이션된 원격 앱의 버전을 안전하게 관리하고 배포에 문제가 생겼을 때 단일 마이크로 프런트엔드를 즉시 롤백하는 방법을 배웁니다. 브라우저에서 직접 실행하는 실습 코드로 Micro Frontends Architecture with Module Federation을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.
Micro Frontends Architecture with Module Federation을(를) 시작하는 데 경험이 필요한가요?
사전 경험은 필요하지 않습니다. CoddyKit의 Micro Frontends Architecture with Module Federation은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 4번째 강의입니다.
“버전 관리 및 롤백 전략” 강의는 얼마나 걸리나요?
대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.
이 Micro Frontends Architecture with Module Federation 강의에서 코드를 작성하고 실행할 수 있나요?
네. 모든 Micro Frontends Architecture with Module Federation 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.
이 강의의 모든 강의
- 독립 배포 파이프라인
- 자동화된 빌드 및 릴리스
- 모듈 연합 앱 호스팅 및 확장
- 버전 관리 및 롤백 전략