Diom

Open source

Replace Redis, Kafka, and RabbitMQ with one binary

Cache, key-value storage, idempotency, rate limiting, queues, and streams behind one API. Self-hosted, and built for the 95% of services that just need compact and reliable infra.

One binary for the primitives you keep rebuilding

Every backend primitive you need, without the infrastructure sprawl. One binary, self-hosted, and open-source.

The common components you need

Cache, rate limiting, idempotency, queues, streams, key-value, and more. All in a single service, one SDK, and a consistent API. Patterns are well established, there's no reason why to build them from scratch.

Replaces Redis, Kafka, custom code, and more…

Avoid infrastructure sprawl. Diom can replace Redis, Kafka, RabbitMQ, and a lot of custom code for many use-cases. Less to run, less to learn, less to maintain. Just one open-source binary.

Highly-available and easy to operate

Self-contained, manages its own storage, and can be run as a single node or a highly-available cluster. Focusing on easy operations for 95% of products, instead of benchmarking against FAANG scale.

Prebuilt, not homegrown

Use pre-built idiomatic components rather than building fragile versions on top of Postgres and Redis, or running a zoo of specialized services that each need their own backups, monitoring, and maintenance.

Each primitive in a few lines

SDKs for Rust, Python, TypeScript, Go, and Java, plus a CLI.

Idempotency

Make it possible for your customers to safely retry requests while preventing duplicate operations from causing side effects.

The idempotency component lets you build the exact idempotency behavior you want, both in terms of configuration and the customer facing behavior.

Start once, complete with a result, or release the lock

match client.idempotency()
    .start(idem_key.clone(), IdempotencyStartIn::new(Duration::from_secs(15)))
    .await?
{
    IdempotencyStartOut::Started => {
        let response = do_some_real_work();
        client.idempotency().complete(
            idem_key,
            IdempotencyCompleteIn::new(result, Duration::from_secs(12 * 3600)),
        ).await?;
        return response;
    }
    IdempotencyStartOut::Locked => return StatusCode::LOCKED,
    IdempotencyStartOut::Completed(cached) => return cached.response,
}

Built for your backend needs

Works with most common deployment environments and frameworks.

High availability

Supports deploying as a Raft-powered cluster to stay up when a node fails and have zero-downtime upgrades.

Stateless HTTP API

Works in every environment and with the wider ecosystem. No proprietary protocols or special drivers required.

Fine-grained authorization

Per-tenant and per-user data isolation at the data layer, enabling secure multi-tenancy and least-privilege setups out of the box.

Low latency

Having the implementation and the storage layer on the same node enables low latency operations (e.g. 100μs hot reads).

Developer experience

SDKs for the most popular languages (with more planned), so you can integrate Diom into your stack with minimal friction.

Easy to operate

Easy to setup, monitor, and operate. Self-healing clusters, built-in backups, and more. Built with operations in mind.

Built with 100% safe Rust

Written entirely in safe, async Rust for memory safety, fearless concurrency, and high performance.

Open source

Diom is free and open source software with the source code available on GitHub. Contributions and suggestions are welcome!

Diom Playground

Try Diom live in a playground environment. Use the CLI from the browser or from your own terminal.

diom — sandbox

Connected to sandbox.diom.dev:8443

Type Diom CLI commands below (same as diom …). Try: kv get <key>, help, or --help

————————————————————————————————————————————————

diom> kv set greeting "Hello, world!"

OK

diom> kv get greeting

"Hello, world!"

diom> cache set user:42 '{"name":"Ada"}' --ttl 3600

OK

diom>Enter command…

Diom Cloud

Diom Cloud is a fully managed version of Diom, with multi-region support. Coming soon.