Master API design, event-driven structures, and package management in Python
Jaime Buelta
Python#
Architecture#
software_architecture#
TDD#
Make the best of your test suites by using cutting-edge software architecture patterns in Python
Developing large-scale systems that continuously grow in scale and complexity requires a thorough understanding of how software projects should be implemented. Software developers, architects, and technical management teams rely on high-level software design patterns such as microservices architecture, event-driven architecture, and the strategic patterns prescribed by domain-driven design (DDD) to make their work easier.
This book covers these proven architecture design patterns with a forward-looking approach to help Python developers manage application complexity―and get the most value out of their test suites.
Starting with the initial stages of design, you will learn about the main blocks and mental flow to use at the start of a project. The book covers various architectural patterns like microservices, web services, and event-driven structures and how to choose the one best suited to your project. Establishing a foundation of required concepts, you will progress into development, debugging, and testing to produce high-quality code that is ready for deployment. You will learn about ongoing operations on how to continue the task after the system is deployed to end users, as the software development lifecycle is never finished.
By the end of this Python book, you will have developed "architectural thinking": a different way of approaching software design, including making changes to ongoing systems.
This book will help software developers and architects understand the structure of large complex systems and adopt architectural patterns that are scalable. Examples in the book are implemented in Python so a fair grasp of basic Python concepts is expected. Proficiency in any programming languages such as Java or JavaScript is sufficient.
The focus of the book is on demystifying how complex systems are structured and the way their different parts interact with each other, which is the base of software architecture.
I’ve also covered commonly used patterns to help you make informed designs and use proven structures that have been battle tested in other running systems. The book covers in depth the challenges in implementation, as well as how to properly measure and act after the system is up and running.
One common problem that I see in other books is that they only present a collection of patterns rather than describing the basics of software architecture. I’ve bridged the gap by explaining the general concepts with an aim of developing an architect’s mindset when working. For example, a critical aspect of working as an architect is that systems are always evolving and adapting. In fact, 90% of the time or more, a developer will be working to move from existing structures to new ones, instead of designing something from scratch. I tried to cover the whole software lifecycle.
My books helps reads by explaining different concepts and not being just a collection of cookie-cut recipes to blindly follow. As useful as it is to know what an existing patterns is, the real understanding of software architecture comes with the underlying concepts and principles, such as working with abstractions, creating different modules, measuring, making adjustments while the system is working, and understanding the impact that it has on teams and teamwork.
The main goal is to get a clear and useful idea of how software architecture is useful when developing complex systems, as most architecture happens within evolving systems and not in the initial design stages. I have described how the whole lifecycle, from design to operation to adjustment, is important.
I am quite happy with the result and hope that the book will be useful for everyone working with this architectural view of software. I also hope readers are able to incorporate tools to have a more stable and manageable system.
Jaime Buelta is a Software Architect who has been a professional programmer since 2002 and a Python enthusiast since 2010. He has developed software for a variety of fields, focusing, in the last 10 years, on developing web services in Python in the gaming, finance and education industries. He is a strong proponent of automating everything to make computers do most of the heavy lifting, so humans can focus on the important stuff. He published his first book, "Python Automation Cookbook", in 2018 (recently with an extended second edition), followed a year later by "Hands-On Docker for Microservices with Python" describing how to migrate to a microservice architecture. He is currently living in Dublin, Ireland, and is a regular speaker at PyCon Ireland.