---
title: "Announcing Deno KV"
description: "Deno KV is a strongly consistent key-value database built into the Deno runtime."
url: "https://swe.quest/articles/announcing-deno-kv-d97d28c9a7128cf3"
canonical: "https://deno.com/blog/kv"
source: "Deno"
published: "2023-05-01"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 5
tags: ["databases","consistency","replication","javascript"]
---

# Announcing Deno KV

A post on [Deno](https://swe.quest/sources/deno.md), published 2023-05-01, 5 min read, Announcement. Original: [https://deno.com/blog/kv](https://deno.com/blog/kv)

## Summary

Deno KV is a strongly consistent key-value database built into the Deno runtime. It is backed by SQLite when run locally and by FoundationDB when managed on Deno Deploy, where it is globally replicated across 35 regions. The API stores structured-serializable JavaScript values under array keys, supports prefix listing with cursor pagination, and offers atomic multi-key transactions using check-and-set. Reads are strongly consistent (serializable and linearizable) by default and can opt into eventual consistency for lower latency, for example 7ms versus 94ms in Frankfurt during the beta.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [Consistency models](https://swe.quest/tags/consistency.md) (Distributed systems)
- [Replication](https://swe.quest/tags/replication.md) (Distributed systems)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- JavaScript async/await ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- key-value stores

## Keywords

Deno KV, Deno Deploy, FoundationDB, SQLite, Deno

## Related posts

- [Deno KV internals: building a database for the modern web](https://swe.quest/articles/deno-kv-internals-building-a-database-for-the-modern-web-61dddae321d95df6.md): Deno · 2023-09-14 · Hard · 10 min read · Distributed databases, Consistency models, Storage engines, JavaScript
  Deno KV's production backend runs on FoundationDB, with a custom "transaction layer" in front of it that handles multi-tenant configuration, JavaScript-native types such as bigint sums, and cross-region replication.
- [How to Build a CRUD API with Oak and Deno KV](https://swe.quest/articles/how-to-build-a-crud-api-with-oak-and-deno-kv-91b6dbad01b74ff7.md): Deno · 2023-06-01 · Medium · 9 min read · TypeScript, Databases, API design, Consistency models
  Deno KV, a key-value database built into the Deno runtime, can back a simple CRUD API for users and addresses served by Oak's Router.
- [Use Deno KV in Node with the new official npm package](https://swe.quest/articles/use-deno-kv-in-node-with-the-new-official-npm-package-b89917dc2e71fbde.md): Deno · 2023-12-12 · Medium · 4 min read · JavaScript, Databases, Serverless
  Deno KV is now usable from Node.js through the official @deno/kv npm package, which exposes the same API as Deno's built-in KV through a single openKv function.
- [Announcing self-hosted Deno KV, continuous backups, and replicas](https://swe.quest/articles/announcing-self-hosted-deno-kv-continuous-backups-and-replicas-81eccdaa35f080ea.md): Deno · 2023-11-10 · Medium · 6 min read · Databases, SQLite, Replication, JavaScript
  Deno KV can now be self-hosted via an open-source, MIT-licensed \`denokv\` binary backed by SQLite and reachable from \`Deno.openKv\` over KV Connect.
- [Deno 1.33: Deno 2 is coming](https://swe.quest/articles/deno-1-33-deno-2-is-coming-2b1565b87f38fa7f.md): Deno · 2023-04-28 · Medium · 8 min read · JavaScript, Runtimes & VMs, TypeScript
  Deno 1.33 ships a built-in, unstable KV database (Deno.openKv) that persists to disk locally and is geo-replicated on Deno Deploy.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
