DZone
Integration Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Integration Zone > Why Isn't Microservices for Everyone?

Why Isn't Microservices for Everyone?

Everybody is only talking about the positive parts of moving to microservices but do you really need microservices architecture?

Pavan Belagatti user avatar by
Pavan Belagatti
CORE ·
Oct. 29, 19 · Integration Zone · Opinion
Like (12)
Save
Tweet
38.12K Views

Join the DZone community and get the full member experience.

Join For Free

Now that everybody in the software industry is talking about DevOps practices, we've seen a large number of software-powered organizations adopting both DevOps microservices architecture.

Image title

Moving to Microservices

"Microservices" is a strong and fancy word, isn’t it? Everybody is talking about it, so why not you?
Check out some benefits of moving to microservices architecture here.

Everybody is only talking about the positive parts of moving to microservices. Do you really need microservices architecture? To find out, you should ask yourself these questions:

  1. How independent do you want your services to be?

  2. How well your code is organized? Mono repo or multiple repositories?

  3. How much operational complexity can your team handle?

  4. Do you have a Continuous Delivery platform in place?

  5. How is your team organized? Do they have knowledge about different toolsets and microservices architecture?

The third and fourth points are very strong because they talk about operational complexity and CD platforms. Microservices greatly increase operational complexity since you need to rethink operations from a very fundamental standpoint.

You need to consider the following aspects.

Infrastructure

Defining infrastructure requirements for microservices and then provisioning and maintaining infra for each microservice adds a degree of complexity that most Ops engineers working on monoliths are not accustomed to. Plus, as these services are scaled up and down, infrastructure needs to be provisioned and brought down automatically, so you need a very sophisticated level of automation.

Load Balancing and Scaling

You will likely need a scaling strategy that is much more complicated than for monolithic applications, which are always scaled out (x-axis). With microservices, you will need to figure out if you need to scale all services or just a subset when there is a spike in demand. Your Ops team will need to understand y-axis scaling since the microservices approach is consistent with it, as well as z-axis scaling to get the benefits of x and y. 

Service Discovery

The set of service instances in a microservices world changes dynamically due to scaling and upgrades. Also, services have dynamic network locations, so you need a way for new service instances to be discovered. We recommend a service registry like Consul for this, since it has worked very well for us. 

Monitoring

This has to be configured and maintained for every microservice, increasing the complexity for Ops engineer(s). Also, the monitoring solution has to handle scenarios where a subset of services are scaled up and down.

The operational complexity itself should give you some pause before you decide to move to microservices. Unless you are aware of the challenges with microservices and have a plan to address them, it will be a painful transition.

Do You Have a CD Pipeline in Place?

Organizations like Netflix and Amazon that evangelize microservices have the resources to build homegrown custom Continuous Delivery pipelines for their microservices. However, not every organization can afford to do that. You might have to depend on external platforms like Shippable, Circle CI, XebiaLabs, or Travis CI to do things for you.

microservice CI/CD

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Migrating Legacy Applications and Services to Low Code
  • The Importance of Semantics for Data Lakehouses
  • SQL Database Schema: Beginner’s Guide (With Examples)
  • 5 Myths of Kubernetes

Comments

Integration Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo