Blog
Thoughts, insights, and experiences from my journey in technology, community building, and personal growth.
Latest Articles
Multi-Region Architecture: Active-Active, Active-Passive, Geo-Distribution
Serving users from multiple regions, the active-active vs active-passive tradeoff, and what geo-distribution costs you.
Data Consistency Models: Strong, Eventual, Causal, Read-Your-Writes
A plain-English tour of the consistency models distributed systems actually offer, and when each one is the right call.
Distributed Transactions: 2PC, Saga, the Outbox Pattern
Coordinating a transaction across multiple services without a single database to fall back on.
Consensus Algorithms: Raft, Paxos Explained Simply
How a cluster of nodes agrees on a single value even when some of them fail, without the usual academic density.
The Common Patterns Behind Every System (System Design)
Zooming out across the whole series to the handful of recurring patterns that show up in almost every large system.
Unique ID Generation at Scale
Why auto-increment IDs break down across distributed nodes, and approaches like Snowflake IDs that don’t.
Replication, Failover, and Leader Election
Keeping copies of data in sync, detecting a failed leader, and how a new one gets elected without losing data.
Rate Limiting
Token bucket, leaky bucket, and sliding window algorithms for protecting a system from too much traffic.
Sharding and Partitioning Strategies
Splitting data across nodes: range, hash, and directory-based partitioning, and the rebalancing tradeoffs each brings.
CAP Theorem and Consistency Models in Plain English
Consistency, availability, and partition tolerance, why you can’t have all three, and what that means in practice.
Streams and Event Sourcing
Modeling state as a sequence of events instead of a snapshot, and where event streams fit in a distributed system.
Queues and Distributed Locks
Decoupling services with message queues, and coordinating access to shared resources across machines.
Consistent Hashing and Distributing a Cache Across Real Servers
Why naive hashing falls apart when servers are added or removed, and how consistent hashing keeps a distributed cache stable.
Caching (and Why a CDN Is the Same Idea, Globally)
Why caching exists, cache invalidation tradeoffs, and how a CDN is just caching applied at global scale.
Load Balancing: One Server Was Never Going to Be Enough
Why a single server breaks down under load, and how load balancers distribute traffic to keep systems standing.
Networking and the API Gateway: Everything Before Your Request Hits a Server
DNS, TLS, and the API gateway—what happens to a request before it ever reaches your application code.
Search-Optimized Databases, and Bringing It All Together
How search-optimized stores like Elasticsearch fit alongside relational and non-relational databases in a real system.
Blob Storage: The Piece Everyone Skips When They Learn Databases
Why files, images, and unstructured data don’t belong in a database row, and how object storage fills that gap.
Non-Relational Databases: When Strict Tables Start Getting in the Way
When rigid schemas slow you down, and how document, key-value, and other NoSQL models trade consistency for flexibility.
Relational Databases: The Backbone Nobody Notices Until It Breaks
Tables, joins, transactions, and ACID guarantees—the quiet foundation most systems still run on.
Why Databases Even Exist (and Why You Can’t Just Use a Text File)
Concurrency, durability, and querying at scale—the real reasons a text file stops working long before you expect.
From One Server to Millions of Users: The Map Before the Deep Dives
The big-picture map of how systems evolve from a single server to millions of users, setting up the whole series.
Two Levels of Hugging Face APIs: From Quick Start to Full Control
High-level pipelines versus tokenizer-and-model control, quantization, streaming, and how the pieces fit in real LLM systems.
From Pipeline to Streaming
Loading models, tokenizers, quantization, internals, and streaming generation—bridging Hugging Face theory to practice.
Multi-Agent Systems, UI Layers, and Tool Calling
Multi-agent conversations, Gradio and Streamlit, tunneling local servers, and tool calling so models use real data.
Prompt Caching: Making LLMs Fast and Practical
Cache keys, reuse, and cost or latency wins when agents and long chats repeat similar prefixes.
Why Prompts Break: Context Windows, Tokens, and Prompting in LLMs
Context limits, token economics, and why single-shot vs few-shot prompting fails or succeeds.
How LLMs Work: Tokens, Embeddings, and Transformers
Tokenization, embeddings, and Transformer stacks—the baseline for the whole LLM engineering series.
Why You Keep Repeating the Same Sins — The Islamic and Psychological Truth
Repentance, habit loops, and why the same mistakes return—from Quran, hadith, and psychology.
The Inner Journey — What It Means to Walk Toward Allah
Moving from autopilot to a conscious, sustained walk toward Allah and purpose beyond noise.
Your Most Important Relationship — And How to Actually Build It
Consistency and repentance in the relationship with Allah—practical, non-performative steps.
Why You Self-Sabotage — And How to Finally Stop
Mindset, accountability, and breaking loops where you become your own obstacle.
Authentication in Remix with Better Auth — Actually Understanding It Before You Use It
Sessions, cookies, CSRF, and Better Auth in Remix—what broke in production and how the pieces fit.
Your Brain is Lying to You — And That’s Why You’re Stuck
Cognitive distortions, CBT-style reframes, and a three-question habit to separate facts from stories.
The Ramadan Nobody Talks About — The One After the First Week.
Sustainable Ramadan: consistency over sprinting, sleep, connection over quota, and repair over performance.
System Design Interview 2: Interviews, Estimations, and Rate Limiters
Alex Xu Ch. 2 notes: interview flow, back-of-the-envelope numbers, and rate limiting as a design problem.
System Design Interview An Insider Guide By Alex Xu — Chapter 1
Scale from zero to millions: components, load balancing, caching, and a mental model for growth.
The Psychology of User Experience Design
How psychology shapes behavior—and how to design interfaces that feel human, not manipulative.
Building Scalable Frontend Architecture: From Chaos to Clarity
Taming giant components, state, CSS, and duplication—patterns for React apps that scale with teams.
Life — Hardship or Ease ?
A short reflection on Surah Ash-Sharh—hardship and ease coexisting, gratitude, and realistic expectations.
Allah Loves — Omar Suleiman
Lessons from Imam Omar Suleiman’s book: traits Allah loves, gentleness, and consistent small deeds.
Master yourself — Self Assessment Questionnaire
Journaling prompts from Think and Grow Rich—honest self-review across habits, goals, and conduct.
Behavior of this() in different contexts
How `this` works in global scope, functions, objects, arrows, classes, and with call/apply/bind.
Common Differences — JavaScript Under hood 3.0
let/var/const, `==` vs `===`, and null vs undefined—interview-fast clarity on everyday JS footguns.
JavaScript Under Hood — 2.0
Closures, async/await and promises, HOFs, `this` binding, and event delegation—compact review notes.
JavaScript Under hood — Advance Concepts 0.1
Execution context, GEC/FEC, call stack, hoisting, and the lexical environment chain for JS interviews.
Islamic Insights: Addressing Common Questions and Concerns
Direct answers young Muslims ask—akhirah, what Islam asks of us, prayer, scholars, and learning deen.
Revive Your Heart: Unpacking the Next Chapters
More from Nouman Ali Khan’s book—leadership at Uhud, halal earning, spending, and daughters in Islam.
Revive Your Heart : My Insights and Perspectives
Reflections on dua, desperation vs despair, community criticism, and suspicion from a modern Muslim lens.
My Journey to Balancing Deen and Dunia: A Practical Guide
Personal rules: salah, Quran, knowledge, relationships, and society when returning to consistent practice.
Topics I'll Cover
Full-Stack Development
Insights from building scalable applications, best practices, and lessons learned.
Community Building
How to build and nurture developer communities, mentorship strategies, and impact stories.
Productivity & Focus
Deep work strategies, time management, and building systems that work.
Leadership & Growth
Leading teams, personal development, and building a growth mindset.
Social Impact
Using technology for good, silent giving, and making a difference.
Career Development
Navigating tech careers, skill development, and building meaningful work.
Follow on Medium
New articles on engineering, community, and growth are published on Medium.
View all posts on Medium