Database engineering topic

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.

MongoDB14 minJun 6, 2026
Read

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.

MongoDB5 minMay 13, 2026
Read

ScyllaDB vs Apache Cassandra: Performance and Operational Differences

Compare ScyllaDB and Apache Cassandra — throughput, latency, operational complexity, and when to switch

Cassandra11 minJan 22, 2026
Read

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

Cassandra11 minJan 18, 2026
Read

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.

Cassandra6 minJan 17, 2026
Read

Redis Persistence: RDB vs AOF — Which to Choose?

Compare Redis RDB snapshots and AOF logging — durability trade-offs, performance impact, and recovery scenarios

Redis11 minJan 16, 2026
Read

Redis Cluster: Data Sharding, Replication, and High Availability

Configure Redis Cluster for horizontal scaling — hash slots, replication, failover, and client-side routing

Redis12 minJan 15, 2026
Read

MongoDB Aggregation Pipeline: Advanced Patterns and Performance

Master MongoDB aggregation pipeline stages — $lookup, $group, $facet, explain plans, and index optimization

MongoDB12 minJan 14, 2026
Read

MongoDB Sharding: Architecture, Chunk Balancing, and Pitfalls

Design MongoDB sharded clusters — choose shard keys, manage chunk balancing, and avoid hot shards in production

MongoDB12 minJan 13, 2026
Read

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.

MongoDB8 minDec 8, 2025
Read

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.

MongoDB7 minDec 4, 2025
Read

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.

4 minSep 9, 2025
Read

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.

MongoDB10 minJul 29, 2025
Read

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.

AWS6 minJun 13, 2025
Read

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.

1 minJun 11, 2025
Read

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.

Redis1 minJun 4, 2025
Read

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.

MongoDB7 minApr 1, 2025
Read

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.

MongoDB8 minMar 11, 2025
Read

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.

MongoDB8 minFeb 18, 2025
Read

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.

MongoDB1 minFeb 12, 2025
Read

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.

PostgreSQL12 minFeb 10, 2025
Read

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.

MongoDB7 minSep 27, 2024
Read

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.

Redis5 minJul 11, 2024
Read

Valkey: The Open-Source Redis Alternative After the License Change

Migrate from Redis to Valkey — compatibility, performance benchmarks, and what changes for operators

Redis10 minMay 7, 2024
Read

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.

MongoDB8 minNov 23, 2023
Read

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.

MongoDB11 minNov 16, 2023
Read

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.

MongoDB9 minOct 16, 2023
Read

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.

MongoDB8 minAug 21, 2023
Read

Neo4j Graph Database: When Relationships Beat Tables

Use Neo4j for relationship-heavy data — Cypher query language, graph algorithms, and fraud detection use cases

11 minMar 28, 2023
Read

MongoDB Atlas Search: Full-Text Search on Your MongoDB Data

Build full-text search with MongoDB Atlas Search — analyzers, scoring, autocomplete, and relevance tuning

MongoDB11 minDec 14, 2022
Read

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.

5 minNov 29, 2022
Read

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.

Redis12 minOct 4, 2022
Read

DynamoDB Streams and Lambda: Event-Driven Database Patterns

Process DynamoDB Streams with Lambda for change data capture, cross-region replication, and event sourcing

AWS11 minMay 24, 2022
Read

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.

MongoDB9 minMay 2, 2022
Read

FoundationDB: The Ordered Key-Value Store Powering Apple and Snowflake

Understand FoundationDB's architecture — ACID transactions, layers, and why Snowflake and Apple chose it

11 minFeb 8, 2022
Read

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.

Cassandra7 minFeb 8, 2022
Read