Page
1
Practical Microservices Architectural Patterns Build Highly Scalable Distributed Applications with Spring Boot 3 and Spring Cloud — Second Edition — Binildas Christudas Tarun Telang
Page
2
Practical Microservices Architectural Patterns Build Highly Scalable Distributed Applications with Spring Boot 3 and Spring Cloud Second Edition Binildas Christudas Tarun Telang
Page
3
Practical Microservices Architectural Patterns: Build Highly Scalable Distributed Applications with Spring Boot 3 and Spring Cloud, Second Edition ISBN-13 (pbk): 979-8-8688-1605-5 ISBN-13 (electronic): 979-8-8688-1606-2 https://doi.org/10.1007/979-8-8688-1606-2 Copyright © 2025 by Binildas Christudas and Tarun Telang This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights. While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein. Managing Director, Apress Media LLC: Welmoed Spahr Acquisitions Editor: Melissa Duffy Editorial Assistant: Gryffin Winkler Cover designed by eStudioCalamar Cover image designed by Freepik (www.freepik.com) Distributed to the book trade worldwide by Springer Science+Business Media New York, 1 New York Plaza, New York, NY 10004. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-sbm.com, or visit www.springeronline.com. Apress Media, LLC is a Delaware LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation. For information on translations, please e-mail booktranslations@springernature.com; for reprint, paperback, or audio rights, please e-mail bookpermissions@springernature.com. Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Print and eBook Bulk Sales web page at http://www.apress.com/bulk-sales. Any source code or other supplementary material referenced by the author in this book is available to readers on GitHub. For more detailed information, please visit https://www.apress.com/gp/services/ source-code. If disposing of this product, please recycle the paper Binildas Christudas Trivandrum, Kerala, India Tarun Telang Hyderabad, Telangana, India
Page
4
This book is dedicated to my grandparents and parents; my sister, Kriti; my wife, Nikita; and my son, Vihan. They have been a constant source of inspiration and encouragement for me. It's also dedicated to software and technology creators worldwide. I hope these patterns help you build better solutions that make our planet a more connected, efficient, and better place to live. —Tarun Telang
Page
5
(This page has no text content)
Page
6
(This page has no text content)
Page
7
(This page has no text content)
Page
8
(This page has no text content)
Page
9
(This page has no text content)
Page
10
(This page has no text content)
Page
11
(This page has no text content)
Page
12
(This page has no text content)
Page
13
(This page has no text content)
Page
14
(This page has no text content)
Page
15
(This page has no text content)
Page
16
(This page has no text content)
Page
17
(This page has no text content)
Page
18
(This page has no text content)
Page
19
xix Binildas Christudas provides technical architecture consultancy for IT solutions. He has over 20 years of IT experience, mostly in Microsoft and Oracle technologies. Distributed computing and service-oriented integration are his main skills, and he has extensive hands-on experience in Java and C# programming. A well-known and highly sought- after thought leader, Binil has designed and built many highly scalable middle-tier and integration solutions for several top-notch clients, including Fortune 500 companies. He has been employed by many IT consulting firms, including Infosys, India, and Tata Consultancy Services. Currently, he works for IBS Software Private Limited, as their chief architect and head of technology, where he leads technology and architecture strategies for IBS’s product portfolio. Binil is a Sun Certified Programmer (SCJP), Developer (SCJD), Business Component Developer (SCBCD), and Enterprise Architect (SCEA), Microsoft Certified Professional (MCP), and Open Group (TOGAF8) Certified Enterprise Architecture Practitioner. He is also a Licensed Zapthink Architect (LZA) in SOA. IBS has applied for its proposal titled “A Method and a System for Facilitating Multitenancy of Services” to be a patent with the USPTO. Tarun Telang is a seasoned and hands-on technologist with a wealth of experience designing and implementing highly scalable software applications. With an impressive career spanning over 20 years, Tarun has held influential roles at some of the world’s renowned software companies such as Microsoft, Oracle, SAP, and BlackBerry. He began his career as an enterprise Java developer at SAP, where he honed his skills in crafting distributed business applications tailored for large enterprises. Through his dedication to continuous learning and professional development, He became an Oracle Certified Java Programmer, SAP Certified Development Consultant for Enterprise Java, and SAP Certified Application Management Expert specializing in end-to-end root cause analysis. About the Authors
Page
20
xx As a prolific author, Tarun frequently writes on Java and related technologies, and his authored books and online courses, including a best-selling book on Java, Jakarta EE, and cloud-native development using MicroProfile and Kubernetes, and YAML, have been well-received by the tech community. He is a sought-after speaker at developer conferences like SAP TechEd and the Great Indian Developer Summit, sharing his technical expertise with enthusiastic audiences. You can visit his site, practicaldeveloper.com, to explore more about his books, blogs, articles, and learning resources, or follow him on www.linkedin.com/in/taruntelang/ for more updates about him. Tarun’s expertise lies in architecting and developing business applications, focusing on cloud-native solutions using cutting- edge architectural patterns like microservices and event-driven architecture. He has led the development of numerous end-to-end cloud-based solutions, demonstrating his deep technical understanding of delivering high-performing and reliable large-scale applications. An advocate of agile methodologies, Tarun excels in applying domain-driven design and behavior-driven development principles, ensuring seamless project management and collaboration across cross-functional teams across different geographical locations. His vast international experience, having worked in Canada and Germany, has enriched his global perspective and ability to adapt to diverse environments. Tarun currently lives in Hyderabad, India, and enjoys spending time with his wife and child when he’s not indulging in his love for technology. You can follow Tarun or contact him on his X (formerly Twitter) account, @taruntelang. abouT The auThors