SlideShare uma empresa Scribd logo
1 de 10
Baixar para ler offline
ESTRATÉGIA DE
MODERNIZAÇÃO
ARQUITETURAL
AGNI G. B. CAMPOS
http://agni-tech.blogspot.com
AGENDA
1  / Apresentação
2  / Estratégia de Convivência
Estágio 1 – Novo dependendo do legado
Estágio 2 – Ponto de dependência refatorado
Estágio 3 – Legado desativado
APRESENTAÇÃO
Umavezquesevisualizouasituaçãofutura,énecessárioumplanodeimplementaçãodaArquiteturaAlvoparacadenciaros
esforçosdedesign,desenvolvimentoeintegraçãodasnovassoluções.
Trata-se,obviamente,deumajornadadelongoprazoqueprecisadeumreferencialconsistentejádeinicio,masquesofra
evoluçõeserefinamentosàmedidaqueseaprofundemostrabalhosemcadafrentedeimplementação.
JORNADAINCREMENTAL
Aocontráriodoquesefaziaháalgunsanos,modernamentenãoéaceitávelumajornadadetransformaçãoqueconsuma
recursoseesforçosduranteanospara,sóaofim,tentarproduziralgumacoisaexecutável(emprodução).
ESTRATÉGIADECONVIVÊNCIA
Paraissoserpossível,énecessária,antesdemaisnada,umaestratégiadeconvivênciaquepermitaaonovoconvivercomo
legado,sem,comisso,sofrerquaisquerdistorçõesdedesignoudeconceitos.
Umaboaarquiteturaécompostaporboasabstrações,ouseja,porseparaçõesdeconceitosedecisõesdedesignque
justamentesãofeitasparacorrigirproblemascrônicoslegados.É,portanto,fundamentalpreservaranovaarquitetura
enquantoématerializada.
ESTRATÉGIA DE CONVIVÊNCIA
Paraserpossívelimplementaraarquiteturaalvodemaneiraincremental,comprojetosdecurtoprazo
alinhadosaumajornadaplurianual,háquesedefinirumaestratégiaondeolegadoconvivacomo
novo,semcorrompe-lo.
Estágio 1 – Novo dependendo do legado
O legado está desestruturado e não oferece uma interface clara de integração.
A nova solução prevê construir algo novo em convivência com o legado, para futuramente
substituir parte dele e, então, todo ele.
Ao invés de a nova solução acessar o legado conforme o nível de abstração (interface) que
ele oferece, ela vai acioná-lo já no novo nível de abstração (no esquema, “MS 2”).
O legado é incapaz de se comportar no novo nível de abstração e, nesse cenário hipotético, a
funcionalidade legada não pode ser imediatamente recortada para a nova arquitetura
(exatamente para viabilizar uma implementação incremental).
É construída, então, uma camada de transição que corrige as “imperfeições” do legado e é
acionada como se já fosse o “MS 2”.
A nova arquitetura, desta forma, convive com o legado sem ser contaminado por ele.
ESTRATÉGIA DE CONVIVÊNCIA
Estágio 1 – Novo dependendo do legado
O esquema que segue ilustra arquetipicamente como se alcançar tal objetivo:
ESTRATÉGIA DE CONVIVÊNCIA
Paraserpossívelimplementaraarquiteturaalvodemaneiraincremental,comprojetosdecurto
prazoalinhadosaumajornadaplurianual,háquesedefinirumaestratégiaondeolegadoconvivacom
onovo,semcorrompe-lo.
Estágio 2 – Ponto de dependência refatorado
Num projeto (ou sprint) futuro, a parte não estruturada do legado da qual dependia a nova
solução será agora restruturada (fará parte do novo).
A antiga estrutura ficará agora encapsulada no “MS 2” da nova arquitetura.
Não há mais dependência fortemente acoplada do novo para com o legado (ex: pode se tratar
de uma simples replicação de dados)
As funcionalidades legadas acessadas pela aplicação anterior (a “Tela 1”) são desativadas e
agora fazem parte da “SPA 1”
Os módulos da camada de transição são excluídos, sem que a nova solução (“Controller 1”)
sofra qualquer impacto, ou seja, ela acessa a mesma interface (API) através do mesmo
endereço (URI).
ESTRATÉGIA DE CONVIVÊNCIA
Estágio 2 – Ponto de dependência refatorado
O esquema que segue ilustra arquetipicamente como se alcançar tal objetivo:
ESTRATÉGIA DE CONVIVÊNCIA
Paraserpossívelimplementaraarquiteturaalvodemaneiraincremental,comprojetosdecurto
prazoalinhadosaumajornadaplurianual,háquesedefinirumaestratégiaondeolegadoconvivacom
onovo,semcorrompe-lo.
Estágio 3 – Legado desativado
Uma vez que todo o escopo da aplicação legada foi refatorado, ela é desativada.
Quaisquer interfaces entre o sistema (legado ou novo) com outros sistemas continuam
preservadas (a não ser que sejam também objeto de refatoração).
Da mesma forma que se trata convivência durante a refatoração/reconstrução interna de uma
aplicação, pode-se adotar essa abordagem também para a refatoração entre aplicações.
Nesse caso, há que se criar módulos inteiros de transição que sejam capazes de traduzir
interfaces de integração novas em interfaces de integração antigas.
Uma vez que os novos sistemas sejam substituídos, os módulos de transição são desativados
da mesma forma.
ESTRATÉGIA DE CONVIVÊNCIA
Estágio 3 – Legado desativado
O esquema que segue ilustra arquetipicamente como se alcançar tal objetivo:
OBRIGADO PELA
ATENÇÃO!
AGNI G. B. CAMPOS
http://agni-tech.blogspot.com

Mais conteúdo relacionado

Destaque

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Destaque (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Implementando microservices