Book description
Master over 60 recipes to help you deliver complete, scalable, microservice-based solutions and see the improved business results immediately
About This Book
- Adopt microservices-based architecture and deploy it at scale
- Build your complete microservice architecture using different recipes for different solutions
- Identify specific tools for specific scenarios and deliver immediate business results, correlate use cases, and adopt them in your team and organization
Who This Book Is For
This book is for developers, ops, and DevOps professionals who would like to put microservices to work and improve products, services, and operations. Those looking to build and deploy microservices will find this book useful, as well as managers and people at CXO level looking to adopt microservices in their organization. Prior knowledge of Java is expected. No prior knowledge of microservices is assumed.
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
In Detail
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.
Style and approach
This book follows a recipe-driven approach and shows you how to plug and play with all the various pieces, putting them together to build a complete scalable microservice ecosystem. You do not need to study the chapters in order, as you can directly refer to the content you need for your situation.
Table of contents
-
Microservices Deployment Cookbook
- Microservices Deployment Cookbook
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Preface
- 1. Building Microservices with Java
- 2. Containerizing Microservices with Docker
-
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
-
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
-
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
-
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
-
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
- 8. More Clustering Frameworks - DC/OS, Docker Swarm, and YARN
Product information
- Title: Microservices Deployment Cookbook
- Author(s):
- Release date: January 2017
- Publisher(s): Packt Publishing
- ISBN: 9781786469434
You might also like
book
Kubernetes - A Complete DevOps Cookbook
Leverage Kubernetes and container architecture to successfully run production-ready workloads Key Features Implement Kubernetes to orchestrate …
book
Hands-On Microservices with Kubernetes
Enhance your skills in building scalable infrastructure for your cloud-based applications Key Features Learn to design …
book
Microservices Development Cookbook
Quickly learn and employ practical methods for developing microservices Key Features Get to grips with microservice …
book
Building Microservices with Micronaut®
Explore different aspects of building modular microservices such as development, testing, maintenance, and deployment using the …