Book Image

Microservices Deployment Cookbook

By : Vikram Murugesan
Book Image

Microservices Deployment Cookbook

By: Vikram Murugesan

Overview of this book

This book will help any team or organization understand, deploy, and manage microservices at scale. It is driven by a sample application, helping you gradually build a complete microservice-based ecosystem. Rather than just focusing on writing a microservice, this book addresses various other microservice-related solutions: deployments, clustering, load balancing, logging, streaming, and monitoring. The initial chapters offer insights into how web and enterprise apps can be migrated to scalable microservices. Moving on, you’ll see how to Dockerize your application so that it is ready to be shipped and deployed. We will look at how to deploy microservices on Mesos and Marathon and will also deploy microservices on Kubernetes. Next, you will implement service discovery and load balancing for your microservices. We’ll also show you how to build asynchronous streaming systems using Kafka Streams and Apache Spark. Finally, we wind up by aggregating your logs in Kafka, creating your own metrics, and monitoring the metrics for the microservice.
Table of Contents (15 chapters)
Microservices Deployment Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Introduction


As you start scaling out to several microservices, it becomes difficult to monitor them. You might want to know when some part of your platform is not working as expected. At the same time, you want to be notified when some part of your application is not performing well. So monitoring becomes a significant aspect of microservices. At the same time, monitoring will not make sense if you don't monitor the right metrics. So exposing the right metrics for each microservices matter a lot. While you spend 60 percent of your time writing the actual functionality of the microservice, the other 40 percent should be spent on activities such as deployments, CI, monitoring, and logging. If this sounds strange to you, you will start understanding it as soon as you start writing more and more microservices.

The biggest question is where do we store these metrics. That's where Time Series Databases come into picture. There are several time series databases in the market at the moment like...