Skip to content
Luke On Python

Luke On Python

  • About

Month: May 2020

Entity ID – Pros and cons of different approaches

13/11/202019/05/2020 by Łukasz Żukowski

In most cases, I use UUID as an id for aggregate entity. But when it comes to big amount of entities in SQL DB it can become scalability problem to handle UUID as id. Here are some pros and cons of different approaches to entity ids. Autoincrement Integer: DB 32-bit or 64-bit integer used as … Read more

Categories ddd Tags code architecture, ddd, persistency, python Leave a comment

Refactoring exercise of some legacy code

24/06/202007/05/2020 by Łukasz Żukowski

So there is this legacy code. It’s a good example of code that is pretty simple code but at the same time, hard to understand the business case. These code snippets are already simplified cause it was a part of a bigger object that was processing shipping order. My goal is to refactor it a … Read more

Categories refactoring Tags legacy, python, refactoring Leave a comment
© 2025 Luke On Python • Built with GeneratePress