Lobster Programming
Author

Lobster Programming

Sharing insights on technical analysis and exchange, making life better through technology.

150
Articles
0
Likes
440
Views
0
Comments
Recent Articles

Latest from Lobster Programming

100 recent articles max
Lobster Programming
Lobster Programming
Dec 12, 2024 · Backend Development

How to Use Redis Bitmap for Efficient User Sign‑In Tracking

This article explains why storing daily sign‑in data in a traditional database can cause performance issues at scale and demonstrates how Redis bitmap, a memory‑efficient bit‑level structure, can record and compute continuous user sign‑ins both by date and by user.

BitmapData StructuresRedis
0 likes · 5 min read
How to Use Redis Bitmap for Efficient User Sign‑In Tracking
Lobster Programming
Lobster Programming
Dec 5, 2024 · Fundamentals

How Does Java’s JVM Load Classes and Execute Code? A Deep Dive

This article explains how Java classes are loaded into the JVM, details the class loader’s parent‑delegation mechanism, and walks through the execution flow of a sample program, covering stack frames, heap allocation, dynamic linking, method area, program counter, native method stack, and garbage collection.

Garbage CollectionJVMJava
0 likes · 9 min read
How Does Java’s JVM Load Classes and Execute Code? A Deep Dive
Lobster Programming
Lobster Programming
Dec 2, 2024 · Backend Development

Designing Scalable E‑Commerce Shopping Carts: From Cookies to Redis

This article explores the core functions of e‑commerce shopping carts and compares client‑side storage methods such as Cookies and LocalStorage with server‑side solutions like Redis and MySQL, offering guidance on choosing the appropriate approach based on business scale and reliability requirements.

MySQLRedisShopping Cart
0 likes · 7 min read
Designing Scalable E‑Commerce Shopping Carts: From Cookies to Redis
Lobster Programming
Lobster Programming
Nov 28, 2024 · Fundamentals

How Paxos Guarantees Strong Consistency in Distributed Systems

This article explains the Paxos consensus algorithm, detailing its roles (proposer, acceptor, learner), the two-phase prepare and accept process, handling of proposal numbers, and how it ensures strong consistency across distributed nodes through examples and diagrams.

Paxosalgorithmdistributed consensus
0 likes · 9 min read
How Paxos Guarantees Strong Consistency in Distributed Systems
Lobster Programming
Lobster Programming
Nov 12, 2024 · Databases

Why Deploying MySQL in Docker Can Be Problematic: Scaling & Memory Pitfalls

This article explains why using Docker to host MySQL is generally discouraged, highlighting challenges in database scaling due to container‑exclusive storage, difficulties sharing data files, and memory contention among containers, while also outlining possible synchronization solutions and scenarios where containerized MySQL may still be viable.

DockerMySQLcontainerization
0 likes · 4 min read
Why Deploying MySQL in Docker Can Be Problematic: Scaling & Memory Pitfalls
Lobster Programming
Lobster Programming
Nov 9, 2024 · Databases

How to Split Hot Keys in Redis Cluster to Avoid Single-Shard Bottlenecks

Redis can become a bottleneck when a hot key concentrates traffic on a single shard; this article explains how to split such hot keys into multiple sub‑keys, distribute them across cluster nodes using CRC16 slot mapping, and implement the approach in high‑concurrency scenarios like coupon grabs or real‑time leaderboards.

ClusterHigh ConcurrencyKey Sharding
0 likes · 6 min read
How to Split Hot Keys in Redis Cluster to Avoid Single-Shard Bottlenecks