Book Image

Practical Microservices

By : Umesh Ram Sharma
Book Image

Practical Microservices

By: Umesh Ram Sharma

Overview of this book

<p>A microservice architecture helps you build your application as a suite of different services. This approach has been widely adopted as it helps to easily scale up your application with reduced dependencies. This way if a part of your application is corrupted, it can be fixed easily thereby eliminating the possibility of completely shutting down your software. This book will teach you how to leverage Java to build scalable microservices. You will learn the fundamentals of this architecture and how to efficiently implement it practically.</p> <p>We start off with a brief introduction to the microservice architecture and how it fares with the other architectures. The book dives deep into essential microservice components and how to set up seamless communication between two microservice end points. You will create an effective data model and learn different ways to test and deploy a microservices. You will also learn the best way to migrate your software from a monolith to a microservice architecture.</p> <p>Finishing off with monitoring, scaling and troubleshooting, this book will set a solid foundation for you to start implementing microservices.</p>
Table of Contents (17 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Dockerizing our microservice


Dockers are gaining more popularity these days. It helps developers create smaller modular components, and also the packaging and distributing of the code is easy in Docker. These are the reasons why, Docker has also become the appropriate choice in microservice platform. We will also be learning to use Docker in a microservice. Before that, let's understand Docker a little bit and learn how to install Docker.

Docker

Container is not a new term; it has been there since long. Containers are evolving during this time. They are lightweight OS virtualization. Containers are run on a host OS, which uses and shares resources from the host kernel. Each container is run in isolation, but they share underlying operating system resources though a layer. Containers come with their own benefits:

  • Lightweight
  • High performance and speed
  • Ship infrastructure with code
  • Support microservice architecture
  • Lesser portability issues
  • Simplifies DevOps

Some organizations have their own version...