---
title: "Announcing Deno Queues"
description: "Deno Queues adds two APIs to Deno KV, `enqueue()` and `listenQueue()`, for offloading or delaying background work with no infrastructure to configure."
url: "https://swe.quest/articles/announcing-deno-queues-6220a78d2486588f"
canonical: "https://deno.com/blog/queues"
source: "Deno"
published: "2023-09-27"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 6
tags: ["messaging","serverless","javascript","consistency"]
---

# Announcing Deno Queues

A post on [Deno](https://swe.quest/sources/deno.md), published 2023-09-27, 6 min read, Announcement. Original: [https://deno.com/blog/queues](https://deno.com/blog/queues)

## Summary

Deno Queues adds two APIs to Deno KV, \`enqueue()\` and \`listenQueue()\`, for offloading or delaying background work with no infrastructure to configure. They are backed by SQLite locally and FoundationDB on Deno Deploy, where V8 isolates spin up on demand to process messages. Delivery is at-least-once, failed handlers retry up to 5 times before the message is dropped, and enqueues can join KV atomic transactions so messages are only sent if the transaction commits. Nonce checks inside those transactions give idempotent processing, and billing is per KV write plus one Deploy request per received message.

Written by swe.quest, not by the author.

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

## Topics

- [Queues & messaging](https://swe.quest/tags/messaging.md) (Backend & APIs)
- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Consistency models](https://swe.quest/tags/consistency.md) (Distributed systems)

## Prerequisites

- JavaScript async/await ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- message queue basics ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))

## Keywords

Deno Queues, Deno KV, Deno Deploy, FoundationDB, SQLite, V8 isolates

## 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.
- [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 Deno KV](https://swe.quest/articles/announcing-deno-kv-d97d28c9a7128cf3.md): Deno · 2023-05-01 · Medium · 5 min read · Databases, Consistency models, Replication, JavaScript
  Deno KV is a strongly consistent key-value database built into the Deno runtime.
- [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 KV vs. Cloudflare Workers KV, Upstash Redis, AWS DynamoDB, and Google Firestore](https://swe.quest/articles/deno-kv-vs-cloudflare-workers-kv-upstash-redis-aws-dynamodb-and-google-firestore-e5a149ce3d17d354.md): Deno · 2023-12-13 · Medium · 9 min read · Databases, Serverless, Performance engineering, Consistency models, CDN & edge
  A vendor-run benchmark compares Deno KV with Upstash Redis, DynamoDB Global Tables, Google Firestore and Cloudflare Workers KV by timing 10-record reads and writes from colocated serverless functions, with warm-up reads excluded.

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)
