If your development department is growing and adding new teams. In order to remain agile, you may
find microservices offer advantages to a large codebase with a
plurality of teams. You can avoid needing to synchronize across a
whole company and break the problems down into smaller more easily
Benefits of microservices
Code can be broken out into smaller microservices that are easier to
learn, release and update.
Individual microservices can be written using the best tools for the
Releasing a new service doesn't require
synchronization across a whole company.
New technology stacks have lower risk since the service
is relatively small.
Developers can run containers locally, rebuilding and verifying
after each commit on a system that mirrors production.
Both Docker and Kubernetes are open source and free to
Access to Docker hub leverages the work of the opensource
Service isolation without the heavyweight VM. Adding a
service to a server does not affect other services on the
Services can be more easily run on a large cluster of nodes making it
Some clients will only host in private and not
on public clouds.
Lends itself to immutable infrastructure, so services are
reloadable without missing state when a server goes down.
Immutable containers improve security since data can only be mutated in specified
volumes, root kits often can't be installed even if the system is
Increasing support for new hardware, like the GPU in a
container means even gpgpu tasks like deep learning can be
There is a cost for running microservices - the build and
runtime becomes more complex. This is part of the price to pay
and if you've made the right decision in your context, then benefits
will exceed the costs.
Costs of microservices
Managing multiple services tends to be more costly.
New ways for network and servers to fail.
In the right circumstances, the benefits of microservices
outweigh the extra cost of management.