Jump to ratings and reviews
Rate this book

Hands-On Docker for Microservices with Python: Design, deploy, and operate a complex system with multiple microservices using Docker and Kubernetes

Rate this book
A step-by-step guide to building microservices using Python and Docker, along with managing and orchestrating them with Kubernetes

Key FeaturesLearn to use Docker containers to create, operate, and deploy your microservicesCreate workflows to manage independent deployments on coordinating services using CI and GitOps through GitHub, Travis CI, and FluxDevelop a REST microservice in Python using the Flask framework and Postgres databaseBook DescriptionMicroservices architecture helps create complex systems with multiple, interconnected services that can be maintained by independent teams working in parallel. This book guides you on how to develop these complex systems with the help of containers.

You’ll start by learning to design an efficient strategy for migrating a legacy monolithic system to microservices. You’ll build a RESTful microservice with Python and learn how to encapsulate the code for the services into a container using Docker. While developing the services, you’ll understand how to use tools such as GitHub and Travis CI to ensure continuous delivery (CD) and continuous integration (CI). As the systems become complex and grow in size, you’ll be introduced to Kubernetes and explore how to orchestrate a system of containers while managing multiple services. Next, you’ll configure Kubernetes clusters for production-ready environments and secure them for reliable deployments. In the concluding chapters, you’ll learn how to detect and debug critical problems with the help of logs and metrics. Finally, you’ll discover a variety of strategies for working with multiple teams dealing with different microservices for effective collaboration.

By the end of this book, you’ll be able to build production-grade microservices as well as orchestrate a complex system of services using containers.

What you will learnDiscover how to design, test, and operate scalable microservicesCoordinate and deploy different services using KubernetesUse Docker to construct scalable and manageable applications with microservicesUnderstand how to monitor a complete system to ensure early detection of problemsBecome well versed with migrating from an existing monolithic system to a microservice oneUse load balancing to ensure seamless operation between the old monolith and the new serviceWho this book is forThis book is for developers, engineers, or software architects who are trying to move away from traditional approaches for building complex multi-service systems by adopting microservices and containers. Although familiarity with Python programming is assumed, no prior knowledge of Docker is required.

Table of ContentsMaking the Design, Plan, ExecuteCreating a REST service with PythonBuild, Run, and Test Your Service Using DockerCreating a pipeline and workflow with GitHub and TravisCIUsing KubernetesLocal development with KubernetesConfiguring and Securing the SystemUsing GitOps principlesManaging workflowsMonitoring Logs and MetricsHandling Change, Dependencies, and Secrets in The SystemCollaboration and communication between teams

408 pages, Kindle Edition

Published November 22, 2019

8 people are currently reading
23 people want to read

About the author

Jaime Buelta

5 books1 follower

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
1 (20%)
4 stars
2 (40%)
3 stars
2 (40%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 of 1 review
Profile Image for Matt.
36 reviews2 followers
August 7, 2022
I started reading this book because I wanted to learn about writing APIs/microservices using Flask, and using Docker/Kubernetes as the underlying platform for hosting them.

I didn’t find this book that useful for learning about writing APIs using Flask. It provides a code repository with examples, and does talk about various aspects of writing APIs in Python, but there is insufficient discussion on the topic for a developer to get to grips with it unless they rely upon other resources as well.

The Docker, Kubernetes and developer/team workflows and mindsets were much more useful to me. It helped to see how they supported microservice development, deployment and operation as a whole. While the examples were around deploying Python code the lessons could easily be deployed to other languages as well. This aspect of the book kept me reading after I realised the Flask oriented content was less than I’d originally hoped.

I’d rate this 3.5 stars.
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.