万本电子书0元读

万本电子书0元读

顶部广告

Microservices Deployment Cookbook电子书

售       价:¥

1人正在读 | 0人评论 9.8

作       者:Vikram Murugesan

出  版  社:Packt Publishing

出版时间:2017-01-01

字       数:141.8万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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.
目录展开

Microservices Deployment Cookbook

Microservices Deployment Cookbook

Credits

About the Author

About the Reviewer

www.PacktPub.com

Why subscribe?

Customer Feedback

Preface

What this book covers

What you need for this book

Who this book is for

Sections

Getting ready

How to do it…

How it works…

There's more…

See also

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Building Microservices with Java

Introduction

Creating a project template using STS and Maven

Getting ready

How to do it...

There's more...

Writing microservices with Spring Boot

Getting ready

How to do it...

Writing REST APIs with Spring MVC

Getting ready

How to do it...

Writing microservices with WildFly Swarm

Getting ready

How to do it...

Writing microservices with Dropwizard

Getting ready

How to do it...

Writing REST APIs with SparkJava

Getting ready

How to do it...

Conclusion

2. Containerizing Microservices with Docker

Building an executable JAR using Maven Shade plugin

Getting ready

How to do it...

Building an executable JAR using the Spring Boot Maven plugin

Getting ready

How to do it...

Installing and setting up Docker

Getting ready

How to do it...

Writing your Dockerfile

Getting ready

How to do it...

Building your Docker image

Getting ready

How to do it...

Running your microservice inside a Docker container

Getting ready

How to do it...

Pushing your image to Docker Hub

Getting ready

How to do it...

3. Deploying Microservices on Mesos

Introduction

Setting up a Mesos cluster using Docker

Getting ready

Zookeeper

Mesos masters and Mesos slaves

Mesos frameworks

How to do it...

Understanding the Mesos and Marathon interface

Getting ready

How to do it...

The Mesos interface

The Mesos home page

Frameworks

The Marathon web UI

Deploying your microservice to Mesos using Marathon

Getting ready

How to do it...

Configuring ports in Marathon

Getting ready

How to do it...

Configuring volumes in Marathon

Getting ready

How to do it...

Configuring environment variables in Marathon

Getting ready

How to do it...

Scaling your microservice in Marathon

Getting ready

How to do it...

Destroying your microservice in Marathon

Getting ready

How to do it...

Monitoring your microservice logs in Marathon

Getting ready

How to do it...

Monitoring your microservice logs in Mesos

Getting ready

How to do it...

Managing your microservice using Marathon's REST API

Getting ready

How to do it...

4. Deploying Microservices on Kubernetes

Introduction

Kubernetes master

API server

etcd

Scheduler

Controller manager

Kubernetes node

Setting up Kubernetes cluster using Docker

Getting ready

How to do it...

Understanding the Kubernetes dashboard

Getting ready

How to do it...

Deploying your microservice on Kubernetes

Getting ready

How to do it...

Configuring ports in Kubernetes

Getting ready

How to do it...

Configuring volumes in Kubernetes

Getting ready

How to do it...

Configuring environment variables in Kubernetes

Getting ready

How to do it...

Scaling your microservice in Kubernetes

Getting ready

How to do it...

Destroying your microservice in Kubernetes

Getting ready

How to do it...

Monitoring your microservice logs in Kubernetes

Getting ready

How to do it...

5. Service Discovery and Load Balancing Microservices

Introduction

Setting up Zookeeper using Docker

Getting ready

How to do it...

Load balancing microservices using Zookeeper

Getting ready

How to do it...

Setting up Consul using Docker

Getting ready

How to do it...

Understanding the concepts of Consul

Implementing service discovery using Spring Cloud Consul

Getting ready

How to do it...

Load balancing your microservice using Spring Cloud Consul

Getting ready

How to do it...

Load balancing your microservice using Nginx and Consul

Getting ready

How to do it...

Load balancing your microservice using Marathon LB

How it works...

6. Monitoring Microservices

Introduction

Configuring Spring Boot Actuator metrics

Getting ready

How to do it...

Understanding Spring Boot Actuator metrics

Getting ready

How to do it...

Creating custom metrics using Dropwizard

Getting ready

How to do it...

Setting up Graphite using Docker

Getting ready

How to do it...

Using the Graphite interface

Getting ready

How to do it...

Tree view

Search

Auto-Completer

Graphite

Exporting Dropwizard metrics over to Graphite

Getting ready

How to do it...

Exporting Spring Boot Actuator metrics over to Graphite

Getting ready

How to do it...

Setting up Grafana using Docker

Getting ready

How to do it...

Configuring Grafana to use Graphite

Getting ready

How to do it...

Configuring Grafana dashboards to view metrics

Getting ready

How to do it...

7. Building Asynchronous Streaming Systems with Kafka and Spark

Introduction

Setting up Kafka using Docker

Kafka

Point-to-point mechanism

Pub-sub mechanism

Kafka terminology

Brokers

Topics

Partitions

Producers and consumers

Getting ready

How to do it...

Creating Kafka topics to stream data

Getting ready

How to do it...

Writing a streaming program using Kafka Streams

Getting ready

How to do it...

Improving the performance of the Kafka Streams program

Getting ready

How to do it...

Writing a streaming program using Apache Spark

Getting ready

How to do it...

Improving the performance of the Spark job

How to do it...

Aggregating logs into Kafka using Log4J

Getting ready

How to do it...

Integrating Kafka with log management systems

How it works...

8. More Clustering Frameworks - DC/OS, Docker Swarm, and YARN

Introduction

Deploying infrastructure with DC/OS

Getting ready

How to do it...

Deploying containers with Docker Swarm

Getting ready

How to do it...

Deploying containers on YARN

Getting ready

How it works...

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部