<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Hardpoint Labs]]></title><description><![CDATA[Insights about diskless databases, LSM trees, distributed systems, and all the other tech powering Invar, the diskless document store.]]></description><link>https://blog.hardpoint.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/69d4d8e45da14bc70e258ec7/40bef207-d339-4e8d-a4aa-7f3984993d17.png</url><title>Hardpoint Labs</title><link>https://blog.hardpoint.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 14:08:14 GMT</lastBuildDate><atom:link href="https://blog.hardpoint.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Redis isolation and alternatives in 2026]]></title><description><![CDATA[We explore what transaction isolation is, how Redis sidesteps the issue, and what the alternative options are for Redis users in 2026.]]></description><link>https://blog.hardpoint.dev/redis-transaction-isolation-and-alternatives-2026</link><guid isPermaLink="true">https://blog.hardpoint.dev/redis-transaction-isolation-and-alternatives-2026</guid><category><![CDATA[Redis]]></category><category><![CDATA[invar]]></category><category><![CDATA[Databases]]></category><category><![CDATA[isolation]]></category><dc:creator><![CDATA[Chris Mowforth]]></dc:creator><pubDate>Sat, 03 Oct 2026 19:35:53 GMT</pubDate><content:encoded><![CDATA[<p>In many ways, Redis is grounded in a (rather admirable) design philosophy of brutal simplicity. It's a thing that runs as a single process, you store keys and values; you can store many more data structures there if it takes your fancy. Yes, after nearly 2 decades it's not <em>that</em> simple and it continues to grow in breadth of command functionality, and depth of operational capabilities. The tumult over its licensing changes has also sped up an already developing schism resulting in <em>things which speak the Redis wire protocol</em>, but aren't Redis™; its descendants such as Valkey are obvious elephants in the room, but so are unrelated projects such as DragonflyDB, Garnet and black boxes like Upstash; I'd also obviously mention <a href="https://github.com/hardpointlabs/invar">Invar</a> in that list :) This growing sprawl of Redis-like-things is diverging not only in command dialects they speak (Redis, Valkey and Upstash have gone their separate ways on vector storage, for example); they're also splitting apart in terms of underlying execution semantics.</p>
<p>Coming back to my first point, one intentionally simplistic trait of Redis which <em>has</em> endured, is how it approaches <strong>isolation</strong>: it just serializes everything. I want to explore what isolation is in general terms, how the database industry approaches it, and lastly why you might want to consider your options when choosing a Redis-like data store.</p>
<h2>Isolation?</h2>
<p>By isolation, I'm referring to the 'I' in ACID; in a nutshell, how do separate concurrent commands run independently, without interfering with one another. How you separate commands, or whether you separate them at all, falls on a continuum of strictness; what we generally talk about is the presence of various phenomena under various separation conditions.</p>
<p>The SQL-92 spec details 4 fundamental levels of transaction separation in a database which often frames conversations about how DBMS handle isolation:</p>
<table>
<thead>
<tr>
<th>Transaction isolation level</th>
<th>Dirty reads</th>
<th>Non-repeatable reads</th>
<th>Phantom reads</th>
</tr>
</thead>
<tbody><tr>
<td>Read uncommitted</td>
<td>X</td>
<td>X</td>
<td>X</td>
</tr>
<tr>
<td>Read committed</td>
<td>--</td>
<td>X</td>
<td>X</td>
</tr>
<tr>
<td>Repeatable read</td>
<td>--</td>
<td>--</td>
<td>X</td>
</tr>
<tr>
<td>Serializable</td>
<td>--</td>
<td>--</td>
<td>--</td>
</tr>
</tbody></table>
<p><strong>Dirty reads</strong></p>
<p>A dirty read occurs when a transaction reads a value that hasn't actually been committed yet. To take a hypothetical Redis-tinged example:</p>
<pre><code class="language-plaintext">T1: SET balance 500
T2: GET balance        -&gt; 500
T1: (transaction aborts / rolls back)
</code></pre>
<p><code>T2</code> has observed a value written by T1 that was never committed. I say hypothetical, because Redis itself doesn't have a rollback mechanism, and since it forces commands to execute sequentially, it's not possible for uncommitted values to overlap; it's just an illustration of what the phenomenon <em>might</em> mean in a transactional DB that just happened to speak the Redis wire protocol.</p>
<p>What if a <code>MULTI</code> block partially fails, though? It's true that transactions aren't atomic in Redis, and any command successfully applied within a transaction will remain, even if a subsequent command in the same transaction block fails. For example, if we have this starting state:</p>
<pre><code class="language-plaintext">Initial:
A = 0
B = 0
</code></pre>
<p>And one client which does this:</p>
<pre><code class="language-plaintext">Client 1:
MULTI
SET A 1
SET B 1
EXEC
</code></pre>
<p>If <code>SET B 1</code> fails for some reason, the earlier <code>SET A 1</code> remains applied and the global state looks like:</p>
<pre><code class="language-plaintext">A = 1
B = 0
</code></pre>
<p>Even if a second client concurrently submits these operations, they will execute either before or after the transaction, not in the middle:</p>
<pre><code class="language-plaintext">Client 2:
GET A   -&gt; 1
GET B   -&gt; 0
</code></pre>
<p>So Redis sidesteps the dirty-read problem, although <code>MULTI</code> / <code>EXEC</code> <em>atomicity</em> is a whole other thing...</p>
<p><strong>Non-repeatable reads</strong></p>
<p>This occurs when a transaction reads the same key twice and gets different values because another transaction committed a modification <em>between</em> the two reads. Assuming we have a <code>balance</code> key which is <code>500</code> to begin with:</p>
<pre><code class="language-plaintext">T1: GET balance        -&gt; 500
T2: SET balance 750
T1: GET balance        -&gt; 750
</code></pre>
<p>The same key <code>balance</code> returns different values to <code>T1</code> at different points in time.</p>
<p><strong>Phantom Reads</strong></p>
<p>Phantom reads happen when a transaction repeats a query over a set of keys, and gets a different set of results because another transaction inserted, deleted, or modified a key so that it now matches the query. For instance, if we have this initial state:</p>
<pre><code class="language-plaintext">user:1 = active
user:2 = inactive
</code></pre>
<p>and we ran two 'interleaving' transactions (yes, hypothetical again in plain Redis)</p>
<pre><code class="language-plaintext">T1: SCAN user:* MATCH *active*   -&gt; [user:1]
T2: SET user:3 active
T1: SCAN user:* MATCH *active*   -&gt; [user:1, user:3]
</code></pre>
<p><code>T1</code>'s second query sees a new matching key that didn't exist when its first query ran. This isn't a <code>SCAN</code>-specific phenomenon, but <code>SCAN</code> was the most idiomatic way I could depict it in a Redis-like, rather than SQL-like, manner :)</p>
<p>There's also a fourth term that comes up regularly in isolation conversations: <strong>write skew</strong>. Write skew happens when two transactions writing different keys are successfully committed without observing <em>each others'</em> writes. This has important ramifications, for example if some global invariant like a bank balance or other size threshold has to be honored. Awkwardly, since this wasn't recognized as a thing until Berenson et. al's <a href="https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/tr-95-51.pdf">1995 paper</a>, it fell through the cracks of the SQL-92 spec.</p>
<p>To compensate for this oversight, modern databases therefore use a variety of concurrency-control techniques to ensure conflict-serializability; informally speaking, that means untangling concurrent writes into an equivalent serial form. Three of most common industrially applied ones are <strong>timestamping, locking</strong> and <strong>MVCC</strong>.</p>
<p><em>Timestamp-based</em> concurrency attempts to impose a <a href="https://en.wikipedia.org/wiki/Total_order">total ordering</a> of transactions based on some kind of timestamp: this might be a literal wall-time, some logical clock, or a combination of both. Objects [by object I mean something that's domain-specific to the database and contended, it could be a row, a key/value pair, e.t.c] track individual read and write timestamps recording the last successfully applied transaction. Transactions are assigned a global timestamp on initiation. If two transactions affecting the same object are in flight and the later one is presented first, the transaction must be restarted. <a href="https://cloud.google.com/spanner">Google Spanner</a> is maybe the most well-known application of this technique in a commercial database, but it's not used in any of the Redis variants I'm going to discuss later, so I won't get into the weeds here.</p>
<p><em>Lock-based</em> controls use shared read or exclusive write locks on data before a transaction can execute. Methods like two-phased locks (2PL) take a pessimistic approach to concurrent transaction execution; conflicts are expected unlike timestamping, which rejects an out-of-order transaction and forces it to retry; in 2PL, they just wait. 2PL comprises a whole family of variants with varying levels of strictness, but broadly speaking they all work in two phases: a growing phase, where locks on affected objects are acquired, and a shrinking phase, where they're released. Since we're talking about actual locks which block a thread here, the overhead of 2PL for rarely contended objects, or slow-running transactions may be unacceptable. In contrast, for cases of high object contention and fast Tx execution [in memory DBs, anyone?], 2PL can be more efficient than an optimistic approach where the retry overhead may come to hurt overall throughput.</p>
<p>Multi-Version Concurrency Control (MVCC)</p>
<h3>Snapshotting 101</h3>
<p>Most major databases which use <a href="https://en.wikipedia.org/wiki/Multiversion_concurrency_control">MVCC</a> to manage concurrency where a transaction reads a consistent "snapshot" world-view of the database as it existed at the exact moment the transaction started. This avoids the need for read-locks (it's still optimistic), while guaranteeing that all reads inside the transaction see the last <strong>committed</strong> values before the transaction began, irrespective of any other transaction that may be running at the same time. Snapshotting itself cleaves into two approaches:</p>
<ol>
<li><strong>Snapshot Isolation (SI):</strong> each transaction reads from its snapshot, and buffers its writes privately until commit. At commit time, the database checks whether any <em>other</em> transaction that committed after our snapshot was taken, wrote to any of the same objects we're writing. If so, one of them loses (usually under a "first committer wins" rule) and is aborted. That sorts out dirty reads, non-repeatable reads, phantoms <em>and</em> lost updates, since you're always reading a frozen world and can't silently screw up someone else's write. What it <em>doesn't</em> catch is our old friend write skew, because the conflict check only looks at <strong>write-write</strong> overlaps. The canonical example is a pair of on-call doctors, with the invariant that at least one of them must be on call at any time:</li>
</ol>
<pre><code class="language-plaintext">    Initial:
    oncall:alice = 1
    oncall:bob   = 1

    T1: GET oncall:alice  -&gt; 1
    T1: GET oncall:bob    -&gt; 1    (bob's on call, so I can go home)
    T2: GET oncall:alice  -&gt; 1
    T2: GET oncall:bob    -&gt; 1    (alice is on call, so I can go home)
    T1: SET oncall:alice 0
    T2: SET oncall:bob 0
    T1: COMMIT  ✅
    T2: COMMIT  ✅
</code></pre>
<p>The write sets <code>{oncall:alice}</code> and <code>{oncall:bob}</code> don't overlap, so SI waves both through and nobody's on call. Each transaction made a perfectly sensible decision based on a snapshot that was out of date by the time it committed.</p>
<ol>
<li><strong>Serializable Snapshot Isolation (SSI):</strong> keeps everything good about SI (non-blocking reads from a snapshot), but <em>also</em> tracks what each transaction <strong>read</strong>. The theory, from Cahill, Röhm and Fekete's <a href="https://doi.org/10.1145/1376616.1376690">2008 paper</a>, is that every non-serializable execution under SI contains a recognisable pattern of <em>read-write antidependencies</em>: one transaction read something that a concurrent transaction then overwrote. In the example above, <code>T1</code> read <code>oncall:bob</code> which <code>T2</code> wrote, and <code>T2</code> read <code>oncall:alice</code> which <code>T1</code> wrote; a cycle, and therefore no equivalent serial order exists. SSI watches for these dangerous structures and aborts one of the participants before it can commit. PostgreSQL's <code>SERIALIZABLE</code> level has <a href="https://arxiv.org/abs/1208.4179">worked this way</a> since 9.1. Many implementations use a simpler, more conservative check: at commit, validate that nothing in your read set has been overwritten by a transaction that committed after your snapshot was taken, and abort if it has. That can abort some transactions that would technically have been fine, but it's cheap to reason about and still guarantees serializability. The trade-off versus plain SI is- you've guessed it- throughput. You're now paying to track read sets, and you'll see more aborts under contention, which your application has to retry.</li>
</ol>
<h2>What does any of this have to do with Redis?</h2>
<p>Isolation probably isn't something you'll typically lose sleep over when working with Redis (a nice side-effect of that simplicity I was talking about); serial execution isn't a concurrency control strategy as such; it just sidesteps the problem completely... by eliminating concurrency! 💥</p>
<p>That was all well and good when the world consisted of 10-megabyte working sets of <code>GET</code> and <code>INCR</code> operations. That's not the world we're in now. Redis datasets:</p>
<ul>
<li><p>don't necessarily fit in memory any more (tiered storage)</p>
</li>
<li><p>can be distributed in various fashions across multiple nodes</p>
</li>
<li><p>can be concurrently modified, depending on vendor</p>
</li>
</ul>
<p>In short, if you haven't already noticed, Redis is becoming less of a database and more of an <em>idea</em>. Yeah, there's still an eponymous vendor driving upstream product development, but just as Oracle thought they could lock up the JVM spec and turn it into yet another rent-seeking cash cow, the Redis wire protocol and core commands have become a standard which have outgrown a single vendor. Even leaving aside licensing politics, there's enough people doing weird and wonderful things with Redis after being in the wild for &gt;15 years that the appetite for things which speak Redis, but aren't Redis, was going to come naturally anyway. And to sate that demand for weird and wonderful things comes Redis-speaking databases with different concurrency models.</p>
<h3>How different vendors handle isolation</h3>
<table>
<thead>
<tr>
<th>Vendor</th>
<th>Isolation strategy</th>
</tr>
</thead>
<tbody><tr>
<td>Redis</td>
<td>Serial execution</td>
</tr>
<tr>
<td>Valkey</td>
<td>Serial execution</td>
</tr>
<tr>
<td>DragonflyDB</td>
<td>Serial execution via VLL</td>
</tr>
<tr>
<td>Garnet</td>
<td>Hybrid 2PL; optimistic <code>WATCH</code></td>
</tr>
<tr>
<td>Invar</td>
<td>SI by default; SSI via <code>WATCH</code></td>
</tr>
</tbody></table>
<p><strong>Redis, Valkey</strong></p>
<p>Redis and the bulk of its descendants stick with full command serialization; while all of these flavors have some kind of concurrent handling of commands at the <strong>network I/O-level</strong> (i.e. the epoll accept loop will hand off socket I/O to different threads), when it comes to touching internal data, commands are all effected sequentially.</p>
<p><strong>DragonflyDB</strong></p>
<p>DragonflyDB adds a bit of nuance to the serialization story with its shared-nothing architecture, partitioning the keyspace across independent shard threads. It uses transactional framework based on the <a href="https://www.cs.umd.edu/~abadi/papers/vldbj-vll.pdf"><strong>Very Lightweight Locking (VLL)</strong></a> algorithm to coordinate operations spanning multiple shards. Transactions are assigned globally ordered transaction IDs, while each shard maintains a transaction queue and lightweight intent-lock state. This allows independent transactions touching <em>unrelated</em> keys to execute concurrently, while conflicting transactions are ordered consistently across the shards they touch. Multi-key transactions therefore retain serializable execution without requiring the entire database to fall back to a single global execution queue.</p>
<p><strong>Garnet</strong></p>
<p>Microsoft's Garnet is where we step into real concurrent modification capabilities, and therefore real concurrency control.</p>
<p>Garnet's architecture, described in their <a href="https://doi.org/10.14778/3773749.3773760">VLDB paper</a>, is "shared-nothing sessions over a shared-everything store". Phrased another way, that means every client session runs on whichever thread picked up its network buffer, and all of those threads operate directly on a single, shared hash index (via its storage engine, Tsavorite). There's no single execution queue and no per-core partitioning of the keyspace; threads genuinely do touch the same data at the same time. So Garnet needs locks, and it uses them at the granularity of <strong>hash buckets</strong>. Each 64-byte bucket in the index reserves a slot for a small lock word, so acquiring a lock costs no extra cache miss once you've already hashed your way to the bucket. Single-key reads take a shared bucket lock, in-place updates take an exclusive one, and structural changes to the hash chains themselves are latch-free, using compare-and-swap.</p>
<p>For multi-key transactions (<code>MULTI</code>/<code>EXEC</code>, Lua scripts, stored procedures and cross-key commands like <code>RPOPLPUSH</code>), Garnet uses what the paper calls a hybrid of pessimistic 2PL and optimistic watching:</p>
<ul>
<li><p><strong>Pessimistic locking.</strong> Because Redis transactions are <em>queued</em> rather than interactive, by the time <code>EXEC</code> arrives Garnet already knows every command in the transaction. It parses them to derive the full read and write sets up front, acquires shared/exclusive locks on the relevant buckets in <strong>sorted bucket order</strong> (so two transactions can never deadlock by grabbing locks in opposite orders), runs the commands, then releases everything. That's a conservative flavour of 2PL: the entire growing phase happens before the first command executes, and the shrinking phase happens after the last one. Conflicting transactions simply wait for each other, which, per the trade-off I mentioned earlier, is a good fit for an in-memory store where transactions are short.</p>
</li>
<li><p><strong>Optimistic</strong> <code>WATCH</code><strong>.</strong> Queued transactions can't branch on a value they read mid-transaction, so the read-then-decide pattern relies on <code>WATCH</code>. Garnet implements this with a <em>watch table</em>: a small shared array of 64-bit version counters, indexed by key hash modulo the table size. Every write to a watched record bumps the counter for its slot. <code>WATCH</code>records the counter's current value, and after <code>EXEC</code> has acquired its locks, Garnet checks whether any of those counters have moved; if so, the transaction is aborted. Since slots are shared between all keys that hash to them, a write to an unrelated key can occasionally trigger an abort. That's a deliberate trade: false-positive aborts are safe, just a bit wasteful, and the table stays tiny.</p>
</li>
</ul>
<p>The net result is that transactions in Garnet behave as if they ran serially, without forcing the whole server to run serially. The design is explicitly tuned for workloads dominated by single-key operations with rare conflicts, and there are a couple of things worth being aware of. Bucket-level locking means two unrelated keys that happen to share a bucket will contend with each other. In cluster mode, multi-key operations are restricted to keys within the same hash slot, as in Redis Cluster.</p>
<p><strong>Invar</strong></p>
<p>Invar departs from the lock-based approach entirely, and instead builds on MVCC. Invar is diskless: it runs on <a href="https://slatedb.io/">SlateDB</a>, an LSM tree that lives in object storage, so (as I mentioned earlier) versioned data and garbage collection come more or less for free. Every command Invar executes, whether it's a lone <code>GET</code> or an entire <code>MULTI</code> block, runs inside a storage-level transaction, and by default that transaction runs under <strong>snapshot isolation</strong>.</p>
<p>A couple of things follow from that:</p>
<ul>
<li><p><strong>Writers are always optimistic.</strong> Concurrent connections don't wait on each other; they each work against their own snapshot. If two of them write the same key, the loser's commit fails with a write-write conflict. Since most already-written application code hasn't had to consider the possibility of transaction conflicts, Invar quietly re-runs the whole batch against a fresh snapshot up to a bounded number of attempts (16 by default). From the client's point of view, a plain <code>INCR</code> or <code>LPUSH</code> 'just works', the same as it would in Redis. This is crucial for things like <a href="https://bullmq.io/">BullMQ</a>, where workers routinely fire overlapping writes at the same queue keys.</p>
</li>
<li><p><code>MULTI</code><strong>/</strong><code>EXEC</code> <strong>commits all-or-nothing.</strong> The queued commands are applied within a single transaction and become visible together at commit, so no other client can ever observe half a <code>MULTI</code> block, and a crash or storage failure midway through can't leave one behind either. For Redis compatibility, a <em>runtime</em> error in one queued command (say, <code>INCR</code> on a non-numeric value) still doesn't roll back its siblings, exactly as in the <code>SET A</code>/<code>SET B</code> example earlier, but the batch as a whole lands atomically.</p>
</li>
</ul>
<p>As we saw earlier, SI on its own doesn't save you from write skew. Run the on-call example from earlier through two plain <code>MULTI</code>blocks and both will commit. That's where <code>WATCH</code> comes in.</p>
<p>In Redis, <code>WATCH</code> is an optimistic lock, effectively saying, "abort my next <code>EXEC</code> if any of these keys have changed since I started watching them". In Invar, it doubles up as an opt-in for <strong>SSI</strong>. When you <code>WATCH</code> keys, Invar records their current values. At <code>EXEC</code> time, if the queued commands touch any of those watched keys, the transaction runs with SSI instead of SI, and two checks happen:</p>
<ol>
<li><p>Inside the new transaction, Invar re-reads every watched key and compares it to the value recorded at <code>WATCH</code> time. A mismatch means something committed between your <code>WATCH</code> and your <code>EXEC</code>, so the transaction is aborted immediately.</p>
</li>
<li><p>Because those re-reads happened inside an SSI transaction, the watched keys are now in its <strong>read set</strong>. If another transaction commits a write to any of them while this <code>EXEC</code> is in flight, our commit fails with a conflict.</p>
</li>
</ol>
<p>Regardless whether you have a phantom read or write skew, <code>EXEC</code> returns a nil reply, which is exactly what a Redis client expects when a <code>WATCH</code> fails. Here's the on-call example again, guarded with <code>WATCH</code>:</p>
<p>plaintext</p>
<pre><code class="language-plaintext">Client 1:                         Client 2:
WATCH oncall:alice oncall:bob     WATCH oncall:alice oncall:bob
GET oncall:alice  -&gt; 1            GET oncall:alice  -&gt; 1
GET oncall:bob    -&gt; 1            GET oncall:bob    -&gt; 1
MULTI                             MULTI
SET oncall:alice 0                SET oncall:bob 0
EXEC  -&gt; OK                       EXEC  -&gt; (nil)
</code></pre>
<p>Whichever client commits second finds that a key in its read set was overwritten, and is told to try again. Unlike the plain-SI case, Invar deliberately does <strong>not</strong> retry this one automatically. The client made its decision based on values it read <em>before</em> <code>EXEC</code>, so only the client can safely re-read and decide again; blindly replaying the same writes would just reintroduce the anomaly that <code>WATCH</code> was there to prevent.</p>
<p>So why not run everything under SSI and be done with it? As we saw earlier, tracking read sets isn't free, and SSI aborts more readily under contention. While it provides the ultimate guarantee against write skew, if you have a lot of concurrent single-key operations, the retry overhead can become considerable. Most Redis workloads are single-key operations that SI already handles perfectly (think queues again), so Invar only hits you with the serializability penalty when you explicitly ask for it, using the same semantics that Redis clients are already accustomed to.</p>
<h3>Try Invar</h3>
<p>Invar is open-source and free to use commercially, with regular container + MacOS releases. <a href="https://github.com/hardpointlabs/invar">Check out the GitHub repo here</a>.</p>
<p>We're also close to opening our managed cloud service to beta users. If you need a durable document DB with object-storage-class pricing, <a href="https://accounts.hardpoint.dev/waitlist">join the waitlist</a> and we'll let you know when we're ready!</p>
]]></content:encoded></item><item><title><![CDATA[How hot do you like it?]]></title><description><![CDATA[We compare ElastiCache data tiering and Redis Flex pricing and explain where Invar can save you money]]></description><link>https://blog.hardpoint.dev/redis-tiered-storage-cost</link><guid isPermaLink="true">https://blog.hardpoint.dev/redis-tiered-storage-cost</guid><category><![CDATA[Redis]]></category><category><![CDATA[Amazon Elasticache]]></category><category><![CDATA[invar]]></category><category><![CDATA[cloud cost optimization  ]]></category><dc:creator><![CDATA[Chris Mowforth]]></dc:creator><pubDate>Thu, 24 Sep 2026 12:29:12 GMT</pubDate><content:encoded><![CDATA[<p>The concept of splitting data resident in a Redis™ cluster between RAM and slower/cheaper non-volatile storage is something that's firmly gaining traction: all the major Redis-like vendors either offer some way of letting data spill out of memory directly in their product, or as a managed service. The simultaneous explosion in LLM-related caching infrastructure and the price of DRAM is heightening interest in hybrid memory caches. Let's examine how the two most prominent vendors in this space: AWS/ElastiCache and Redis themselves, address tiered storage, and ask if the price/performance trade is worthwhile?</p>
<h3>The economics of Redis tiered storage</h3>
<p>Redis and most of its clones spent the first decade or so of their existence as pure in-memory data stores; sure, it gained some persistence capabilities but these were, and continue to be things which facilitate HA/DR rather than something that sits in the hot path to handle client requests.</p>
<p>In a nutshell, tiered storage lets Redis host datasets which may be split between memory, disks or other persistent storage in a way that's completely transparent to the client; moving data between layers in the storage hierarchy is handled internally. This allows operators to trade off some performance for cheaper storage. The cost of memory and proliferation of Redis datasets which can't practically <em>fit</em> into memory anyway, have been a massive catalyst for the adoption of storage hierarchies in production Redis deployments.</p>
<img src="https://cdn.hashnode.com/uploads/covers/69d4d8e45da14bc70e258ec7/dbbfe347-e683-4900-a211-6c78badbef51.png" alt="" />

<h3>ElastiCache Data Tiering</h3>
<p>AWS introduced Data Tiering for ElastiCache for Redis in 2021, using <code>r6gd</code> instances with local NVMe SSD storage alongside RAM. The basic idea is straightforward: keep the hottest data in memory, while less frequently accessed data is moved onto local SSD. From the application's perspective, it's still Redis; the movement between tiers is handled by the service. ElastiCache evicts values to SSD on an <a href="https://en.wikipedia.org/wiki/Cache_replacement_policies">LRU</a> basis, and importantly <em>values</em> are always held in memory. Amazon also documents some <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/data-tiering.html#data-tiering-prerequisites">important limitations</a>, including:</p>
<ul>
<li><p>Items &gt; 128MiB are not eligible for SSD storage</p>
</li>
<li><p>You can't back up a tiered ElastiCache setup to S3</p>
</li>
</ul>
<p>This is a useful model if you have a dataset substantially larger than the amount of RAM you'd otherwise be willing to pay for, particularly when only a relatively small proportion of the data is being accessed regularly.</p>
<p>Conceptually, the hierarchy looks like this:</p>
<pre><code class="language-text">             ┌──────────────┐
             │    Client    │
             └──────┬───────┘
                    │
                    ▼
             ┌──────────────┐
             │     RAM      │  ← performance tier
             └──────┬───────┘
                    │
                    ▼
             ┌──────────────┐
             │     SSD      │  ← capacity tier
             └──────────────┘
</code></pre>
<p>Adding an SSD tier can make a large dataset dramatically cheaper than putting the entire dataset in DRAM, but it doesn't change the fundamental economics of the hot portion. If your workload requires hundreds of gigabytes of data to remain in RAM, you still need to pay for it.</p>
<h3>How much does ElastiCache data tiering cost then?</h3>
<p>Suppose you have a 1 TB dataset, but only 10% of that data is being accessed frequently enough that you need it at memory-like latency (AWS' own docs allude to a max hot percentage of 10-20% as the sweet spot for ElastiCache data tiering). The smallest single node that'll fit that dataset is a <code>cache.r6gd.12xlarge</code>, which in us-east-1 sets you back $6,831.34 a month, before any savings plans are applied. You don't get to directly pick the hot percentage with ElastiCache so with ~318MiB of RAM that actually gives you roughly a 26% RAM:SSD ratio. In a real setup, single-node throughput will become an issue at some point, so you may pick more, smaller instances, but the cost/GB for <code>cache.r6gd</code> instances and the RAM:SSD ratio is pretty constant across the fleet. You'll want HA too, which adds a multiplier to that figure from earlier (remember also that SSDs aren't replicated across AZs or anything like that, and that you can't back up these clusters' data to S3).</p>
<h3>Redis Flex Tiered Storage</h3>
<p>Redis has been working on this problem for considerably longer, originally through Redis on Flash and subsequently through Auto Tiering. The current incarnation is Redis Flex, which continues the same basic model: use RAM for the hot portion of the dataset and SSD for the colder portion.</p>
<p>Both products are answering essentially the same question:</p>
<blockquote>
<p><strong>How can we make a Redis dataset larger than RAM without requiring the entire dataset to be backed by RAM?</strong></p>
</blockquote>
<p>For some workloads the answer produces very attractive economics, but it's constrained by Redis' original underpinnings as an in-memory db. A more on-point question is:</p>
<blockquote>
<p><strong>How much RAM does the workload actually need in the first place?</strong></p>
</blockquote>
<h3>So, how much does “hot” actually cost?</h3>
<p>Let's stick with our 1TB dataset. Unsurprisingly, a tiered Redis deployment can be considerably cheaper than a 1 TB all-memory setup.</p>
<p>Deploying on AWS in us-east-1, at the time of writing a fully in-memory 1TB Redis cluster will cost you \(17,082/month, whereas 1TB Flex Pro with 10% hot in the same region goes for \)3,306. A ~5x saving.</p>
<p>If you crank up the hot percentage to 50% (a documented product limit, BTW), and the economics change substantially; you're getting much closer to simply paying for a very large memory-optimized Redis deployment, while still carrying the complexity of a second storage tier. That takes the monthly total to $11,870.</p>
<p>That's why the percentage of your dataset which needs to be "hot" is arguably more important than the headline capacity of the tiered instance.</p>
<h3>How hot do you actually need it?</h3>
<p>Both ElastiCache Data Tiering and Redis Flex are grounded in Redis' own heritage, which places RAM as the primary data store and everything else as a supplementary extension. Historically, this has worked well for many workloads which need to reside all or mostly in memory and need tight upper bounds on latency.</p>
<p>That being said, there's a much more common case where the requirement isn't, "I need my entire database to behave as though it were in memory", but "I need my working set to be fast", however you care to define <em>fast</em>.</p>
<h3>In-memory vs on-machine</h3>
<p>Modern NVMe storage is extremely fast, particularly when it is directly attached to the machine doing the processing. It's not RAM-fast and for workloads needing that tight upper-bound on latency, you'll still have to pay through the node for your hardware, but for many use cases, a modest amount of RAM combined with a large local NVMe device is a perfectly acceptable storage hierarchy.</p>
<h3>A different storage hierarchy</h3>
<p>Invar was built from the ground up as a persistent store, based on LSM trees; it uses <a href="https://slatedb.io/">SlateDB</a> in production, and <em>fast</em> storage is layered on top as necessary. Local NVMe volumes provide a large, fast working-storage layer, while object storage provides the durable backing store. RAM's primary function here is for page-caching SSTables which the Invar process reads through <a href="https://docs.rs/foyer/latest/foyer/">Foyer</a>. While you're free to choose whatever hardware makes sense for your workload, the guiding philosophy is that aside from the network hop to S3, the</p>
<p>The resulting hierarchy looks markedly different:</p>
<pre><code class="language-text">             ┌──────────────┐
             │    Client    │
             └──────┬───────┘
                    │
                    ▼
             ┌──────────────┐
             │     RAM      │  ← page cache
             └──────┬───────┘
                    │
                    ▼
             ┌──────────────┐
             │    NVMe      │  ← local working storage
             └──────┬───────┘
                    │
                    ▼
             ┌──────────────┐
             │     S3       │  ← source of truth
             └──────────────┘
</code></pre>
<p>The distinction is important: RAM and NVMe aren't two tiers of the database which have to contain the complete working dataset. They're <strong>best-effort performance and locality layers in front of the durable store</strong>.</p>
<p>If something isn't in RAM, it can be read from local NVMe. If it isn't available locally, SlateDB can retrieve it from the backing object store.</p>
<p>That means the amount of RAM you provision is primarily a function of your workload's working set, rather than the total size of your database.</p>
<p>Yes, a network hop from an instance to S3 can potentially add a nontrivial amount of latency but modern S3 offerings (think <a href="https://www.tigrisdata.com/blog/benchmark-small-objects/">Tigris</a> and <a href="https://aws.amazon.com/s3/storage-classes/express-one-zone/">S3 Express</a>) are chipping away at this, and provisioning large NVMe volumes to mitigate cache misses is orders of magnitude cheaper than provisioning RAM.</p>
<h3>What does this mean for cost?</h3>
<p>Let's revisit our 1TB, 10% hot case. Our suggestion is to go for storage-optimised instances such as the <code>i8g</code> / <code>i8ge</code> family. We could over-provision a <code>i8ge.12xlarge</code> which has 30x the NVMe capacity of the entire dataset and approximately the same ~300GiB of RAM that the <code>r6gd.cache.12xlarge</code> has, which as a straight on-demand instance \(4,157.50 a month in us-east-1. On top of that, Invar persists all data to S3; 1TB worth of regular S3 costs \)23.55 a month (since the entire dataset fits in NVMe, aside from background coordination, the S3 API call volume will be negligible for a dataset that will statistically never fall out of the node, unless it dies).</p>
<p><em>That being said...</em> this is where the comparison becomes less about "which tiered Redis product is cheapest?" and more about the underlying hardware economics.</p>
<p>Memory is expensive. Local NVMe is dramatically cheaper per gigabyte, and object storage is orders of magnitude cheaper than both. Can we do better than 4 grand a month? If you don't need pure at-memory speed for everything, we can still fit our entire dataset in NVMe on a <code>i8ge.xlarge</code> with around a TB of room to spare for \(173.81 a month on-demand (plus the ~25 bucks for S3). Most people would agree that 7 grand a month for ElastiCache vs ~\)200 is a huge difference!</p>
<p>We're not claiming that NVMe can somehow replace RAM; it can't. A workload which genuinely requires memory-speed access to a huge proportion of its dataset will still benefit from having a huge proportion of that dataset in memory.</p>
<p>The question is whether your workload actually <em>has</em> that characteristic, or whether you're just accepting a RAM + SSD storage hierarchy purely because Redis and its descendants have historically only supported storing data in memory and block devices?</p>
<p>If you have a 1 TB database with a 50 GB working set, buying a platform which expects you to provision hundreds of gigabytes of RAM and then uses SSD to hold the rest may be solving a different problem from the one you actually have.</p>
<p>With an on-machine architecture, you can instead provision enough RAM to keep the working set comfortably cached and use inexpensive local NVMe for the rest.</p>
<p>S3 is cheaper again, and in Invar it provides the ultimate durable backing store rather than being something that needs to sit in the request path for every operation. The central point is simply that the capacity hierarchy extends beyond the machine itself- S3's durability is another quiet advantage of Invar, but I'll save that for another post :)</p>
<h3>The point isn't that everything should be on NVMe</h3>
<p>To reiterate, none of this implies that established tiered Redis solutions are inherently a bad idea. If your application genuinely has a large hot set and needs Redis's characteristic memory-speed access patterns, keeping that hot set in RAM and putting the rest on SSD can make a lot of sense.</p>
<p>The more interesting question is whether <strong>your database needs to be an in-memory store at all</strong>. Invar has designed around that distinction as a data store which <em>speaks</em> the Redis protocol, but isn't constrained by 20 years of architectural decisions that Redis itself has to carry.</p>
<p>Instead of starting with a large RAM-backed Redis instance and asking how much data you can push out onto cheaper storage, Invar starts with object storage as the source of truth, and local storage as the primary working medium, using RAM and the OS page cache to accelerate the part of the dataset your workload actually needs.</p>
<h3>Try Invar</h3>
<p>Invar is open source and Redis-compatible, so the easiest way to find out whether this model is a good fit for your workload is to try it out.</p>
<p><a href="https://docs.hardpoint.dev/guides/invar/quick-start"><strong>Try Invar →</strong></a></p>
<p>We're also preparing the first Invar Enterprise release: a production-oriented Helm deployment with a validated HA configuration, externally managed compaction/GC, extended ops &amp; observability tooling and commercial support options.</p>
<p><a href="https://accounts.hardpoint.dev/waitlist"><strong>Join the Invar Enterprise waitlist →</strong></a></p>
]]></content:encoded></item><item><title><![CDATA[Redis Durability, Reconsidered: How Invar Closes the WAIT Gap]]></title><description><![CDATA[We explore Redis' own durability guarantees and contrast them with Invar]]></description><link>https://blog.hardpoint.dev/redis-durability-reconsidered-how-invar-closes-the-wait-gap</link><guid isPermaLink="true">https://blog.hardpoint.dev/redis-durability-reconsidered-how-invar-closes-the-wait-gap</guid><category><![CDATA[Redis]]></category><category><![CDATA[invar]]></category><category><![CDATA[durability]]></category><category><![CDATA[Databases]]></category><dc:creator><![CDATA[Chris Mowforth]]></dc:creator><pubDate>Sun, 13 Sep 2026 19:13:27 GMT</pubDate><content:encoded><![CDATA[<h2>Overview</h2>
<p><a href="https://github.com/hardpointlabs/invar">Invar</a> is a diskless document store that speaks the Redis™ wire protocol. Unlike Redis or its spiritual descendants such as <a href="https://valkey.io">ValKey</a>, <a href="https://docs.keydb.dev">KeyDB</a> or even <a href="https://www.dragonflydb.io/">DragonflyDB</a>, it doesn't primarily aim to be an in-memory db, and durability is one of the places where that contrast is most stark.</p>
<p>Redis was built around an in-memory data structure server that later grew optional persistence; Invar was built the other way around, with an LSM engine (SlateDB) that treats object storage as the source of truth from day one, backed by S3's own strong consistency guarantees. That different starting point produces fundamentally different durability properties, not just different defaults. Here's what that actually means in practice.</p>
<h2>How Redis persists data</h2>
<p>Redis gives you two persistence mechanisms, and every real deployment is a trade-off between them:</p>
<ol>
<li><p><strong>RDB</strong> takes periodic point-in-time snapshots of the whole dataset: fork the process, write the snapshot, done. It's cheap and fast, but anything written between the last snapshot and a crash is gone. A snapshot every few minutes means you can lose a few minutes of writes.</p>
</li>
<li><p><strong>AOF</strong> (append-only file) logs every write command as it happens, and its durability is governed by whatever you configure via <code>appendfsync</code>:</p>
<ul>
<li><p><code>always</code> fsyncs on every write. This is the safest, but also slowest: every write pays a disk round trip</p>
</li>
<li><p><code>everysec</code> fsyncs once a second (the common default). This gives you much better throughput, but also a bounded time window of potential data loss</p>
</li>
<li><p><code>no</code> leaves fsync timing to the OS (fastest, least safe)</p>
</li>
</ul>
</li>
</ol>
<p>Both are useful mechanisms, but they share a weakness: durability is a <em>rate</em> you tune, traded directly against throughput, and the loss window is a matter of "how much you can tolerate," not "whether you can tolerate it".</p>
<h2>How Invar persists data</h2>
<p>Invar's writes go through <a href="https://slatedb.io/">SlateDB</a>'s write-ahead log, flushed to object storage on a timer (<code>flush_interval</code>, defaulting to 100ms). That much sounds similar to AOF's <code>everysec</code> - a periodic, rate-based sync with persistent storage. The part that's different is what "flushed" actually means once it lands.</p>
<p>When SlateDB confirms a write is durable, that confirmation is backed by S3's own <a href="https://aws.amazon.com/s3/consistency/">consistency model</a>, and AWS's own documentation is specific about what that guarantees:</p>
<blockquote>
<p><em>"after a successful write of a new object, or an overwrite or delete of an existing object, any subsequent read request immediately receives the latest version of the object."</em></p>
</blockquote>
<p>Strongly consistent PUT, GET, and LIST, unconditionally, since December 2020, in every region. Once a write is acknowledged durable, there's no replica that might still be catching up, or some time window where a reader could see stale data; the object store itself won't serve anything else.</p>
<p>SlateDB exposes this as a per-write choice rather than a global setting: writes can opt into blocking until durable (<code>await_durable</code>), or return fast and rely on the next scheduled flush. And critically, durability tracking is monotonic: a single sequence number (<code>durable_seq</code>) that only advances, rather than something that has to be reconstructed per-operation after the fact. SlateDB can build this</p>
<p>Since many architectural diagrams compress the inner workings of S3 into a single box, it's easy to forget that it's a complex, sprawling distributed system, but our ability to lean on its guarantees means we don't have to build the clustering machinery that Redis has spent over a decade</p>
<h2>How Invar handles WAIT, SAVE &amp; BGSAVE</h2>
<p>Redis exposes two main sets of commands for persisting writes:</p>
<p><code>SAVE</code><strong>/</strong><code>BGSAVE</code> are whole-dataset, administrative operations: checkpoint everything, right now, for backup or migration purposes. In regular Redis, this takes a point-in-time snapshot of the data in the Redis process and writes it to an RDB file. This is potentially quite an expensive operation and Redis' <a href="https://redis.io/docs/latest/commands/save/">own docs</a> warn about performing this in hot-path production code. Calling <code>SAVE</code> or <code>BGSAVE</code> in Invar effectively triggers an on-demand WAL flush rather than waiting for SlateDB's own <code>flush_interval</code> to tick over. So while this potentially results in additional PUTs to object storage, it's won't freeze your application unless you've somehow accumulated a huge amount of outstanding modifications since <code>flush_interval</code> last rolled around.</p>
<p><code>WAIT</code> is the <em>client-facing</em> durability primitive, and it's the one Invar's durability story is actually built on. In Invar, <code>WAIT</code> maps onto exactly the mechanism above: each connection tracks the sequence number of its most recent write, then blocks until <code>durable_seq</code> catches up, or the timeout elapses, honoring the same semantics of Redis's own <code>WAIT</code>. The only bookkeeping needed on Invar's side is to track per-connection sequence numbers: confirming the latest write is durable inherently confirms everything before it (remember, <code>durable_seq</code> is monotonic). If a client-issued <code>WAIT</code> blocks or comes back with <code>1</code>, a client can be assured that its writes are durable against death of the Invar process; no second-guessing if your writes are 'safe enough' based on how many replicas they've propagated to; with Invar it's a simple binary choice: either your writes are confirmed safe, or they're not. Another mundane difference in Invar's <code>WAIT</code> implementation is that the <code>numreplicas</code> argument is ignored; we consider that S3 is the sole replica a single Invar instance will ever hold, and if you get a <code>1</code>, you can assume you're good to go.</p>
<h2>What "strong consistency" actually requires</h2>
<p>To really claim strong consistency, you need 2 things, whether you choose Redis or Invar:</p>
<ul>
<li><p>Synchronous replication to a majority of nodes</p>
</li>
<li><p>A failover mechanism that guarantees only a replica holding the complete acknowledged history can ever be promoted to leader</p>
</li>
</ul>
<p>In Redis, <code>WAIT</code> delivers the first point (as long as you check the resulting replication count!) but neither Redis alone, nor Cluster/Sentinel can offer a failover that <em>guarantees</em> the next leader will have a faithful copy of the current DB state, only one that has the <em>greatest amount of data</em> . The practical result: <code>WAIT</code> makes a lost write <em>less likely</em> during failover, by ensuring more replicas hold a copy before a leader change happens, but it doesn't make loss impossible. Salvatore Sanfilippo's own SO answer <a href="https://stackoverflow.com/questions/33629339/can-the-wait-command-provide-strong-consistency-in-redis">puts it plainly</a>: <code>WAIT</code> does not make Redis linearizable.</p>
<p>That's a gap which only becomes a problem worth solving once you've introduced multiple nodes in the first place: a single Redis instance has no replicas to synchronize with, so even this partial protection is only available once you've taken on the operational weight of a cluster or Sentinel deployment.</p>
<p>Invar sidesteps the problem differently by enforcing a single process, single writer design, and delegating consistency to S3's own read-after-write model instead. For the avoidance of doubt, Invar also doesn't claim to support true "<a href="https://en.wikipedia.org/wiki/Linearizability">linearizable</a>" consistency either: we can't, since AWS doesn't claim this for S3; their own documentation is careful to say "strong read-after-write consistency," which is more specific.</p>
<p>The difference is that Invar piggybacks off SlateDB's <a href="https://slatedb.io/rfcs/0001-manifest/">fencing protocol</a> guarantees, i.e. that there's only ever one legitimate writer in the first place, which is exactly the failover mechanism Redis Cluster/Sentinel lacks. Removing the possibility of multiple writers elides a whole class of problems that don't need solving after the fact.</p>
<h2>Invar's consistency model</h2>
<p>I've focused on <em>durability</em> in this post; consistency deserves its own more thorough exploration. But for now I'll summarize where we're at:</p>
<p>Invar currently uses Snapshot Isolation (SI) for all writes. That's not a hidden limitation; it's the default a lot of production databases ship with (PostgreSQL's <code>REPEATABLE READ</code> is SI too), and it's a great fit for the overwhelming majority of workloads.</p>
<p>SlateDB itself already supports more than this. It can be configured for SSI, detecting read-write conflicts (write skew) that plain Snapshot Isolation doesn't catch, and Invar's strict single-writer model means it can support a lighter-weight option, independently of the storage engine: fully serialized, single-threaded execution, closer to how Redis itself behaves.</p>
<p>Exposing these as tunable choices (likely per key prefix), so a handful of genuinely hot, correctness-sensitive keys can opt into stronger guarantees without taxing everything else, is on the roadmap.</p>
<h2>Try it out!</h2>
<p>If you want solid Redis durability for your Redis data but don't want to run a cluster, give Invar a try!</p>
<ul>
<li><p><a href="https://docs.hardpoint.dev/guides/invar/quick-start">Download &amp; run it yourself</a></p>
</li>
<li><p><a href="https://accounts.hardpoint.dev/waitlist">Join the waitlist</a> for our managed cloud solution</p>
</li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Announcing Invar: A diskless transactional document DB]]></title><description><![CDATA[How a cost-and-latency crisis at my last job led to Invar: an open-source, diskless, Redis-compatible document database backed by S3.]]></description><link>https://blog.hardpoint.dev/announcing-invar-a-diskless-transactional-document-db</link><guid isPermaLink="true">https://blog.hardpoint.dev/announcing-invar-a-diskless-transactional-document-db</guid><category><![CDATA[Redis]]></category><category><![CDATA[bullmq]]></category><category><![CDATA[slatedb]]></category><category><![CDATA[Rust]]></category><dc:creator><![CDATA[Chris Mowforth]]></dc:creator><pubDate>Mon, 24 Aug 2026 21:32:17 GMT</pubDate><content:encoded><![CDATA[<p>tl;dr - we've built a diskless NoSQL document database called <strong>Invar</strong>. It has well-defined durability guarantees, speaks Redis' native wire protocol, and persists data to S3-compatible object storage. <a href="https://github.com/hardpointlabs/invar">We've open-sourced it</a>. If you like it, please give it a star and say hi on our <a href="https://discord.gg/WWE4PWVnb2">Discord</a> :)</p>
<hr />
<h2>Back story</h2>
<p>Invar's gestation is a little convoluted. It's the product of several system design iterations trying to solve some problems in an existing system, principally cost/GiB and tail latency.</p>
<h4>Never let a crisis go to waste</h4>
<p>Without breaking any confidences with past employers, the spark that started this journey came from an underperforming data pipeline with an excessive cloud bill attached to it [isn't it always thus?]. It was one of those many storage layers that worked <em>just</em> well enough, and didn't burn enough cash to garner a whole load of attention, but was a known frustration to SREs' on-call rotations, and product engineers who constantly agitated for a redesign. Eventually, the straw that broke the camel's back re. revising the architecture was pressure for more features, and after a few rounds of translating <em>how</em> this thing was on fire, from the esoteric to the concrete- i.e. "you can't deliver the roadmap you promised!", I got some <a href="https://github.com/matthiasn/talk-transcripts/blob/master/Hickey_Rich/HammockDrivenDev.md">Hammock Time</a> under my belt to ponder on where to take this behemoth.</p>
<h4>Discretion is the better part of valor</h4>
<p>Some more context about the workload: the first system that needed attention was an <a href="https://aws.amazon.com/documentdb/">AWS DocumentDB</a> cluster which stored a bunch of key-value pairs which were ultimately a derivation of a domain-specific file format which users would upload (the derivation was complex, with hundreds of edge cases, but not germane to the system design). They were large-ish on their own: a long tail of files in the order of ~10MiB but at the upper end of the spectrum they'd cross into the gigabyte-range. Once processed and stored in DocumentDB, users could query this data using a proprietary S-expression-like language.</p>
<p>In a nutshell, the request path looked something like this:</p>
<pre><code class="language-plaintext">User request
↓
Compute
↓
DocumentDB node
↓
Storage layer
</code></pre>
<p>In multi-tenant SaaS platforms, the correlation between resource usage and customer significance is often tenuous, but in this case there was a clear link between size/complexity of data stored and logo size; that's a diplomatic way of saying that high value customers would DoS us with 100s of GiB's of key/value pairs, and then complain when either the pipeline caught fire, or query latency became unacceptable. As this corpus grew into the hundreds of terabytes it became clear that colocating all these unrelated datasets into one giant cluster wasn't destined for Petabyte-scale.</p>
<p>The operative word there is <em>unrelated</em>: each file full of key/value pairs was a discrete dataset that customers would hit with point queries- there was no requirement for doing joins across datasets or anything exotic: ingest, parse, query. The rub is that we didn't have prior knowledge of exactly what kind of queries a customer would hit us with, so there was a degree of randomness there, and randomness is not something page caches do particularly well with.</p>
<h4>Back to basics</h4>
<p>While ingesting these files was a pain, it wasn't generally noticeable by end users unless the delay drifted into minutes/hours. What <em>was</em> much more obvious was the slow queries- a user would fire a predicate like:</p>
<pre><code class="language-plaintext">(OR (= "some_key" 1.234) (&gt; "other_key" 4.567))
</code></pre>
<p>at a REST API, and under the hood it'd go off and sift through this big keyspace to find stuff that matched. I want to qualify big though; it was only unwieldy because all these keys were munged together into one big DB, separated by a prefix; in reality, we'd be dealing with ~10^6 key-value pairs per dataset in the worst case. Even so, we had a long tail of queries taking double-digit seconds to complete, and a meaningful quantity which were timing out at the load balancer before finishing.</p>
<p>If you came up with the most crappy, pathologically bad storage format, e.g. dumping them all to a newline-delimited text file, a modern computer could grep through a million lines, at an average of ~1kb per line in well under a second, right? Nothing like <a href="https://sre.google/workbook/non-abstract-design/">some back-of-napkin math</a> to give you a set of ground truths.</p>
<p>The workload:</p>
<ul>
<li><p>1M lines</p>
</li>
<li><p>~1KiB/line</p>
</li>
<li><p>= ~1GiB total data to sift through</p>
</li>
<li><p>Assume fast fixed substring search (e.g. <code>grep</code> + Boyer-Moore)</p>
</li>
<li><p>Ignore fixed costs like <code>fopen</code>, page faulting, e.t.c for now</p>
</li>
<li><p>Assume cold reads, no page cache helping here</p>
</li>
</ul>
<p>And let's throw it at a fairly average modern machine:</p>
<table>
<thead>
<tr>
<th>Thing</th>
<th>Bandwidth</th>
</tr>
</thead>
<tbody><tr>
<td>SSD</td>
<td>5-15 GiB/s</td>
</tr>
<tr>
<td>RAM</td>
<td>25-100+GiB/s</td>
</tr>
<tr>
<td><code>grep</code><a href="https://trunc.org/learning/grep-performance">*</a></td>
<td>1-2GiB/s</td>
</tr>
</tbody></table>
<p>Even mediocre hardware is not the limiting factor here for our 'workload' (<code>grep</code>); and assuming the worst case, 1GiB/s / 1GiB ~= 1 second for our toughest customers. So leaving aside any glaring bugs, the existing design was obviously not sympathetic to the underlying hardware.</p>
<h4>The curse of network storage</h4>
<p>Taking this from a degenerate single-machine case to a real cloud environment, you now additionally have to factor AWS's infrastructure limitations into your workload performance.</p>
<p>Remember that this corpus was living in DocumentDB. Consider a 3-node cluster of <code>r6g.2xlarge</code> nodes sitting on ~100TiB of data, there are a few salient points to keep in the back of your mind:</p>
<ul>
<li><p>Since DocumentDB runs in a single-writer setup, you're not aggregating memory; you just have <em>n</em> separate page caches that can get messed up independently</p>
</li>
<li><p>An <code>r6g.2xlarge</code> DocumentDB instance has an advertised baseline 12,000 IOPS available</p>
</li>
<li><p>Amazon <a href="https://aws.amazon.com/documentdb/pricing/">publicly states</a> that one DocumentDB IO operation is an 8k page read</p>
</li>
<li><p>A cold page read from the underlying Aurora storage layer has a <a href="https://builder.aws.com/content/3HPs7AWJa9UDVz1E85sCfCMQ5wI/what-happens-to-your-application-when-amazon-documentdb-serverless-scales">p50 latency of 3ms</a></p>
</li>
<li><p>Background observation of our users' behavior showed a bias towards recency where a sliding window of ~5% of the newest uploads received basically all query traffic</p>
</li>
</ul>
<p>We had a p99 latency goal of &lt; 1 second, in an environment where we designed for ~10 public, user-issued queries/second; however those s-expressions would potentially hit multiple datasets in parallel, creating a 100:1 read amplification.</p>
<p>The ratio of corpus size to available memory and page throughput is important and eliding any other fixed costs, basically dictates whether that p99 is achievable or not.</p>
<p>You obviously can't devote all of the instances' 64GiB of RAM to page cache, but even if that were possible, the probability of a cache miss, even with our ~5TiB 'hot' working set is still extremely high.</p>
<p>If we take cacheable pages (remember a page is read in 8k chunks), <code>C</code> to be:</p>
<p>$$C = \frac {2^{36}}{8192} \approx 8,388,608$$</p>
<p>and the total in our working set, <code>W</code>:</p>
<p>$$W = \frac {5 \times 2^{40}}{8192} \approx 671,088,640$$</p>
<p>Which gives us a rather woeful ~98.75% miss rate probability.</p>
<p>$$P(miss) = 1-\frac{C}{W} \approx 98.75%$$</p>
<p>Given one of the design goals was to support hundreds of queries per second, it's a virtual certainty we'll hit the worst-case. But what about those 12k <em><strong>concurrent</strong></em> IOPS, don't they save us here? Not really, for a few reasons:</p>
<ul>
<li><p>Index traversal is pointer-based (assuming we hit an index; due to the sparse/dynamic nature of the data, this was tricky, and index size itself became nontrivial) and therefore sequential by definition</p>
</li>
<li><p>Cursor iteration is also sequential. The index tells DocumentDB which document pages it needs, the query engine steps through the list, reads a document pointer, issues an 8KB page request to storage, waits the ~3ms for everything to arrive... and moves on to the next iteration</p>
</li>
<li><p>Aurora, as opposed to DocumentDB itself does have some support for colocating scans alongside the storage layer itself but this wasn't an option for us at the time, and would latterly have required a big rewrite without solving storage cost concerns</p>
</li>
</ul>
<p>Given our p99 &lt; 1 second requirement, and assuming that a cold storage page read takes ~3ms, we can tolerate no more than ~300 IOPS, (and presumed page misses <em>per dataset</em>...)</p>
<p>$$\frac {1,000} {3ms/IO} \approx 322iops$$</p>
<p>...which as we established earlier is unlikely to satisfy the 1 second upper bound if we assume, like we did from our single-node-text-file case, that an average dataset comprises ~1GiB's worth of key-value pairs (which breaks down to around 131,000 8k pages for DocumentDB to fetch).</p>
<h4>Sympathy for the page cache</h4>
<p>No cache algorithm is going to preemptively guess which pages need to be hot for a RAM:Working set ratio this small (yes, we could provision beefier boxes but at some point you hit a vertical limit that you can't throw more hardware at).</p>
<p>Remember the <a href="https://www.cs.unc.edu/~stotts/COMP590-059-f24/robsrules.html">5 rules</a>? Data really does dominate. If you can figure out where it should be, at what time, you can generally get a half-decent design to fall out naturally. Going back to some things about our access pattern that we mentioned in passing:</p>
<ul>
<li><p>In this case it was a WORM-type workload; datasets were never modified</p>
</li>
<li><p>Datasets were discrete: although parallel queries would fetch &amp; merge resulting lists of values from multiple datasets, there were no joins or other exotic cross-dataset filtering or aggregation</p>
</li>
<li><p>Datasets exhibited a strong bias towards recency: since they were never modified, a user would simply upload a <em>copy</em> containing whatever modifications they had made; the now-old version could be demoted down a storage hierarchy</p>
</li>
<li><p>Latency wasn't a concern at import time; imports were a complex pipeline and parts were memory/CPU-bound, but throughput was more of a concern here; separating reads from writes would be ideal</p>
</li>
<li><p>Latency <em>was</em> a concern a query time; at this point, the hot working set really had to be hot, and the poor old page cache clearly didn't have enough out-of-band info to effectively decide that</p>
</li>
</ul>
<h3>V0: SQLite + Cache loader</h3>
<hr />
<p>Could we build something that better served our use case: sparse point-queries on millions of CoW key-value pairs that churned fairly frequently, without thrashing any caches?</p>
<p>What we came up with looked like this:</p>
<pre><code class="language-plaintext">User request
↓
Compute + NVMe Disk Cache (ZFS)
↓
S3 (SQLite file per dataset)
</code></pre>
<p>Instead of munging all our de-structured dataset key-value pairs into one giant DB, we created an LZ4-compressed SQLite DB with a functionally equivalent schema for each one, and uploaded them as separate keys to S3.</p>
<p>Our 'hot' working set was colocated along side the application servers in the compute nodes, deployed as a stateful set on dedicated node groups in our EKS cluster fleet, using ZFS (we chose LZ4 for both S3 object compression and block-level compression but in hindsight, since S3 transfer times outweigh decompression time at scale, I'd probably pick zstd or gzip).</p>
<p>To glue all of this together, we consistently hashed traffic by dataset ID and built a pre-fetch mechanism for loading newly processed datasets into disk.</p>
<p>All this meant that cache invalidation now became a user-space problem. Devising a 'nice'/ergonomic/idiot-proof way of making it easy for application code to just load SQLite files on-demand, and quietly invalidate unneeded ones took a bit of trial and error: we considered AWS' <a href="https://aws.amazon.com/blogs/aws/mountpoint-for-amazon-s3-generally-available-and-ready-for-production-workloads/">own S3 mountpoint</a> client, which at the time did not give us much control over cache invalidation without forking the repo. We also played around with our own FUSE implementation but the <code>App -&gt; Kernel -&gt; FUSE Daemon -&gt; Kernel -&gt; App</code> context switch was something we wanted to avoid as we imagined we'd want to do direct range queries against S3 on future versions of this system evolution (that never materialized, and I'm aware Mountpoint S3 also uses FUSE under the hood too :) We quietly wished that something like <a href="https://openzfs.org/wiki/OpenZFS_Developer_Summit_2021_talks#ZettaCache:_fast_access_to_slow_storage_(Mark_Maybee,_Serapheim_Dimitropoulos)">Zettacache</a> made it upstream into OpenZFS; in its absence, I came across <a href="https://www.zerofs.net/">ZeroFS</a> and <a href="https://slatedb.io/">SlateDB</a> (more on that later); we also considered something along the lines of what <a href="https://tech.nextroll.com/blog/data/2016/11/29/traildb-mmap-s3.html">Adroll did</a> with <code>userfaultd</code> but decided on something a bit less exotic. Ultimately, we settled on a simple library embedded into the application which made S3 calls directly and handled invalidation on a background thread using a variety of algorithms, eventually settling on <a href="https://arpitbhayani.me/blogs/2q-cache/">2Q</a>.</p>
<p>An interesting corollary to all of this is that since shipping V0, Amazon has added support for NVMe-based instance classes in DocumentDB clusters.</p>
<hr />
<h3>V1: LSM trees</h3>
<p>Within the space of about a month, we got hit with two separate requirements that had a bearing on the future of this as-yet-unnamed SQLite + cache-loader.</p>
<p>The first, from the business side: could we offer dedicated, per-tenant databases to enterprise customers? It turns out we already had, by accident: one SQLite file per dataset, one dataset per tenant, was tenant isolation all along, we just hadn't noticed we'd built it. Want to bring your own S3 bucket/key infrastructure? Not a problem.</p>
<p>The second, from engineering: could this thing support OLTP-type workloads? V0 was designed for immutability from the get-go: SQLite files up through to the cache invalidation logic. Mutating a dataset meant re-uploading the whole thing, which is a fine strategy for "user replaces a file", but a terrible one for "user sends messages to an inbox".</p>
<p>V1 kept the spirit that of V0: a hot working set spread across a hash ring, and added a gossip layer to cut the miss rate whenever ring topology changed. But the storage engine itself changed: each node ran <a href="https://github.com/dgraph-io/badger">BadgerDB</a> locally, an embedded Go LSM-tree store that actually supported mutation, with S3 relegated to storing incremental backups via BadgerDB's own backup API, running on a background goroutine. That was a real philosophical regression in terms of architectural purity in my mind, since S3 stopped being the source of truth. Where SQLite-on-S3 had been diskless by construction, BadgerDB-with-S3-backup was disk-first, but it did enable mutability, and the first workload that used it (an in-app messaging inbox) had a relaxed enough RPO that async backups were a perfectly acceptable tradeoff.</p>
<p>V1 turned out to be interstitial in more ways than one. Architecturally, it was clearly a stepping stone rather than a destination. Personally, it's also when I went full-time on this. The original framing was "tenant isolation as the product," and one more requirement fell out of that: MongoDB wire protocol support, for which I built a proof of concept in the same Go codebase (it was never open-sourced, and for both licensing and QA reasons, it's probably for the best). Somewhere in the middle of all of this, it became obvious that the database was a thing that needed to stand on its own, not live as a component buried inside some amorphous tenant-isolation platform. So I made the call to open source it, give it a name, and start over properly.</p>
<hr />
<h3>V2: Invar</h3>
<p>Which brings us to SlateDB- the thing I'd wished, back in V0, that OpenZFS's ZettaCache had grown up to be. SlateDB is an LSM-tree storage engine built to sit directly on object storage, and it's the foundation Invar is actually built on: a Rust port, diskless by design, with S3 (or an S3-compatible store) as the durable source of truth and a best-effort local cache for latency-sensitive reads.</p>
<p>I didn't want "diskless" to compromise the DevEx, and running standalone, with no external functional dependencies, was a hard requirement since V0 that carries over into the present. So Invar can also run entirely on <a href="https://github.com/fjall-rs/fjall">Fjall</a> as a local, disk-only persistence layer. The wire protocol and semantics remain the same, minus S3. Having a solid story for local dev loops, CI builds, e.t.c is something I consider to be table-stakes functionality.</p>
<p>Right now I'm keeping the scope narrow: Redis compatibility is the most mature API surface, with some CI tests against real client libraries and frameworks (such as <a href="https://bullmq.io">BullMQ</a>), not just the raw command spec. It ported over to Rust pretty idiomatically. Before I widen the feature set further, I want a solid, boring process in place for how Invar takes contributions and evolves: for this to be a serious thing people can trust, the development itself has to scale beyond one person, and before you start adding combinatorial complexity to the feature set. MongoDB wire protocol support is on the horizon <em>soon™</em>, in some form, but there are a few non-technical barriers that I'll unpack elsewhere.</p>
<p>Alongside the database itself, I'm building a managed cloud offering, and despite swearing off it more than once, I still haven't let go of the enterprise "glue" I originally thought was the whole product: tenant management and ancillary tooling for running a fleet of these at scale. Looking back now, I just got the sequencing wrong: the workload (Invar) is easier to talk about than the workload <em>isolation</em>. I guess you should just do the thing you can explain to a 5 year old first.</p>
<hr />
<h2>Try it</h2>
<p>If any part of this sounded familiar: a hot/cold access pattern that confuses page caches, a cloud bill that scales on the wrong trajectory, an ops team tired of debugging PVCs stuck in <code>Pending</code>, then <a href="https://github.com/hardpointlabs/invar">Invar is on GitHub</a>, Apache 2.0-licensed, and it speaks Redis, so there's a decent chance you can point something you already run at it today.</p>
<p>Stars, issues, and "why doesn't this command work" reports are all genuinely welcome. It's early, a little scrappy, and I think it's better this way.</p>
]]></content:encoded></item><item><title><![CDATA[Sovereign edge for everyone: What Hardpoint is, and where we're going]]></title><description><![CDATA[Our long term vision for how Hardpoint aims to make sovereign edge computing accessible to SaaS businesses of all sizes]]></description><link>https://blog.hardpoint.dev/sovereign-edge-for-everyone-what-hardpoint-is-and-where-we-re-going</link><guid isPermaLink="true">https://blog.hardpoint.dev/sovereign-edge-for-everyone-what-hardpoint-is-and-where-we-re-going</guid><category><![CDATA[edgecomputing]]></category><category><![CDATA[Sovereign AI]]></category><category><![CDATA[serverless]]></category><category><![CDATA[Vercel]]></category><dc:creator><![CDATA[Chris Mowforth]]></dc:creator><pubDate>Wed, 06 May 2026 14:24:00 GMT</pubDate><content:encoded><![CDATA[<h1>tl;dr</h1>
<p>Our MVP is in public Alpha, <a href="https://dashboard.hardpoint.dev/">go check it out!</a></p>
<p>The MVP addresses some key networking pain points with serverless workloads. Things that <em>should</em> be easy but aren't:</p>
<ul>
<li><p>Safely connect a Vercel project to a database without changing your cloud provider or YOLO'ing firewall rules (more FaaS vendors coming soon)</p>
</li>
<li><p>Authenticate, authorize and observe PaaS/FaaS workloads based on <a href="https://en.wikipedia.org/wiki/Zero_trust_architecture">zero-trust</a> principles rather than old-school IP whitelists or other fixed constraints</p>
</li>
</ul>
<p>think of it as Tailscale or NetBird for serverless.</p>
<p>However, our long-term mission is more ambitious: we want to make sovereign edge computing accessible to startups of any size from $0 ARR right through to unicorns 🦄</p>
<hr />
<h1>The break-up</h1>
<p>Our thesis is that modern SaaS delivery is becoming increasingly fragmented, and that's not necessarily a bad thing. But the conceptual gap between zero-ops PaaS/FaaS products and traditional cloud infrastructure is creating an unacceptable amount of friction for growing startups with packed roadmaps.</p>
<p>This industry is being simultaneously buffeted by two antagonistic forces:</p>
<ol>
<li><p>widespread adoption of AI, catalyzed by the maturation of vibe coding tools, backed by zero-ops PaaS products that run them; this is precipitating an explosion in edge computing</p>
</li>
<li><p>increasing concerns about data security &amp; sovereignty, not just as top-down impositions from national bureaucrats, but from individual companies who want to jump on the AI bandwagon whilst capping downside privacy risks</p>
</li>
</ol>
<p>It seems like a certainty at this point that the tension between <strong>sovereign compute</strong> and <strong>edge-native cloud computing</strong> will become one of the most important infrastructure debates of the next decade.</p>
<p>This tension tends to manifest itself most acutely in the interconnect between the two worlds: in the quagmire of network plumbing, load balancer rules and the many points in a request path where tenant-awareness has been retrospectively added to an existing SaaS application.</p>
<img src="https://cdn.hashnode.com/uploads/covers/69d4d8e45da14bc70e258ec7/cecddb89-5c97-4da8-96c0-03050f73cf12.png" alt="" style="display:block;margin:0 auto" />

<p>The combinatorial explosion of <em>edge workload V sovereign region</em> permutations is making this plumbing look increasingly archaic.</p>
<h3>But I don't use serverless 🤷‍♂️</h3>
<p>That may well be true, but on a long enough trajectory, you are almost certain to leverage some kind of edge compute primitive, if you're not already. Whether that's from a cloud provider or by unwittingly rolling your own; at some point, the odds are you will need to sit on the edge, and if you're simultaneously trying to win customers who need sovereignty, your architecture suddenly has to become significantly more complex to work around the internal contradictions of these two philosophies.</p>
<p>Hardpoint's long-term mission is therefore twofold:</p>
<ol>
<li><p>Make it <strong>safe</strong> and <strong>easy</strong> to connect &amp; route traffic in heterogeneous cloud environments</p>
</li>
<li><p>Make it <strong>simple</strong> for SaaS businesses to place data within sovereign boundaries, without sacrificing edge-native benefits</p>
</li>
</ol>
<p>Or put another way: make <strong>sovereign edge architectures</strong> not just <em>feasible,</em> but <em>natural</em>.</p>
<hr />
<h2>PaaS: The Promise vs. The Pain</h2>
<p>The modern PaaS experience has fundamentally altered the way that cloud software is shipped from 0 → 1. The growth models of major players have allowed indy developers to launch experimental products for effectively zero up-front material cost. It's also massively shortened the feedback loop by lifting most basic ops tasks into their opinionated platforms, meaning that product engineers can, for the most part, simply focus on application delivery. For trivial applications, serverless really does amount to zero-ops.</p>
<p>The isolation guarantees* you get with serverless PaaS also serve as the bedrock of vibe-coded output; in short, anything that Lovable or V0 spits out needs to run somewhere, and giving these apps their own walled gardens makes the risk of unintended behavior tenable in many cases. Combine solid execution boundaries with minimal ops workload and it makes sense that <a href="https://vercel.com/">Vercel</a> et al have become a compelling place to deploy and <a href="https://background-agents.com/">self-drive</a> AI-generated applications.</p>
<p>The honeymoon normally ends when you have to deal with application state: most PaaS operators have made the strategic decision to deliberately not build their own stack of cloud primitives on top of AWS or wherever they run, instead leaving the market to fill in the gaps. In the common case of a database, you're free to spin up an <a href="https://aws.amazon.com/products/databases/?trk=540ca0f9-2a62-4c4b-8304-cbd161fcf8c4&amp;sc_channel=ps&amp;ef_id=CjwKCAjwzevPBhBaEiwAplAxvjMTlm-S0pcHMcdrXuQbm6czl7G0sPhBvW9rJz5_AcMYy143sK6NoBoCOF4QAvD_BwE:G:s&amp;s_kwcid=AL!4422!3!795841362844!e!!g!!aws%20rds!23528573975!189659182221&amp;gad_campaignid=23528573975&amp;gbraid=0AAAAADjHtp_1niGIiTxj8JMcgLx0_OcUt&amp;gclid=CjwKCAjwzevPBhBaEiwAplAxvjMTlm-S0pcHMcdrXuQbm6czl7G0sPhBvW9rJz5_AcMYy143sK6NoBoCOF4QAvD_BwE">RDS instance</a> or use one of the <a href="https://neon.com">growing</a> <a href="https://www.thenile.dev">array</a> of <a href="https://turso.tech/">serverless</a>, zero[or at least minimal]-ops fully managed offerings. Vercel has a <a href="https://vercel.com/marketplace">marketplace</a> full of these to reduce the onboarding friction even further.</p>
<p>For many b2c startups, this approach may get you far, and we're certainly not criticizing the underlying tech; but there some down-to-earth problems (and a few bigger semantic ones) that can become deal-breakers when you compose a bunch of 'serverless' services together.</p>
<p>First up, the low-level stuff: you're not supposed to get hung up on which cloud provider and region your data and compute lives in when you go full-on serverless, which means that the connections between function and data store more often than not just go over the public internet. Yes, if you're lucky, you can get a fast path inside a VPC if your function &amp; backend live in the same cloud (provided you're willing to pay), and yes, most FaaS vendors will rent you a fixed IP block if you need to gate origin access (once again, for more $$$). Either way, you lose the agility that comes with cloud agnosticism. With IP blocks, you're back to old-school topography-based access control.</p>
<p>Or, if we're honest, more often than not we eschew the static IPs and just YOLO the firewall rules with <strong>0.0.0.0/0</strong>:</p>
<img src="https://cdn.hashnode.com/uploads/covers/69d4d8e45da14bc70e258ec7/cdf8fe13-f81d-4672-a263-6b9af25325ab.png" alt="" style="display:block;margin:0 auto" />

<p>This is a shame, since a growing number of PaaS vendors support some kind of <a href="https://vercel.com/docs/oidc#in-vercel-functions">OIDC token federation</a>, obviating the need for things like topology constraints (e.g. what IP address are you calling from?) or shared secrets.</p>
<p>Instead, it would be preferable to determine eligibility based on some expected attribute, secured by something we can externally verify like an RSA-signed JWT:</p>
<img src="https://cdn.hashnode.com/uploads/covers/69d4d8e45da14bc70e258ec7/283f730e-4892-4800-8fcc-48a130ed38fd.png" alt="" style="display:block;margin:0 auto" />

<p>This is how Hardpoint governs access to private resources: use a known trust anchor instead of shared secrets or static network attributes.</p>
<p>Best of all, apart from specifying an entry rule(s), there's nothing else to configure: your Vercel project doesn't need any knowledge of Hardpoint or vice-versa.</p>
<h2>Dead-ends</h2>
<p>Second, we have the sovereignty conundrum: SaaS operators are realizing that running performant and cost-effective AI services at scale means tackling the whole playbook of classical distributed systems problems. In a nutshell, doing this at planet-scale simultaneously requires both proximity to users, but also privacy. They're somewhat adjacent but occasionally competing concerns.</p>
<p>In the old days it was simple: you have your n-tier web app, stick some in-memory caching in here and there, and maybe add a public CDN for good measure. Lumping all your tenants in the same boat is generally not something you second-guess when you're still worrying about product-market fit, but AI (and prompting in particular) has shortened the timeline for customers to ask "where are you storing my trade secrets/medical data/PII?".</p>
<p>The specter of sovereign compute is rapidly transforming from an esoteric problem for B/C-round growth companies chasing Fortune 500 logos to an architecture headache that can lose sales for any company, regardless of size.</p>
<p>Remember how all these managed service vendors are kind of cloud-agnostic but not really? That leaky abstraction isn't just a developer issue, it's not lost on customers, either. For various reasons: geopolitics, the proliferation of AI and a weariness of data breaches, it's commonplace to be asked what cloud provider(s) you're building on top of, and sometimes customers won't like the answer. They may be able to point to some regulatory reason why they can't accept vendor , or it may just be internal politics; the point is not to pick the right provider but to have the agility to drop data into whichever one they want.</p>
<img src="https://cdn.hashnode.com/uploads/covers/69d4d8e45da14bc70e258ec7/5ba05a4d-cc2c-46ac-be69-bb3a84195982.png" alt="" style="display:block;margin:0 auto" />

<p>This kind of arbitrary tenant partitioning can be expressed as rules which are evaluated at the request level in our routing mesh.</p>
<p>While we don't support freeform rules in the UI at this time, we're working on refining the concept and actively soliciting feedback from early users. If you'd like to get involved, ping us through one of the channels in the conclusion.</p>
<h3>Beyond networking</h3>
<p>The MVP focuses on immediate pain points: auth and network security. But that's a prerequisite to our next step which is building and operating databases themselves.</p>
<p>While you can run our agent on any infrastructure you choose and get true end-to-end post-quantum** security, we can host Postgres™ and Redis™-compatible databases that are:</p>
<ul>
<li><p>auto-provisioned: no herding RDS instances: configure your rules and they automatically and securely hook into your Hardpoint network</p>
</li>
<li><p>auto-placed: we ensure tenant data ends up in the cloud provider + region it's supposed to</p>
</li>
<li><p>auto-compliant: we deal with key hygiene, SIEM integration and all the other things you get asked for in customer RFPs</p>
</li>
<li><p>cost-effective: a full database per tenant/zone without the unit economics of a full DB</p>
</li>
</ul>
<img src="https://cdn.hashnode.com/uploads/covers/69d4d8e45da14bc70e258ec7/4420d3a2-ae41-4413-96bd-b691699649b9.png" alt="" style="display:block;margin:0 auto" />

<h1>Conclusion</h1>
<p>We want to be the data platform of choice for SaaS operators who need to marry edge-native capabilities, while treating tenant isolation and data residency as first-class concepts.</p>
<p>More concretely, this means being able to say "yes" to requests like:</p>
<ul>
<li><p>"Customer A wants separate databases + encryption keys and audit integration with their SIEM"</p>
</li>
<li><p>"Customer B wants all their data to live in Germany because of [reasons]"</p>
</li>
<li><p>"We need to handle Customers A, B and C without messing up our unit economics or having our ops team quit"</p>
</li>
<li><p>"All these customers still want our CDN in their isolation zone"</p>
</li>
</ul>
<p>We believe that we're at a point in time where many technologies (edge computing, microVMs, WASM and agentic AI to name a few) are coalescing to make a data platform like this buildable, and that we're the best team to do it.</p>
<p>If any of this has piqued your interest, <a href="https://dashboard.hardpoint.dev/">sign up for the alpha for free now!</a></p>
<p>Any questions or feedback are welcome either via <a href="https://x.com/h7tlabs">X</a> or through our own <a href="https://discord.gg/WWE4PWVnb2">Discord</a>.</p>
<hr />
<p><em>* this varies widely and warrants a dedicated future blog post</em></p>
<p>** another expansive topic deserving of its own post</p>
]]></content:encoded></item></channel></rss>