Microservices Deployment Cookbook

Master over 60 recipes to help you deliver complete, scalable, microservice-based solutions and see the improved business results immediately
Preview in Mapt

Microservices Deployment Cookbook

Vikram Murugesan

Master over 60 recipes to help you deliver complete, scalable, microservice-based solutions and see the improved business results immediately

Quick links: > What will you learn?> Table of content

Mapt Subscription
FREE
$29.99/m after trial
eBook
$28.00
RRP $39.99
Save 29%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$28.00
$49.99
$29.99 p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Microservices Deployment Cookbook Book Cover
Microservices Deployment Cookbook
$ 39.99
$ 28.00
Microservices: Building Scalable Software Book Cover
Microservices: Building Scalable Software
$ 71.99
$ 50.40
Buy 2 for $35.00
Save $76.98
Add to Cart

Book Details

ISBN 139781786469434
Paperback378 pages

Book Description

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

Chapter 1: Building Microservices with Java
Introduction
Creating a project template using STS and Maven
Writing microservices with Spring Boot
Writing REST APIs with Spring MVC
Writing microservices with WildFly Swarm
Writing microservices with Dropwizard
Writing REST APIs with SparkJava
Conclusion
Chapter 2: Containerizing Microservices with Docker
Building an executable JAR using Maven Shade plugin
Building an executable JAR using the Spring Boot Maven plugin
Installing and setting up Docker
Writing your Dockerfile
Building your Docker image
Running your microservice inside a Docker container
Pushing your image to Docker Hub
Chapter 3: Deploying Microservices on Mesos
Introduction
Setting up a Mesos cluster using Docker
Understanding the Mesos and Marathon interface
Deploying your microservice to Mesos using Marathon
Configuring ports in Marathon
Configuring volumes in Marathon
Configuring environment variables in Marathon
Scaling your microservice in Marathon
Destroying your microservice in Marathon
Monitoring your microservice logs in Marathon
Monitoring your microservice logs in Mesos
Managing your microservice using Marathon's REST API
Chapter 4: Deploying Microservices on Kubernetes
Introduction
Setting up Kubernetes cluster using Docker
Understanding the Kubernetes dashboard
Deploying your microservice on Kubernetes
Configuring ports in Kubernetes
Configuring volumes in Kubernetes
Configuring environment variables in Kubernetes
Scaling your microservice in Kubernetes
Destroying your microservice in Kubernetes
Monitoring your microservice logs in Kubernetes
Chapter 5: Service Discovery and Load Balancing Microservices
Introduction
Setting up Zookeeper using Docker
Load balancing microservices using Zookeeper
Setting up Consul using Docker
Implementing service discovery using Spring Cloud Consul
Load balancing your microservice using Spring Cloud Consul
Load balancing your microservice using Nginx and Consul
Load balancing your microservice using Marathon LB
Chapter 6: Monitoring Microservices
Introduction
Configuring Spring Boot Actuator metrics
Understanding Spring Boot Actuator metrics
Creating custom metrics using Dropwizard
Setting up Graphite using Docker
Using the Graphite interface
Exporting Dropwizard metrics over to Graphite
Exporting Spring Boot Actuator metrics over to Graphite
Setting up Grafana using Docker
Configuring Grafana to use Graphite
Configuring Grafana dashboards to view metrics
Chapter 7: Building Asynchronous Streaming Systems with Kafka and Spark
Introduction
Setting up Kafka using Docker
Getting ready
How to do it...
Creating Kafka topics to stream data
Writing a streaming program using Kafka Streams
Improving the performance of the Kafka Streams program
Writing a streaming program using Apache Spark
Improving the performance of the Spark job
Aggregating logs into Kafka using Log4J
Integrating Kafka with log management systems
Chapter 8: More Clustering Frameworks - DC/OS, Docker Swarm, and YARN
Introduction
Deploying infrastructure with DC/OS
Deploying containers with Docker Swarm
Deploying containers on YARN

What You Will Learn

  • Build microservices using Spring Boot, Wildfly Swarm, Dropwizard, and SparkJava
  • Containerize your microservice using Docker
  • Deploy microservices using Mesos/Marathon and Kubernetes
  • Implement service discovery and load balancing using Zookeeper, Consul, and Nginx
  • Monitor microservices using Graphite and Grafana
  • Write stream programs with Kafka Streams and Spark
  • Aggregate and manage logs using Kafka
  • Get introduced to DC/OS, Docker Swarm, and YARN

Authors

Table of Contents

Chapter 1: Building Microservices with Java
Introduction
Creating a project template using STS and Maven
Writing microservices with Spring Boot
Writing REST APIs with Spring MVC
Writing microservices with WildFly Swarm
Writing microservices with Dropwizard
Writing REST APIs with SparkJava
Conclusion
Chapter 2: Containerizing Microservices with Docker
Building an executable JAR using Maven Shade plugin
Building an executable JAR using the Spring Boot Maven plugin
Installing and setting up Docker
Writing your Dockerfile
Building your Docker image
Running your microservice inside a Docker container
Pushing your image to Docker Hub
Chapter 3: Deploying Microservices on Mesos
Introduction
Setting up a Mesos cluster using Docker
Understanding the Mesos and Marathon interface
Deploying your microservice to Mesos using Marathon
Configuring ports in Marathon
Configuring volumes in Marathon
Configuring environment variables in Marathon
Scaling your microservice in Marathon
Destroying your microservice in Marathon
Monitoring your microservice logs in Marathon
Monitoring your microservice logs in Mesos
Managing your microservice using Marathon's REST API
Chapter 4: Deploying Microservices on Kubernetes
Introduction
Setting up Kubernetes cluster using Docker
Understanding the Kubernetes dashboard
Deploying your microservice on Kubernetes
Configuring ports in Kubernetes
Configuring volumes in Kubernetes
Configuring environment variables in Kubernetes
Scaling your microservice in Kubernetes
Destroying your microservice in Kubernetes
Monitoring your microservice logs in Kubernetes
Chapter 5: Service Discovery and Load Balancing Microservices
Introduction
Setting up Zookeeper using Docker
Load balancing microservices using Zookeeper
Setting up Consul using Docker
Implementing service discovery using Spring Cloud Consul
Load balancing your microservice using Spring Cloud Consul
Load balancing your microservice using Nginx and Consul
Load balancing your microservice using Marathon LB
Chapter 6: Monitoring Microservices
Introduction
Configuring Spring Boot Actuator metrics
Understanding Spring Boot Actuator metrics
Creating custom metrics using Dropwizard
Setting up Graphite using Docker
Using the Graphite interface
Exporting Dropwizard metrics over to Graphite
Exporting Spring Boot Actuator metrics over to Graphite
Setting up Grafana using Docker
Configuring Grafana to use Graphite
Configuring Grafana dashboards to view metrics
Chapter 7: Building Asynchronous Streaming Systems with Kafka and Spark
Introduction
Setting up Kafka using Docker
Getting ready
How to do it...
Creating Kafka topics to stream data
Writing a streaming program using Kafka Streams
Improving the performance of the Kafka Streams program
Writing a streaming program using Apache Spark
Improving the performance of the Spark job
Aggregating logs into Kafka using Log4J
Integrating Kafka with log management systems
Chapter 8: More Clustering Frameworks - DC/OS, Docker Swarm, and YARN
Introduction
Deploying infrastructure with DC/OS
Deploying containers with Docker Swarm
Deploying containers on YARN

Book Details

ISBN 139781786469434
Paperback378 pages
Read More

Read More Reviews

Recommended for You

Microservices: Building Scalable Software Book Cover
Microservices: Building Scalable Software
$ 71.99
$ 50.40
Spring 5.0 Microservices - Second Edition Book Cover
Spring 5.0 Microservices - Second Edition
$ 39.99
$ 28.00
Docker Orchestration Book Cover
Docker Orchestration
$ 35.99
$ 25.20
Building Serverless Architectures Book Cover
Building Serverless Architectures
$ 35.99
$ 25.20
Native Docker Clustering with Swarm Book Cover
Native Docker Clustering with Swarm
$ 35.99
$ 25.20
Elasticsearch: A Complete Guide Book Cover
Elasticsearch: A Complete Guide
$ 79.99
$ 56.00