_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN
Let's talk

Strangler Fig Pattern — migrace z monolitu

14. 05. 2023 1 min read intermediate

Architecture Intermediate

Strangler Fig Pattern — migrace z monolitu

Strangler FigMigrationMonolith 3 min read

Postupná migrace z monolitu na mikroservisy. Bezpečný, inkrementální approach.

Principle

Pojmenewn according to fíkovníku obrůstajícího strom. Postupně nahrazujete části monolitu newmi servicemi.

Steps

  • Postavte proxy/fasádu before monolith
  • Vyberte funkci k extrakci (začněte jednoduchou)
  • Implementujte novou službu
  • Přesměrujte traffic
  • Odstraňte starý kód
server {
    listen 80;
    # Migrated
    location /api/orders { proxy_pass http://new-order-service:8080; }
    # Legacy
    location / { proxy_pass http://legacy-monolith:3000; }
}

Tips

  • Start with na okraji — functions s nejsmallermi závislostmi
  • Anti-Corruption Layer between starým a newm
  • Feature flags pro přepínání traffic
  • Migrace trvá monthe až roky — nespěchejte

Summary

Strangler Fig je nejmore secure cesta z monolitu. Žádný big bang, postupné vytlačování oldho code.

Need Help with Implementation?

Our team has experience designing and implementing modern architectures. We’re happy to help.

Free Consultation

Share:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.