Morgan Bruce Paulo A. Pereira M A N N I N G A microservice production environment Production Monitors Observes Connects Engineers Writes Manages Runtime Code Control pane Deployment pipeline management A microservice production environment has several components: a deployment target, a deployment pipeline, runtime management, networking features, and support for observability. In this book, we'll teach you about these components and how you can use them to build a stable, modern microservice application. Network and routing Observability Microservices in Action Microservices in Action MORGAN BRUCE PAULO A. PEREIRA MANN I N G Shelter ISland For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact Special Sales Department Manning Publications Co. 20 Baldwin Road PO Box 761 Shelter Island, NY 11964 Email: brief contents Part 1 The lay of the land ................................................. 1 1 ■ Designing and running microservices 3 2 ■ Microservices at SimpleBank 28 Part 2 Design .......................................................................49 3 ■ Architecture of a microservice application 51 4 ■ Designing new features 75 5 ■ Transactions and queries in microservices 105 6 ■ Designing reliable services 129 7 ■ Building a reusable microservice framework 159 Part 3 Deployment ............................................................185 8 ■ Deploying microservices 187 9 ■ Deployment with containers and schedulers 214 10 ■ Building a delivery pipeline for microservices 243 Part 4 Observability and ownership .............................267 11 ■ Building a monitoring system 269 12 ■ Using logs and traces to understand behavior 296 13 ■ Building microservice teams 325 v contents preface xv acknowledgments xvii about this book xix about the authors xxii about the cover illustration xxiii Part 1 The lay of the land ......................................1 Designing and running microservices 3 1 1.1 What is a microservice application? 4 Scaling through decomposition 6 ■ Key principles 7 ■ Who uses microservices? ■ Why are microservices a good choice? 12 1.2 What makes microservices challenging? 14 Design challenges ■ Operational challenges 17 1.3 Microservice development lifecycle 18 Designing microservices ■ Deploying microservices ■ Observing microservices 24 1.4 Responsible and operationally aware engineering culture 26 vii