Dirty NoSQL
summary
A tiny Node.js key value store called Dirty uses an embedded append-only newline-JSON file with no networking or indexes and batches writes from an in-memory queue to disk. Implementation is 150 lines of code and aims for under 1,000,000 records. Benchmarks show about 200,000 JSON records/sec for numeric keys when flushing, 70,000/sec for 256 byte strings, get rates claimed near 50 million ops/sec in memory and set around 5 million before disk waits.
AI-written summary · about
chapters (15)
- 0:00Intro
- 0:18About
- 3:57150 lines of code
- 4:45Append-only JSON log
- 5:57No Networking
- 7:48Benchmarks
- 8:35dirty.set()
- 12:42dirty.forEach()
- 13:49The Wall
- 15:46The Internet
- 16:36Flexible guarantees
- 18:54Memory / Disk Hybrids
- 19:58Replication
- 21:25Web Services
- 22:14Questions?
related talks
52mHow to Build a Database
39mGit the NoSQL Database
15mSaved by In-Memory NoSQL
35mNoSQL, No Server, No problem: Using ORM's in Javascript Applications
21mUse cases that drive the need for NoSQL databases
01h 02mRonDB: A Key-Value Store with SQL Capabilities and LATS Properties
45mNoSQL: Death to Relational Databases
34mData Storage: NoSQL Toasters and a Cloud of Kitchen Sinks
