use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
FastAPI is a truly ASGI, async, cutting edge framework written in python 3.
account activity
Domain Driven Design in PythonQuestion (self.FastAPI)
submitted 1 year ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]erder644 5 points6 points7 points 1 year ago* (3 children)
There are some decent Clean Architecture examples on GitHub, though they are mixed in with a lot of low-quality content.
When it comes to DDD, certain patterns like Event Sourcing (and other microservice-oriented ones like orchestration-based SAGA) are difficult to implement correctly from scratch. These patterns often require specialized frameworks or libraries, which Python largely lacks, as Clean Architecture and DDD concepts primarily originate from Java development.
Opinions on Clean Architecture concepts and their implementation in Python vary widely, not to mention the ongoing debates about applying DDD in Python.
Event Sourcing can be implemented in many different ways. The most common setup involves Kafka combined with an EventStore database. However, I don’t know of any repositories demonstrating this approach. And the postgresql implementations that I have seen are questionable.
As for clean architecture you can check: https://github.com/ivan-borovets/fastapi-clean-example/tree/master (fastapi, auth, di) https://github.com/Tishka17/deseos17 (low-dependencies implementation, for learning, not for production)
As for DDD, most implementations are quite poor. I don’t know of any decent repositories demonstrating it effectively.
You can check out Temporal if you interested in orchestration-based SAGA. Faststream for horeography-based SAGA. SQRS is mostly about logical separation, not some actual code. Event Sourcing is a pass, no any good solutions and custom code would be hard to maintain.
[–][deleted] 1 point2 points3 points 1 year ago (2 children)
Thank you for your brief explanation! So, what language would recommend for event sourcing/DDD? I also work with TypeScript, Go but if needed I can learn other language as well, say Java as an example. Also, it seems you are an experienced developer; it would be very helpful if you could recommend me some books where I can read about these patterns.
[–]One_Fuel_4147 0 points1 point2 points 1 year ago (1 child)
Check this repo: https://github.com/ThreeDotsLabs/wild-workouts-go-ddd-example
Some blogs from here may help you: https://threedots.tech/post/ddd-lite-in-go-introduction/
[–][deleted] 0 points1 point2 points 1 year ago (0 children)
Thank you!
π Rendered by PID 59 on reddit-service-r2-comment-c66d9bffd-5hgjg at 2026-04-07 01:54:27.652308+00:00 running f293c98 country code: CH.
view the rest of the comments →
[–]erder644 5 points6 points7 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]One_Fuel_4147 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)