System Design / Cloud / Code

Engineering thoughts,
written in code.

Real-world system design, backend patterns, and practical guides for engineers who build at scale.

Browse all posts
Filter
01
System Design Patterns for Scaling Writes
software-design

System Design Patterns for Scaling Writes

A practical guide to scaling write-heavy systems — covering sharding strategies, write-ahead logs, async queues, event sourcing, LSM trees, and batching with architecture diagrams and production code.

02
Serverless vs Containers — The Decision I Keep Revisiting
Cloud

Serverless vs Containers — The Decision I Keep Revisiting

A practical guide to choosing between AWS Lambda and containers (ECS/Kubernetes) for production workloads. Covers cold starts, cost modeling, architecture patterns, and the real tradeoffs I've learned shipping both.

03
System Design Patterns for Scaling Reads
software-design

System Design Patterns for Scaling Reads

A practical guide to scaling read-heavy systems — covering caching strategies, read replicas, CQRS, materialized views, and CDN edge caching with architecture diagrams and real code examples.

04
Building a Production RAG Pipeline — From Chunking to Retrieval to Generation
AI

Building a Production RAG Pipeline — From Chunking to Retrieval to Generation

A practical, end-to-end guide to building a Retrieval-Augmented Generation (RAG) pipeline using LangChain, OpenAI embeddings, and a vector database. Covers chunking strategies, embedding models, retrieval tuning, prompt engineering, and evaluation.

05
Prompt Engineering Patterns That Actually Work in Production
AI

Prompt Engineering Patterns That Actually Work in Production

Six battle-tested prompt engineering patterns for production LLM systems — system prompt layering, chain-of-thought, few-shot examples, output guardrails, prompt chaining, and eval-driven iteration. With real code, real failure modes, and the stuff nobody puts in tutorials.

06
Jenkins Pipeline with Jenkinsfile - How To Schedule Job on Cron and Not on Code Commit
jenkins

Jenkins Pipeline with Jenkinsfile - How To Schedule Job on Cron and Not on Code Commit

How to create Jenkins pipeline using Jenkinsfile, and schedule job on cron schedule, not on code commit.

07
Jenkins Pipeline - How to run Automation on Different Environment (Dev/Stage/Prod), with Credentials
jenkins

Jenkins Pipeline - How to run Automation on Different Environment (Dev/Stage/Prod), with Credentials

How to run Automation on Different Environment (Dev/Stage/Prod) by Jenkinsfile and Overriding Environment Variables. Also taking credentials.

08
How to Git Clone Another Repository from Jenkin Pipeline in Jenkinsfile
jenkins

How to Git Clone Another Repository from Jenkin Pipeline in Jenkinsfile

Learn how to Git Clone Another Repository from Jenkin Pipeline in Jenkinsfile.

09
How to Fetch Multiple Credentials and Expose them in Environment using Jenkinsfile pipeline
jenkins

How to Fetch Multiple Credentials and Expose them in Environment using Jenkinsfile pipeline

Learn how to Fetch Multiple Credentials and Expose them in Environment using Jenkinsfile pipeline

10
Jenkinsfile - How to Create UI Form Text fields, Drop-down and Run for Different Conditions
jenkins

Jenkinsfile - How to Create UI Form Text fields, Drop-down and Run for Different Conditions

How to Create UI Form Text fields, Drop-down and Run for Different Conditions or different environments

11
Java Log4j Logger - Programmatically Initialize JSON logger with customized keys in json logs
java

Java Log4j Logger - Programmatically Initialize JSON logger with customized keys in json logs

How to programmatically initialize a Log4j JSON logger in Java with custom global and dynamic key-value pairs in log output.

12
Kubernetes - How to Solve Gateway Timeout with Http Statuscode Error 504
kubernetes

Kubernetes - How to Solve Gateway Timeout with Http Statuscode Error 504

How to solve HTTP 504 Gateway Timeout errors in Kubernetes caused by Ingress proxy timeout settings.

13
How To Create Admin Subdomain In Cloudflare with Nginx Proxy using Docker with SSL
tutorials

How To Create Admin Subdomain In Cloudflare with Nginx Proxy using Docker with SSL

A guide to creating an admin subdomain in Cloudflare with Nginx reverse proxy running in Docker with SSL.

14
Why Exponential Backoff in Rabbitmq or In Event-Driven Systems
software-design

Why Exponential Backoff in Rabbitmq or In Event-Driven Systems

Learn Why it is important to implement Exponential Backoff in Rabbitmq or In Event-Driven Systems

15
How to Implement Exponential Backoff in Rabbitmq Using AMQP in Node.js
software-design

How to Implement Exponential Backoff in Rabbitmq Using AMQP in Node.js

Learn how to implement exponential backoff in rabbitmq by using amqp in node.js

16
Python SMTP Email Code - How to Send HTML Email from Python Code with Authentication at SMTP Server
python

Python SMTP Email Code - How to Send HTML Email from Python Code with Authentication at SMTP Server

Learn how to send HTML Email from Python Code with Authentication at SMTP server end.

17
Python SMTP Email Code - Sender Address Rejected - Not Owned By User
issues

Python SMTP Email Code - Sender Address Rejected - Not Owned By User

In Python code to send email, we encounter error as Sender Address Rejected Not Owned By User. See, how we to solve this error.

18
Nodejs with MongoDB - Number of Opened Connections Keep on Increasing with Mongoose Library
mongodb

Nodejs with MongoDB - Number of Opened Connections Keep on Increasing with Mongoose Library

While connecting to MongoDB from Nodejs code with Mongoose, the number of connections keep on increasing on MongoDB. They needs to be explicitly closed.

19
Django Python - How to Build Docker Image and Run Web-service on Apache with Python 3.9
python

Django Python - How to Build Docker Image and Run Web-service on Apache with Python 3.9

Learn how to build docker image for Django project and run it on Apache with Python 3.9

20
Python - How to Maintain Quality Build Process Using Pylint and Unittest Coverage With Minimum Threshold Values
python

Python - How to Maintain Quality Build Process Using Pylint and Unittest Coverage With Minimum Threshold Values

How to enforce code quality in Python projects by using pylint scores and unittest coverage thresholds in the build process.

21
Example Jenkin Groovy Pipeline Script for Building Python Projects with Git Events and Push to Artifactory
jenkins

Example Jenkin Groovy Pipeline Script for Building Python Projects with Git Events and Push to Artifactory

Example of a Jenkin Groovy Pipeline Script for Building Python Projects with Git Events and Push to Artifactory after building it.

22
Python - How to Implement Timed-Function which gets Timeout After Specified Max Timeout Value
python

Python - How to Implement Timed-Function which gets Timeout After Specified Max Timeout Value

How to implement timed-function in python which gets timeout after specified maximum timeout value.

23
Kubernetes - How to Set Namespace So You Do Not Need to Mention it Again and Again in Kubectl Commands.
kubernetes

Kubernetes - How to Set Namespace So You Do Not Need to Mention it Again and Again in Kubectl Commands.

How to set a default Kubernetes namespace in your kubectl context so you do not need to specify it with every command.

24
Kubernetes - How to Configure Docker Repository to Pull Image and Configure Secret
kubernetes

Kubernetes - How to Configure Docker Repository to Pull Image and Configure Secret

How to configure Kubernetes to pull Docker images from a private repository by setting up an image pull secret.

25
How to Solve Spring Okta/Saml issue of SAML message intended destination endpoint did not match the recipient endpoint
spring

How to Solve Spring Okta/Saml issue of SAML message intended destination endpoint did not match the recipient endpoint

How to fix the Spring SAML/Okta error where the SAML message intended destination endpoint does not match the recipient endpoint.

26
How to Copy Local Docker Image to Another Host Without Repository and Load
docker

How to Copy Local Docker Image to Another Host Without Repository and Load

How to transfer a Docker image to another host without using a registry — using docker save, scp, and docker load.

27
How to Solve Circular Import Error in Python
python

How to Solve Circular Import Error in Python

How to resolve circular import errors in Python when two modules need to import from each other.

28
Cyberark Rest API Certificate based Authentication - Curl Command to Fetch Credentials
security

Cyberark Rest API Certificate based Authentication - Curl Command to Fetch Credentials

Curl command to fetch credentials from Cyberark with certificate based authentication

29
Nextjs - Fixing Loading External Images and Issue of Url Paramater Not Allowed
javascript

Nextjs - Fixing Loading External Images and Issue of Url Paramater Not Allowed

Fixing loading external images and see how to fix the issue of url parameter not allowed when you load the images

30
Request Entity Too Large(413) - Uploading File with Formdata with Axios and Custom header
javascript

Request Entity Too Large(413) - Uploading File with Formdata with Axios and Custom header

Solving issue of request entity too large issue (http status 413) when uploading file with Axios in Next.js or any javascript code.

31
Spring - Learn Multiple Ways to use PackageScan Annotation
spring

Spring - Learn Multiple Ways to use PackageScan Annotation

Learn multiple ways to use @PackageScan annotation to discover beans

32
Paypal Payment Issue While Validating Payment - Access Denied
php

Paypal Payment Issue While Validating Payment - Access Denied

Fixing Paypal payment access denied issue while validating payment transaction.

33
Spring Boot - Fixing Autowire Bean Not found
spring

Spring Boot - Fixing Autowire Bean Not found

Fixing Autowire Bean not found in Spring boot, and application failed to start.