Leanpub Header

Skip to main content

Microservices - A Practical Guide

Principles, Concepts, and Recipes

There is a huge number of technologies to choose from when it comes to implementing a microservices system. This books how microservices system can be implemented in practise - including sample code on GitHub.

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
WEB
319
Pages
100,661Words
About

About

About the Book

Microservices have many advantages: Efficiently implementing more features, bringing software into production faster, robustness and easy scalability are among them. But implementing a microservices architecture and selecting the necessary technologies are difficult challenges.

This book shows microservices recipes that architects can customize and combine into a microservices menu. In this way, the implementation of microservices can be individually adapted to the requirements of the project.

Eberhard Wolff introduces microservices, self-contained systems, micro- and macro-architecture and the migration to microservices. The second part shows the microservices recipes: Basic technologies such as Docker or PaaS, frontend integration with links, JavaScript or ESI (Edge Side Includes). This is followed by asynchronous microservices with Apache Kafka or REST / Atom. In the synchronous approaches, the book discusses REST with the Netflix stack, Consul, PaaS with Cloud Foundry, and Kubernetes. Finally, operations is discussed: Log Analysis with Elasticsearch and Kibana, Monitoring with Prometheus, and tracing with Zipkin.

The second edition is based on the feedback about the first edition. All chapters have been clarified, updated and extended. A new chapter discusses services meshes, in particular Istio with an example application. The second edition has about 35 pages more than the first edition.

For each recipe there are suggestions for variations and combinations. Readers can experience all technologies hands-on with a demo project on GitHub. The outlook picks up on the operation of microservices and also shows how the reader can start with microservices in concrete terms.

The book provides the technical tools to implement a microservices architecture. Demo projects and suggestions for self-study will complete the book.

Share this book

Price

Pick Your Price...

Minimum price

$24.99

$24.99

You pay

$24.99

Author earns

$19.99
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 2)

2
The author will earn $24.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

Eberhard Wolff

Eberhard Wolff has 20+ years of experience as an architect and consultant - often on the intersection of business and technology. He is the Head of Architecture at SWAGLab in Germany. As a speaker, he has given talks at international conferences and as an author, he has written more than 100 articles and books e.g. about Microservices and Continuous Delivery. His technological focus is on modern architectures – often involving Cloud, Domain-driven Design, DevOps, or Microservices.

Leanpub Podcast

Episode 96

An Interview with Eberhard Wolff

Contents

Table of Contents

0 Introduction

  1. 0.1 Structure of the Book
  2. 0.2 Target Group
  3. 0.3 Prior Knowledge
  4. 0.4 Quick Start
  5. 0.5 Acknowledgements
  6. 0.6 Website

Part I: Principles of Microservices

1 Microservices

  1. 1.1 Microservices: Definition
  2. 1.2 Reasons for Microservices
  3. 1.3 Challenges
  4. 1.4 Variations
  5. 1.5 Conclusion

2 Micro and Macro Architecture

  1. 2.1 Bounded Context and Strategic Design
  2. 2.2 Technical Micro and Macro Architecture
  3. 2.3 Operation: Micro or Macro Architecture?
  4. 2.4 Give a Preference to Micro Architecture!
  5. 2.5 Organizational Aspects
  6. 2.6 Independent Systems Architecture Principles (ISA)
  7. 2.7 Variations
  8. 2.8 Conclusion

3 Migration

  1. 3.1 Reasons for Migrating
  2. 3.2 A Typical Migration Strategy
  3. 3.3 Alternative Strategies
  4. 3.4 Build, Operation, and Organization
  5. 3.5 Variations
  6. 3.6 Conclusion

Part II: Technology Stacks

4 Docker

  1. 4.1 Docker for Microservices: Reasons
  2. 4.2 Docker Basics
  3. 4.3 Docker Installation and Docker Commands
  4. 4.4 Installing Docker Hosts with Docker Machine
  5. 4.5 Dockerfiles
  6. 4.6 Docker Compose
  7. 4.7 Variations
  8. 4.8 Conclusion

5 Technical Micro Architecture

  1. 5.1 Requirements
  2. 5.2 Reactive
  3. 5.3 Spring Boot
  4. 5.4 Go
  5. 5.5 Variations
  6. 5.6 Conclusion

6 Self-contained Systems

  1. 6.1 Reasons for the Term Self-contained Systems
  2. 6.2 Definition
  3. 6.3 An Example
  4. 6.4 SCSs and Microservices
  5. 6.5 Challenges
  6. 6.6 Benefits
  7. 6.7 Variations
  8. 6.8 Conclusion

7 Concept: Frontend Integration

  1. 7.1 Frontend: Monolith or Modular?
  2. 7.2 Options
  3. 7.3 Resource-oriented Client Architecture (ROCA)
  4. 7.4 Challenges
  5. 7.5 Benefits
  6. 7.6 Variations
  7. 7.7 Conclusion

8 Recipe: Links and Client-side Integration

  1. 8.1 Overview
  2. 8.2 Example
  3. 8.3 Variations
  4. 8.4 Experiments
  5. 8.5 Conclusion

9 Recipe: Server-side Integration using Edge Side Includes (ESI)

  1. 9.1 ESI: Concepts
  2. 9.2 Example
  3. 9.3 Varnish
  4. 9.4 Recipe Variations
  5. 9.5 Experiments
  6. 9.6 Conclusion

10 Concept: Asynchronous Microservices

  1. 10.1 Definition
  2. 10.2 Events
  3. 10.3 Challenges
  4. 10.4 Advantages
  5. 10.5 Variations
  6. 10.6 Conclusions

11 Recipe: Messaging and Kafka

  1. 11.1 Message-oriented Middleware (MOM)
  2. 11.2 The Architecture of Kafka
  3. 11.3 Events with Kafka
  4. 11.4 Example
  5. 11.5 Recipe Variations
  6. 11.6 Experiments
  7. 11.7 Conclusion

12 Recipe: Asynchronous Communication with Atom and REST

  1. 12.1 The Atom Format
  2. 12.2 Example
  3. 12.3 Recipe Variations
  4. 12.4 Experiments
  5. 12.5 Conclusion

13 Concept: Synchronous Microservices

  1. 13.1 Definition
  2. 13.2 Benefits
  3. 13.3 Challenges
  4. 13.4 Variations
  5. 13.5 Conclusion

14 Recipe: REST with the Netflix Stack

  1. 14.1 Example
  2. 14.2 Eureka: Service Discovery
  3. 14.3 Router: Zuul
  4. 14.4 Load Balancing: Ribbon
  5. 14.5 Resilience: Hystrix
  6. 14.6 Recipe Variations
  7. 14.7 Experiments
  8. 14.8 Conclusion

15 Recipe: REST with Consul and Apache httpd

  1. 15.1 Example
  2. 15.2 Service Discovery: Consul
  3. 15.3 Routing: Apache httpd
  4. 15.4 Consul Template
  5. 15.5 Consul and Spring Boot
  6. 15.6 DNS and Registrator
  7. 15.7 Recipe Variations
  8. 15.8 Experiments
  9. 15.9 Conclusion

16 Concept: Microservices Platforms

  1. 16.1 Definition
  2. 16.2 Variations
  3. 16.3 Conclusion

17 Recipe: Docker Containers with Kubernetes

  1. 17.1 Kubernetes
  2. 17.2 The Example with Kubernetes
  3. 17.3 The Example in Detail
  4. 17.4 Additional Kubernetes Features
  5. 17.5 Recipe Variations
  6. 17.6 Experiments
  7. 17.7 Conclusion

18 Recipe: PaaS with Cloud Foundry

  1. 18.1 PaaS: Definition
  2. 18.2 Cloud Foundry
  3. 18.3 The Example with Cloud Foundry
  4. 18.4 Recipe Variations
  5. 18.5 Experiments
  6. 18.6 Serverless
  7. 18.7 Conclusion

Part III: Operation

19 Concept: Operation

  1. 19.1 Why Operation Is Important
  2. 19.2 Approaches for the Operation of Microservices
  3. 19.3 Effects of the Discussed Technologies
  4. 19.4 Conclusion

20 Recipe: Monitoring with Prometheus

  1. 20.1 Basics
  2. 20.2 Metrics for Microservices
  3. 20.3 Metrics with Prometheus
  4. 20.4 Example with Prometheus
  5. 20.5 Recipe Variations
  6. 20.6 Experiments
  7. 20.7 Conclusion

21 Recipe: Log Analysis with the Elastic Stack

  1. 21.1 Basics
  2. 21.2 Logging with the Elastic Stack
  3. 21.3 Example
  4. 21.4 Recipe Variations
  5. 21.5 Experiments
  6. 21.6 Conclusion

22 Recipe: Tracing with Zipkin

  1. 22.1 Basics
  2. 22.2 Tracing with Zipkin
  3. 22.3 Example
  4. 22.4 Recipe Variations
  5. 22.5 Conclusion

23 Recipe: Service Mesh Istio

  1. 23.1 What Is a Service Mesh?
  2. 23.2 Example
  3. 23.3 How Istio Works
  4. 23.4 Monitoring with Prometheus and Grafana
  5. 23.5 Tracing with Jaeger
  6. 23.6 Visualization with Kiali
  7. 23.7 Logging
  8. 23.8 Resilience
  9. 23.9 Challenges
  10. 23.10 Benefits
  11. 23.11 Variations
  12. 23.12 Experiments
  13. 23.13 Conclusion

24 And Now What?

Appendix A: Installation of the Environment

Appendix B: Maven Commands

Appendix C: Docker and Docker Compose Commands

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub