NoSQL Databases
MongoDB, Cassandra, DynamoDB, and other NoSQL database technologies
36 canonical articles
High Performance with MongoDB: A Top-Down Tuning Guide
A top-down playbook for high-performance MongoDB: measure with the profiler and explain(), model for access patterns, index by the ESR rule, keep the working set in the WiredTiger cache, pool connections, and scale reads with secondaries and sharding — with flow diagrams for each layer.
MongoDB Explained (2026): Replica Sets, Sharding, Atlas & Production Patterns
Complete MongoDB guide covering document modeling, aggregation pipelines, sharding, replication, and Atlas deployment. Learn when MongoDB is the right choice for your application.
ScyllaDB vs Apache Cassandra: Performance and Operational Differences
Compare ScyllaDB and Apache Cassandra — throughput, latency, operational complexity, and when to switch
Cassandra Compaction Strategies: STCS, LCS, and TWCS Explained
Choose the right Cassandra compaction strategy for your workload — STCS for write-heavy, LCS for read-heavy, TWCS for time-series
Apache Cassandra Data Modeling: Partition Keys and Query Patterns
Model Cassandra from access patterns, distribute and bound partitions, and operate time-series TTL and compaction without relying on dangerous shortcuts.
Redis Persistence: RDB vs AOF — Which to Choose?
Compare Redis RDB snapshots and AOF logging — durability trade-offs, performance impact, and recovery scenarios
Redis Cluster: Data Sharding, Replication, and High Availability
Configure Redis Cluster for horizontal scaling — hash slots, replication, failover, and client-side routing
MongoDB Aggregation Pipeline: Advanced Patterns and Performance
Master MongoDB aggregation pipeline stages — $lookup, $group, $facet, explain plans, and index optimization
MongoDB Sharding: Architecture, Chunk Balancing, and Pitfalls
Design MongoDB sharded clusters — choose shard keys, manage chunk balancing, and avoid hot shards in production
MongoDB Plan Cache Memory Issue: The SBE Bug and How to Fix It
MongoDB's Slot-Based Execution (SBE) engine introduced a plan cache memory leak affecting certain MongoDB versions — here's how to detect, mitigate, and fix it.
MongoDB 8.0 TTL Index Bug (SERVER-97368): What It Is and How to Fix It
A critical bug in MongoDB 8.0 (SERVER-97368) affects TTL index behavior — causing documents to persist beyond expiration or delete prematurely. Here's how to detect and mitigate it.
Aerospike 7.0: Strong Consistency and Sub-Millisecond Latency at Scale
Aerospike 7.0 delivers 1 million writes per second with sub-millisecond latency using its Hybrid Memory Storage architecture. Learn when Aerospike beats Redis and Cassandra, and how to configure it for production.
MongoDB Atlas vs Self-Hosted: True TCO Analysis for 2025
MongoDB Atlas M30 costs 5.6x more than equivalent EC2 instances, but self-hosted TCO includes DBA labor that most comparisons ignore. Here's the honest math and when each option wins.
DynamoDB Single-Table Design: Access Patterns, GSIs, and Capacity Planning
Design DynamoDB access patterns with composite keys, sparse GSIs, paginated queries, transactions, and evidence-based capacity planning.
Elasticsearch Index Management: ILM, Shard Sizing, and Force Merge
Manage Elasticsearch indexes with ILM policies, correct shard sizing, and force merge for historical indices. Covers hot/warm/delete phases and cluster health monitoring.
Redis Streams: Event Sourcing, Consumer Groups, and Dead Letter Handling
Use Redis Streams for event sourcing and message queues. Covers XADD, XREADGROUP, consumer groups, XAUTOCLAIM for stale messages, and Python producer/consumer examples.
DynamoDB vs MongoDB in 2025: A Real-World Comparison for Growing Teams
DynamoDB and MongoDB are the two most common NoSQL choices, but cost structures, query flexibility, and operational overhead differ dramatically depending on your access patterns.
MongoDB 8.0 Replication: New Features, Improvements, and What Changed
MongoDB 8.0 brings significant replication improvements including faster elections, durable oplog writes, and changes to write concern behavior. Here's what changed and how to take advantage of it.
Handling Index Fragmentation in MongoDB: Detection and Remediation
MongoDB indexes fragment over time as documents are inserted, updated, and deleted. Here's how to detect fragmentation, measure its performance impact, and rebuild indexes safely.
MongoDB Replica Set Operations: Adding Members, Failover, and Lag Diagnosis
Day-to-day MongoDB replica set operations: adding/removing members, triggering elections, diagnosing replication lag, and managing oplog size.
MongoDB vs PostgreSQL in 2026: Choosing the Right Database for Your Data Model
An honest comparison of MongoDB and PostgreSQL in 2026 — document model vs relational model, JSONB as a document store, ACID transaction trade-offs, horizontal scaling, licensing, and migration paths.
Null Handling in MongoDB: null vs Missing Fields vs undefined Explained
MongoDB's flexible schema allows fields to be null, explicitly set to null, or simply absent — and these three states behave differently in queries, aggregations, and indexes.
Redis vs Valkey: A Complete Guide to the Future of In-Memory Databases
Understand the Redis fork landscape after licensing changes. Compare Redis and Valkey features, licensing implications, migration paths, and community support.
Valkey: The Open-Source Redis Alternative After the License Change
Migrate from Redis to Valkey — compatibility, performance benchmarks, and what changes for operators
How to Downgrade MongoDB from 7.0 to 6.0: A Step-by-Step Guide
Downgrading MongoDB requires careful planning — setting the Feature Compatibility Version before replacing binaries, handling replica set members in sequence, and verifying data integrity throughout.
MongoDB Indexing: A Complete Guide to Faster Queries
MongoDB's indexing system supports single-field, compound, multikey, text, geospatial, and partial indexes. Choosing the right index type and key order determines whether your queries use microseconds or seconds.
MongoDB Cluster-to-Cluster Sync: Simplifying Cross-Cluster Data Synchronization
MongoDB's mongosync utility enables continuous, real-time synchronization between two MongoDB clusters — simplifying live migrations, multi-cloud replication, and DR setups.
Maximize MongoDB Log Understanding with Hatchet: Log Analytical Arsenal
Hatchet transforms raw MongoDB JSON logs into actionable insights — surfacing slow operations, connection storms, and namespace hotspots that are impossible to spot in raw log files.
Neo4j Graph Database: When Relationships Beat Tables
Use Neo4j for relationship-heavy data — Cypher query language, graph algorithms, and fraud detection use cases
MongoDB Atlas Search: Full-Text Search on Your MongoDB Data
Build full-text search with MongoDB Atlas Search — analyzers, scoring, autocomplete, and relevance tuning
Aerospike Explained: The Complete Guide to Real-Time NoSQL at Scale
Achieve microsecond latencies at scale with Aerospike. Learn hybrid memory architecture, strong consistency, cross-datacenter replication, and use cases for AdTech and fraud detection.
Redis Use Cases: Caching, Rate Limiting, Pub/Sub, Queues, and Session Storage
A practical guide to Redis use cases in production — cache-aside pattern, sliding window rate limiting, Pub/Sub vs Streams, BRPOP queues with delayed job scheduling, and session storage with persistence configuration.
DynamoDB Streams and Lambda: Event-Driven Database Patterns
Process DynamoDB Streams with Lambda for change data capture, cross-region replication, and event sourcing
Securing Your MongoDB Cluster with TLS/SSL: A Complete Configuration Guide
Running MongoDB without TLS exposes your data to network interception and man-in-the-middle attacks. Here's how to configure TLS/SSL across your MongoDB replica set.
FoundationDB: The Ordered Key-Value Store Powering Apple and Snowflake
Understand FoundationDB's architecture — ACID transactions, layers, and why Snowflake and Apple chose it
Cassandra Explained: A Complete Guide for Always-On, Planet-Scale Data
Master Apache Cassandra for planet-scale, always-on applications. Learn ring architecture, consistency levels, data modeling, compaction strategies, and multi-datacenter replication.