KGKartik Guptainbackendtechie.hashnode.dev·Feb 6 · 2 min readUnderstanding CacheCache is simply faster storage located closer to the computation. Where Cache Lives ? Cache Read Patterns 1. Cache-Aside (Lazy Loading) This is the most common pattern in production. The application controls the cache: 2. Read-Through Cache Th...00
KGKartik Guptainbackendtechie.hashnode.dev·Jan 19 · 5 min readExecutor Service and FutureExecutorService is a Java framework that manages a pool of worker threads to execute your tasks asynchronously. Instead of manually creating and managing threads, you submit tasks to the executor and it handles all the threading complexity for you. A...00
KGKartik Guptainbackendtechie.hashnode.dev·Jan 7 · 4 min readDesign Patterns1. Strategy Pattern When to Use: Multiple algorithms or behaviours for the same task Need to switch logic at runtime Want to avoid big if-else or switch statements Example: Payment System ❌ What NOT to do if (type.equals("CARD")) { // card ...00
KGKartik Guptainbackendtechie.hashnode.dev·Jan 5 · 3 min readRelational DatabasesA relational database organises data into tables (rows and columns) with relationships between them. Key Components: Rows (Records): Each row represents a single entry Columns (Fields): Each column represents a specific attribute Primary Key: Uniq...00
KGKartik Guptainbackendtechie.hashnode.dev·Nov 24, 2025 · 5 min readHandling concurrency in JavaConcurrency is about multiple threads executing at the same time. Without proper handling, threads can interfere with each other, causing race conditions and data corruption. What's a race condition? When two threads try to read and modify the same d...00