Parottasalna Course Notes

📝 Parottasalna Blog

249 practical articles on backend engineering, system design, databases, Docker, Python, AI and DSA, explained simply.

Docker Commands

Docker Cookbook

List all images ? docker images List all containers ? docker container ls -a / docker ps -a List all containers belong to a particular image ? docker…

Jun 20, 2024 · 2 min read
Coding

Code Smell : Anemic Model / Data Class

Problem faced: During our software development, we used to use design a class just to use it as a data structure. But while i was interested in readi…

Jun 19, 2024 · 4 min read
DockerTips

COPY or ADD in DOCKERfile ?

While i was reading on the best practices of writing a Dockerfile, its mentioned that COPY is preferred than ADD. The COPY and ADD commands in Docker…

Jun 17, 2024 · 1 min read
Load Balancing

Why do we need to maintain same hash in load balancer ?

Introduction Have you ever thought of what is that ? when developers discuss like add a server; we need to scale up; we can scale down; implement a l…

Jun 17, 2024 · 3 min read
API Design

Can we use PUT in place of IDEMPOTENT POST ?

Consider we have created an idempotent post request. So now the functionalities of PUT and POST are similar. So is it okay to use PUT inplace for POS…

Jun 16, 2024 · 2 min read
Programming

Can we use database as queue in asynchronous process ?

When reading about kafka, rabbitmq or any brokers; this is the thought that comes to my mind. Why can’t we simply use a database ? This post deals wi…

Jun 15, 2024 · 5 min read
Redis

REDIS: WRITE BEHIND CACHE

Note: Its same as write through cache . Only difference is its asynchronous in inserting the values to mongodb. Its an Application level caching, whe…

Jun 15, 2024 · 3 min read
Redis

REDIS: WRITE THROUGH CACHE

Its an Application level caching, where the application writes the data directly to the redis; and redis will write to the primary db (mongodb in our…

Jun 15, 2024 · 3 min read
Development

How npm Install and npm CI works ?

Prerequisite: https://parottasalna.com/2024/06/12/contents-of-package-json-package-lock-json/ How does npm install work? So far we have seen the func…

Jun 12, 2024 · 2 min read
Programming

Contents of package.json & package-lock.json ?

If you work in web development, you likely use NPM (Node PM or New PM) all the time. It is a free public software registry – the largest in the world…

Jun 12, 2024 · 5 min read
Web Development

Server Sent Events : An real time unidirectional communication

While you are developing real-time projects, there is always a one-question mark on “ how to get real time updates from server ? ”. There are differe…

Jun 12, 2024 · 9 min read
Technology

How reed solomon error correction algorithm makes a damaged QR code to work fine ?

Amused At Due to fever and cold i went to Ayurvedic medicine store. During the payment , i asked him QR code for digital payment. The QR code sheet i…

Jun 11, 2024 · 4 min read