From the course: Microservices: Design Patterns (2020)

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Strangler pattern

Strangler pattern

From the course: Microservices: Design Patterns (2020)

Start my 1-month free trial

Strangler pattern

- [Instructor] Now that we have discussed some of the most common decomposition patterns, we need to talk for a bit about how to get there from a legacy system. So, let's talk about the strangler pattern from a high level concept point of view. It really is a simple pattern as long as you can plan appropriately. The idea behind the pattern as a whole, is start with your monolith and then essentially strangling your dependencies off of it. You shard your services off piece by piece, into new microservice endpoints, point the dependency to the new microservice, and eventually, deprecate the functionality out of your monolith, once all of the dependencies are weaned off of it or strangled. You can break your services off at the API layer first, by building out the API and underlying service, and then, moving the database itself behind it, assuming it's a data domain service that you are sharding, of course. You can…

Contents