JSON Performance — Large Files & Formats
Handle large JSON, optimize performance, and compare JSON with binary formats.
FlatBuffers & Cap'n Proto: Zero-Copy Serialization Beyond JSON
When even Protobuf's parse step is too slow, zero-copy formats read fields straight from the buffer with no deserialization. How FlatBuffers and Cap'n Proto work and when they're worth it.
Streaming JSON Parsers: Handle Files Bigger Than Memory
JSON.parse loads the whole document into RAM. Streaming and SAX-style parsers process JSON in a constant-memory pass — plus NDJSON, simdjson, and how to choose.
Apache Arrow vs JSON: When Row-Based Text Stops Scaling
JSON is rows of text; Arrow is columns of typed memory. Why analytics engines moved to Arrow, what columnar buys you, and how the two formats actually complement each other.
Gzip vs. Brotli for JSON APIs — The Algorithm Differences That Actually Matter
Both compress JSON responses well, but they aren't interchangeable — Brotli's built-in dictionary favors web/JSON text specifically, while its slowest quality levels are too costly for per-request dynamic compression. Here's the actual tradeoff.
Parquet vs. JSON — Columnar Storage for Analytics at Scale
Row-based formats like JSON, MessagePack and Protobuf all optimize the same axis — one record after another. Parquet rethinks the layout entirely, and that's what makes it dominant for analytics.
Protocol Buffers vs JSON: When Should You Switch?
JSON is universal and readable; Protobuf is compact and fast. A practical comparison of size, speed, schemas, and when each is the right call.
MessagePack, CBOR & Avro: Binary JSON Alternatives Compared
When plain JSON is too slow or too large — a practical comparison of MessagePack, CBOR and Avro, three binary formats that model JSON-like data more compactly.
JSON Size Limits: What Browsers, Databases and APIs Actually Allow
The real, often-undocumented JSON size limits in V8, PostgreSQL JSONB, MongoDB, API gateways and localStorage — and what happens when you hit them.
JSON Performance: Optimization Tips for APIs and Applications
Speed up JSON-heavy applications with practical tips on payload size, streaming, caching, schema-first serialization, and benchmarking techniques.
Parsing Large JSON Files Without Crashing
Handle large JSON files in Node.js without running out of memory. Streaming parsers, chunked processing, and when to use JSON.parse vs alternatives.