Architecture Patterns with Python: Becoming a Software Developer

The complete guide to Software Engineering in Python: you will learn how to do Test Driven Development in python, what Domain-Driven Design is , and how to craft Event-Driven Micro-services: Build large and complex applications in this amazing programming language.

architecture patterns with python free pdf

The following is a review of the book Architecture Patterns with Python: Enabling Test-Driven Development, Domain-Driven Design, and Event-Driven Microservices by Harry J.W Percival and Bob Gregory.

Review

From Machine Learning engineers, to Data Scientists, Analyst, Web Developers or App creators. All of them in the end dedicate a great deal of their time to writing code. All of them fall under the umbrella of Software Engineers, and should always deliver optimal, well designed code that leads to awesome, robust applications or services.

However, nowadays most people take a few easy programming courses, and go out to the wild of the business world, or the freelance app development without proper architecture or design patterns. With this previous experience you can and probably build easy and well contained applications with no problem, however, when things start getting a little bit more complex, you will quickly be overwhelmed, and lacking the knowledge to tackle a larger project.

Architecture Patterns with Python is the bridge between those easy, self-contained applications, and more complex and larger implementations. By guiding you through high level software design patterns like hexagonal or clean architecture, event driven architecture, domain driven design, and test driven design in Python, using a ton of code and practical examples, this book will take you from programmer to software developer in Python.

With this hands on guide, Harry Percival and Bob Gregory from Cazzoo introduce proven architectural design patterns to help Python developers manage application complexity—and get the most value out of their test suites.

Each pattern is illustrated with concrete examples in beautiful, idiomatic Python, avoiding some of the verbosity of Java and C# syntax. Patterns include:

  • Dependency inversion and its links to ports and adapters (hexagonal/clean architecture)
  • Domain-driven design’s distinction between Entities, Value Objects, and Aggregates
  • Repository and Unit of Work patterns for persistent storage
  • Events, commands, and the message bus
  • Command-query responsibility segregation (CQRS)
  • Event-driven architecture and reactive microservices

Also, it is one of the best resources to learn how to do TDD in Python.

Overall, it is a great book introduction to learn about proper professional software development. The authors provide great examples and have an excellent way of writing that makes the book like a little story, keeping it short and to the point. Lets learn a little bit more about it!

Contents

The contents of Architecture Patterns with Python are the following:

I – Building an Architecture to Support Domain Modelling

II – Event Driven Architecture

To end the book we can find an epilogue, a Summary Diagram and Table, a templete project structure, and some Django Resources, and an explanation on Validation.

You can find the official website for the book here: Official Web of Architecture Patterns with Python.

Also, you can find the official website of one of the authors (Harry Percival) here: Obey The Testing Goat Website.

About the book

Authors: Harry J.W. Percival, Bob Gregory
Publisher: O’Reilly
Publication Date: 3/5/2020

Pages: 304

Who is this book for?


In the preface of the book, the authors claim that readers of Architecture Patterns with Python should be developers with previous experience building applications of medium complexity, and that have experience in first person the pain that comes from trying to build large apps without the proper knowledge.

While this is true (if you have experience these problems you will probably be more aware of the need of proper design and architecture of software applications), we would expand this to the larger audencie of those that have worked with Python and want to know the guts of software development, how to create awesome projects, and how to scale up the complexity of the apps you can create, or the knowledge you have obtained from previous Python Programming Courses.

If you are looking to start with Python, this is definitely no the book for you. Take a look at our list of reviewed Python books or Python Courses to find something more appropriate.

This book is a great introduction to software engineering book, that gives you a hands-on experience, so long as you follow the code. Also, it discusses patterns that are left outside many software engineering courses and it gives a good introduction to microservices, which are very common and widely used right now.

Summary

Architecture design with Python fills in the gap of knowledge that exist between those that have learned to program in Python and those that have taken complete and detailed Software Engineering courses or a book like The Mythical Man Month.

It will teach you many important keys of Software Development without crushing your head or over-complicating, while touching some topics that are most times left outside a normal software engineering track.

The material is very accessible with tests and code samples throughout and all code available online to download and run as you work through it. By reading it you will develop an understanding of how to design software applications, which architecture pattern fits your application the best, and how to properly implement it.

It’s a thoroughly worthwhile read for team that needs to build complex applications with many components, and handle scalability, efficiency, and elegancy. You can find it on Amazon here:

Sale
Architecture Patterns with Python: Enabling Test-Driven Development, Domain-Driven Design, and Event-Driven Microservices
  • Percival, Harry (Author)
  • English (Publication Language)
  • 304 Pages - 03/24/2020 (Publication Date) - O'Reilly Media (Publisher)

Other resources to consider before, while, or after reading Architecture Patterns With Python:

Thank you so much for reading How to Learn Machine Learning.

Spread the love!

Subscribe to our newsletter and get free access to other resources about Machine Learning and Artificial Intelligence: The best podcasts, papers, news websites, Data Science celebrities to follow on Twitter or Linkedin, News Websites and a lot more!

how to learn machine learning

You have successfully subscribed to the newsletter

There was an error while trying to send your request. Please try again.