Skip to content

DDD in Python

Domain-Driven Design in Python

  • Home
  • Github
  • About

DDD in Python

Domain-Driven Design in Python

  • Home
  • Github
  • About

advanced ddd building blocks

Implementing the Repository pattern using SqlAlchemy (part 2)

by Przemysław Górecki 9 November 202220 March 2023 14 Min Reading

In the previous post, we implemented a really simple file-based repository that used the pickle module. As we didn’t use a database, we didn’t have

Share
beginner ddd building blocks

Implementing the Repository pattern (part 1)

by Przemysław Górecki 23 September 202211 November 2022 6 Min Reading

Repository pattern – why do we need it? The main goal of the repository pattern is to abstract the logic used for retrieving (loading) and

Share
beginner ddd building blocks

Domain Entities in Python

by Przemysław Górecki 22 July 202211 November 2022 5 Min Reading

In the previous post, we discussed the implementation of Value Objects. This time let’s focus on a different kind of Domain Objects – Entities. The

Share
beginner ddd building blocks

Implementing Value Objects in Python

by Przemysław Górecki 22 November 202120 February 2023 4 Min Reading

A Value Object is one of the fundamental building blocks of Domain-Driven Design. It is a small object (in terms of memory), which consists of

Share
beginner DDD journey

Where to place the business logic in DDD

by Przemysław Górecki 6 November 202111 November 2022 4 Min Reading

In Domain-Driven Design we have a clear separation between the Domain, Application, and Infrastructure. If we are talking about the business rules, then then the

Share
intermediate

How to trace request logs using correlation id

by Przemysław Górecki 2 September 202111 November 2022 7 Min Reading

Some time ago I stumbled across an interesting problem. In a Python web app, I wanted to add a correlation_id to each log produced by

Share
DDD journey

My first DDD project

by Przemysław Górecki 30 June 202122 November 2021 3 Min Reading

Motivation When I decided I want to learn DDD, I needed a sample project to work on. I know that there are plenty of great

Share
beginner

What’s wrong with [your_favourite_web_framework] tutorials?

by Przemysław Górecki 28 May 202122 November 2021 5 Min Reading

This example is taken directly from Flask tutorial but you will likely find similar examples for other frameworks as well. What does it do? Well,

Share
DDD journey

DDD.__init__()

by Przemysław Górecki 26 May 202118 January 2023 2 Min Reading

As you may already know, Python is one of the world’s fastest-growing programming languages. It’s flexible, easy to use, fast to prototype and develop, and

Share

My name is Przemysław (Premislav🔈) Górecki, and I run this blog to spread the concepts of Domain-Driven Design in the Python community.

Recent Posts

  • Implementing the Repository pattern using SqlAlchemy (part 2)
  • Implementing the Repository pattern (part 1)
  • Domain Entities in Python
  • Implementing Value Objects in Python
  • Where to place the business logic in DDD

Categories

  • advanced
  • beginner
  • ddd building blocks
  • DDD journey
  • intermediate

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright All Rights Reserved 2021 | Theme: Markup Blog by Template Sell.
  • About