Re:Is there any place for monoliths in 2021? (2020)
by jacobkg on Wednesday August 04, 2021 @11:37AM
(#28062253)
Iām very intrigued by this comment. It probably captures the thing that has held me back from microservices. Can you explain how one can break up a monolith without keeping the interdepencies?
[ Parent
| on HN ]
Re:Is there any place for monoliths in 2021? (2020)
by Voloskaya on Wednesday August 04, 2021 @01:59PM
(#28064149)
Say you have some unit of work A within a monolith, and it is used by service B, C, D also in the monolith.
You can carve out A as a microservice with a clean general interface, and write an adapter layer to translate calls from your old messy interface to your new one, and B, C, D call that. Then start refactoring B, C, D one by one depending on your priorities.
That way new service X that needs to use A, can directly start using the clean general API even if B, C, D are not refactored yet.