GPGautam Pateliniamgautam.hashnode.dev·May 12 · 6 min readHow One Failing Service Can Crash Your Entire System And How to Prevent ItIn today's article we will discuss about why failing services can crash your entire system and what we can do to prevent it. First, What is considered failing service? A service does not need to compl00
GPGautam Pateliniamgautam.hashnode.dev·Apr 14 · 6 min readWhy Data Changes Mid-Transaction: Database Isolation Levels ExplainedIn previous article , we discussed lost updates and database locking, which focused on how data is written. In this article, we’ll focus on how data is read during a transaction using isolation levels00
GPGautam Pateliniamgautam.hashnode.dev·Apr 8 · 4 min readConcurrency Gone Wrong: Fixing Lost Updates with Database LockingHello, today i am going to deep dive into optimistic and pessimistic locking from a database perspective. First, let's look at the following example: DO $$ DECLARE current_stock INT; BEGIN SEL00
GPGautam Pateliniamgautam.hashnode.dev·Mar 27 · 3 min readThe Global Interpreter Lock (GIL)In this article, I will explain how Python behaves, particularly the Global Interpreter Lock (GIL). First, let's look at the following example: import threading import time NUM_THREADS = 4 N = 200000
GPGautam Pateliniamgautam.hashnode.dev·Mar 17 · 3 min readStrategy Design PatternIn this article, I will explain the Strategy Design Pattern in a simple and efficient way. First, let’s look at the code below: class PaymentService { public void pay(String type) { if (ty00