Logo

dev-resources.site

for different kinds of informations.

Hexagonal Architecture in Python

Published at
10/25/2022
Categories
python
presentation
architecture
ddd
Author
dorneanu
Author
8 person written this
dorneanu
open
Hexagonal Architecture in Python

What do have clean, layered, hexagonal hexagonal, onion architecture and ports & adapters in common? They kind of share the same principles: Separation of concerns (business vs infrastructure code), data encapsulation (information hiding),low coupling, strict dependency flow (how layers should depend on other ones).

Still these concepts are not easy to digest unless you put them into practice. Furthermore architectural decisions are figured out based on personal, past experiences and the degree of knowledge people have when discussing viable solutions.

Figure 1: View presentation

View presentation

As already mentioned in Accelerate architectural decissions and effective architecture enable teams to easily test and deploy individual components/services also when the organization grows or the amount of services changes. Architectural characteristics rather than implementation details were more important in order to have a portable and sustainable architecture. As you define (logical) layers, clear boundaries and relationships between individual packages/modules inside your software, this will improve overall maintainability and testability of your code.

Some months ago I gave a presentation on “Hexagonal Architecture in Python” for the TECH team at Cashlink. More than a year ago, me and my ex-colleagues at Scout24 were implementing small services using the same principles, but inGolang. At that time I’ve found it rather easy to find examples for Golang. For Python I still miss examples of big projects embracing hexagonal architecture. (But maybe because I didn’t search as long as I did with Go … )

In this presentation I somehow mix “hexagonal architecture” and “ports & adapters” for architecting an application meant to upload documents to several storage systems (S3, Dropbox etc.) Let me know if you think this is useful and/or abstractions (as interfaces) are somehow obsolete in Python making code even unreadable.

presentation Article's
30 articles in total
Favicon
Best PPT templates
Favicon
About me
Favicon
How I created a unique PPT for "Load Testing" KT!
Favicon
Powering Remote Team Offsites with AI Presentation Maker
Favicon
Marp: A Markdown Presentation App That Simplifies Your Tech Talks
Favicon
Unlocking the Power of AI Presentation Maker for Your Company
Favicon
Elevate Your Yoga Presentations with AI-Powered Tools
Favicon
Enhancing Negotiation and Presentation Skills for Enterprise Architects
Favicon
The Ultimate Guide to Business Investor Presentations: Strategies for Success
Favicon
Get Noticed: Tips for an Attention-Grabbing Marketing Plan Presentation
Favicon
What is methodology, and why is it crucial in research, projects, and presentations?
Favicon
How to Deliver Engaging and Impactful Presentations
Favicon
Captivating Audiences: The Art and Science of Presentation Design
Favicon
How Pitch Deck Design Agencies Elevate Startups
Favicon
Tips for Asking Interactive Questions in Virtual Meetings and Presentations
Favicon
Comment convertir des présentations PowerPoint en PDF avec Python
Favicon
How to Use Hyperlink in PowerPoint Presentation
Favicon
Generate stunning and professional slides in seconds using AI: MagicSlides
Favicon
The Art of Active Listening: Techniques That Transform Conversations
Favicon
Mastering Body Language for Effective Communication
Favicon
SliDesk : Une introduction par Bun
Favicon
How to Overcome Common Business Communication Barriers
Favicon
Crafting Impactful Tales: 4 Storytelling Approaches for a Lasting Impression
Favicon
Java-Methoden zum Festlegen, Abrufen und Löschen von Dokumenteigenschaften in PowerPoint-Präsentationen
Favicon
GitOps for Presentations
Favicon
Presentations to your leadership 1-2-3
Favicon
Architectural missteps in view, presentation, and navigation
Favicon
Hexagonal Architecture in Python
Favicon
5 ways to give people a moment to remember
Favicon
Orahacks Demo Presentation

Featured ones: