Summary of 12 important architecture patterns used in real-world large systems.

1.Monolithic Architecture All components exist in one single application. Example structure: Used by Pros ✔ Simple to develop✔ Easy to deploy Cons ❌ Hard to scale large systems 2. Microservices Architecture Application split into small independent services. Example: Used by Benefits ✔ Independent scaling✔ Independent deployment 3. Event-Driven Architecture Systems communicate using events instead of …

Installing alembic in FastAPI ; Creating user Model and its migration files with the help of alembic

Using Alembic with SQLAlchemy (which is often used under the hood, even with ORMs like SQLModel) is the standard approach for migrations. Here is a step-by-step guide to installing Alembic, configuring it, defining a User model, and creating your first migration. 1. Project Setup & Installation First, ensure you have a basic FastAPI project structure …

Poetry- Dependency Management Tool

Poetry is a comprehensive dependency management and packaging tool for python projects. It aims to simplify the entire workflow of managing project dependencies, creating virtual environments, and packaging for distribution. Key features and functionalitites of Poetry: Dependency Management: Poetry allows users to declare project dependencies within a pyproject.toml file. It then manages the installation, updating, …

When you want to change the length of Foreign Key. Error #1832

I tried to change the foreign key of product_category_id which was presented in products_products table. The following step help you to change the length of foreign key. Before moving to step, you have to focus on error. When we tried to change the length it provides the error. This error message contains of constraint name …

Git Conventional Commits

As being a developer, we commit our work and push to github. Initially, we overlook the way how we enter the commit. Now, I am writing this blog so you can understand how it should be written. It is essential because in collaborating projects it maintain the status of project with readability and understandability of …