Compared with about 7.69 KB for a complete record.
The format is small.
The numbers show why.
We tested RIDA 3.0.1 with 27,647 records and 34 fields. The measured sizes and read timings below describe that test dataset. Hosting costs are estimates calculated for the stated workload; your data, network and provider rates affect the result.
When a CDN bills by GB delivered.
Measured against Bunny CDN with connection reuse.
Over gzip wrapper overhead for 940,000 values.
Smaller data, same lookup.
| Build | Before | 3.0.1 |
|---|---|---|
| Plain data file | 110.9 MB | 95.5 MB |
| Encrypted data file | 134.9 MB | 119.5 MB |
| Plain build time | 29.3 s | 13.9 s |
| Encrypted build time | 34.7 s | 34.3 s |
Host anywhere. Zero vendor lock-in.
Measured response headers are about 660 bytes. When fetching multiple fields of one record, RIDA's get_record() and get_many() intelligently merge adjacent ranges into a single ~5,000-byte request instead of making separate trips.
No proprietary cloud or object store required: RIDA works seamlessly with any HTTP server or storage that supports standard byte-range requests (HTTP 206)—from a $5 Nginx or Caddy VPS, Backblaze B2, MinIO, Wasabi, to Bunny CDN and AWS CloudFront. You are never locked into any specific database engine or proprietary cloud ecosystem.
Hosting cost estimates based on our measured tests.
| Provider | Normal JSON | RIDA field-deflate |
|---|---|---|
| Bunny CDN — Standard (Asia) | $230.79/mo | $4.29/mo |
| Bunny CDN — Volume | $38.46/mo | $0.71/mo |
| AWS CloudFront — US / Europe | $653.90/mo | $12.15/mo |
| AWS CloudFront — India | $1,307.80/mo | $24.31/mo |
| Google Cloud CDN — US / Europe | $615.44/mo | $11.44/mo |
| Google Cloud CDN — Asia | $923.16/mo | $17.16/mo |
| Azure CDN — Zone 1 | $623.13/mo | $11.58/mo |
| Azure CDN — Zone 2 | $1,038.55/mo | $19.30/mo |
| Backblaze B2 + Bunny CDN | $76.93/mo | $1.43/mo |
| Self-Hosted Nginx / Any Standard VPS | $10.00 flat/mo | $10.00 flat/mo |
Third-party hosting estimates for the reference workload. Arrange hosting with your chosen provider. Rates, region, cache behavior and taxes change the final bill.
A database executes queries & manages servers.
RIDA reads the exact bytes you need. Zero overhead.
Modern serverless databases (Cloudflare D1, Turso / libSQL, Supabase, Neon) promise scalability, but for static, reference, and read-heavy datasets, they add heavy architectural drag: database connection pools, cold starts, row-scan billing, query parsing latency, and vendor lock-in. RIDA rethinks data access from first principles — turning static JSON datasets into zero-overhead, byte-addressable files that live on any static storage or CDN.
The Database Overhead
- Requires an active backend server or edge Worker to parse SQL and establish connections on every read.
- Vulnerable to SQL injection attacks, credential exfiltration, and query exhaustion.
- Billed by rows scanned, CPU execution time, memory, and database compute tiers.
- Tied to proprietary SDKs, database drivers, and specific cloud ecosystems.
- Connection limits, cold-start latency, and complex schema migration pipelines.
The Pure Static Advantage
- Zero server or worker needed: browsers and apps fetch exact fields directly via HTTP 206 range requests.
- Zero SQL injection possible: pure binary byte-offset lookup with no query parser to exploit.
- Fractional, predictable cost: bills only for tiny static bandwidth delivered (up to 98% less).
- 100% Storage-Agnostic: host anywhere (Backblaze B2, Bunny, AWS S3, or a $5 Nginx VPS) with zero lock-in.
- Instant seek: index jumps straight to exact byte offsets in microseconds with zero row scans.
| Architecture & Capability | Serverless SQL (Cloudflare D1, Turso, Supabase, Neon) | RIDA + Any Static Storage or CDN |
|---|---|---|
| How data is retrieved | SELECT field FROM table WHERE id = ?;The application sends a SQL query string. The database engine parses SQL, plans the query, scans tables/indexes, serializes rows into JSON, and returns the result. | Direct HTTP 206 Byte Range: The local index maps record_id + field directly to its byte offset [start, end]. The reader asks storage for those exact bytes — nothing more. |
| Compute & Server Requirement | Every read must execute an application server, edge Worker, or cloud function to connect to the database. Compute charges and connection pools scale with traffic. | Zero compute needed for public reads. Web browsers, mobile apps, and edge runtimes fetch ranges directly from static storage or a CDN without running any backend code. |
| Security & SQL Injection | Even with ORMs and parameterized queries, SQL parsers remain exposed to query tampering, credential leaks, and privilege escalations. A compromised DB credential exposes all tables. | Structurally immune to SQL injection. There is no SQL query, no SQL parser, and no database engine in the delivery path. Lookups are strictly deterministic binary byte offsets. |
| Scanning vs Direct Seek | Database queries traverse B-trees, page buffers, and memory caches. Unindexed fields or complex lookups trigger table scans, with providers (like D1) billing for every single row scanned. | Instant Microsecond Seek: The index stores the precise byte location for every stored field value. Known record-plus-field lookups jump straight to the bytes, completely skipping adjacent records. |
| Vendor Independence & Portability | Heavy vendor lock-in. Databases tie you to proprietary drivers, serverless ecosystems (e.g. D1 to Cloudflare Workers, Turso to libSQL), and complex database export/import routines. | 100% Storage-Agnostic: RIDA files are self-contained static binaries ( .rida). Host them on AWS S3, Backblaze B2, Bunny, Wasabi, or your own $5/mo Nginx VPS. Moving hosts is as simple as running rsync or copying the file. |
| Data Protection & Private Datasets | Transparent encryption at rest is often a paid enterprise feature or requires custom application-level column encryption. If database credentials leak, the data leaks. | Built-in AES-256-GCM Encryption: The .rida file can sit on a completely public, unauthenticated bucket. Without the private key (safely stored in your backend's .env), the file is mathematically impenetrable ciphertext. |
| Cost at Scale (1B Lookups) | High and variable costs compounding compute runtime, CPU cycles, rows read, active connections, and egress bandwidth. | Fractional static bandwidth: Because per-field raw deflate compression reduces payload sizes by up to 98%, 1 billion lookups on modern CDNs or storage cost between $0.71 and $15/mo. |
| Ideal Workload | High-frequency transactional writes, relational JOINs, dynamic user-generated content (e.g. carts, comments, financial transactions). | Immutable & Reference Datasets: Hadith, Quran, multi-language books, dictionaries, product catalogs, documentation, AI embeddings, localized content, and archival databases. |
With RIDA, you can host a multi-gigabyte dataset on any public, cheap object storage bucket without fear of data leakage. Because RIDA features native AES-256-GCM encryption, the public data file is impenetrable noise to anyone who downloads it.
Simply store your private decryption key in your Node.js, Next.js, or Python backend environment variables (RIDA_KEY=...). Your server or API proxy performs fast byte-range lookups on demand, decrypting only the authorized field. No database cluster to maintain, no connection pool exhaustion, no database passwords to leak, and zero risk of SQL injection.
Conclusion: For read-heavy JSON and reference datasets with structured records, running a full SQL database engine or serverless worker layer is unnecessary overhead. RIDA replaces database clusters with static byte-range files that cost fractions of a cent, cannot be SQL-injected, and can be hosted anywhere on earth.