You are here

How to Migrate to a Microservices Architecture

Microservices architecture is becoming increasingly important to businesses in order to efficiently serve the demands of a modern marketplace which expects an always-on service. The microservices development approach involves creating a suite of independently deployable, small, modular services. Each service runs a particular process to achieve a business goal and typically communicates over HTTP/REST.

Employing a microservices architecture offers the benefits of fault isolation and simplified maintenance thanks to the smaller code base and modularized approach, and these individual services are easily deployed to allow scaling and high flexibility to adapt quickly to changing customer needs. In a post on AppDynamics, Saba Anees explains how to migrate from a monolithic architecture to a microservices model.

The first practical step is to decide how the intended services will interact before you try to optimize their implementation. Then follow a three-step process for the actual migration; componentize your existing applications; collaborate with all parties to share lessons learned; and connect the completed application to users in a real-world scenario.

Make sure your APIs clearly define how each service should be used to maintain the important loose coupling while still allowing communication. Anees then recommends a gradual approach to rewriting legacy system code as microservices, or take a modular approach with the monolithic architecture so you can move modules into microservices while it continues to share code and deployments.

One major adjustment is for developers used to working in a single language in monolithic architectures who will now have to use multiple languages in new technologies to work across the full width of the application development. Open communication, clearly defined responsibilities, and team buy-in from the start are vital to supporting this developmental transition for successful implementation.

While a microservices architecture does have its disadvantages, such as code duplication and operations overhead, the benefits of flexibility and speed of deployment in the current marketplace far outweigh the drawbacks.

Original Article

How to Migrate to Microservices

Martin W Brennan Martin W Brennan is a co-founder of ViewPop, the social network that puts the creation of 3D photos and videos in the hands of anyone with a smartphone. For his day job, Martin is a copywriting consultant at We Write Words, learning about the world as he writes about it.
 

Comments