Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: lw13d4 (#30908)

Wen Bo Xiea2831e2e6917
diff --git a/apps/docs/app/page.tsx b/apps/docs/app/page.tsx
index 3ad2489ead1..66911206162 100644
--- a/apps/docs/app/page.tsx
+++ b/apps/docs/app/page.tsx
@@ -79,12 +79,12 @@ const postgresIntegrations = [
href: '/guides/cron',
description: 'Schedule and monitor recurring Jobs',
},
- // {
- // title: 'Queues',
- // icon: 'queue',
- // href: '/guides/queue',
- // description: 'Postgres-native pull queues',
- // },
+ {
+ title: 'Queues',
+ icon: 'queues',
+ href: '/guides/queues',
+ description: 'Durable Message Queues with guaranteed delivery',
+ },
]
const selfHostingOptions = [
diff --git a/apps/docs/components/Navigation/NavigationMenu/MenuIconPicker.tsx b/apps/docs/components/Navigation/NavigationMenu/MenuIconPicker.tsx
index 906e4a5b0fe..24358664a09 100644
--- a/apps/docs/components/Navigation/NavigationMenu/MenuIconPicker.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/MenuIconPicker.tsx
@@ -95,7 +95,7 @@ function getMenuIcon(menuKey: string, width: number = 16, height: number = 16, c
return <Server width={width} height={height} className={className} />
case 'cron':
return <Clock width={width} height={height} className={className} />
- case 'queue':
+ case 'queues':
return <SquareStack width={width} height={height} className={className} />
default:
return <IconMenuPlatform width={width} height={height} className={className} />
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
index 6c1479d9f0c..481c0c944a6 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
@@ -63,12 +63,12 @@ export const GLOBAL_MENU_ITEMS: GlobalMenuItems = [
href: '/guides/cron',
level: 'cron',
},
- // {
- // label: 'Queues',
- // icon: 'queue',
- // href: '/guides/queues',
- // level: 'queue',
- // },
+ {
+ label: 'Queues',
+ icon: 'queues',
+ href: '/guides/queues',
+ level: 'queues',
+ },
],
],
},
@@ -1146,6 +1146,25 @@ export const cron: NavMenuConstant = {
],
}
+export const queues: NavMenuConstant = {
+ icon: 'queues',
+ title: 'Queues',
+ url: '/guides/queues',
+ items: [
+ { name: 'Overview', url: '/guides/queues' },
+ {
+ name: 'Getting Started',
+ url: undefined,
+ items: [{ name: 'Quickstart', url: '/guides/queues/quickstart' }],
+ },
+ {
+ name: 'References',
+ url: undefined,
+ items: [{ name: 'API', url: '/guides/queues/api' }],
+ },
+ ],
+}
+
export const api: NavMenuConstant = {
icon: 'rest',
title: 'REST API',
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx
index 634fc00ecf1..fa77229f999 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx
@@ -16,6 +16,7 @@ enum MenuId {
Storage = 'storage',
Ai = 'ai',
Cron = 'cron',
+ Queues = 'queues',
Platform = 'platform',
Deployment = 'deployment',
MonitoringTroubleshooting = 'monitoring_troubleshooting',
@@ -78,6 +79,10 @@ const menus: Menu[] = [
id: MenuId.Graphql,
type: 'guide',
},
+ {
+ id: MenuId.Queues,
+ type: 'guide',
+ },
{
id: MenuId.Auth,
type: 'guide',
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.utils.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.utils.ts
index 5367a318ac8..94c31dd2b0d 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.utils.ts
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.utils.ts
@@ -129,6 +129,8 @@ export const getMenuId = (pathname: string | null) => {
return MenuId.MonitoringTroubleshooting
case pathname.startsWith('platform'):
return MenuId.Platform
+ case pathname.startsWith('queues'):
+ return MenuId.Queues
case pathname.startsWith('realtime'):
return MenuId.Realtime
case pathname.startsWith('resources'):
diff --git a/apps/docs/content/guides/queues.mdx b/apps/docs/content/guides/queues.mdx
new file mode 100644
index 00000000000..8130a357edc
--- /dev/null
+++ b/apps/docs/content/guides/queues.mdx
@@ -0,0 +1,34 @@
+---
+title: Supabase Queues
+subtitle: 'Durable Message Queues with Guaranteed Delivery in Postgres'
+---
+
+Supabase Queues is a Postgres-native durable Message Queue system with guaranteed delivery built on the [pgmq database extension](https://github.com/tembo-io/pgmq). It offers developers a seamless way to persist and process Messages in the background while improving the resiliency and scalability of their applications and services.
+
+Queues couples the reliability of Postgres with the simplicity Supabase's platform and developer experience, enabling developers to manage Background Tasks with zero configuration.
+
+## Features
+
+- **Postgres Native**
+ <br />
+ Built on top of the `pgmq` database extension, create and manage Queues with any Postgres tooling.
+- **Guaranteed Message Delivery**
+ <br />
+ Messages added to Queues are guaranteed to be delivered to your consumers.
+- **Exactly Once Message Delivery**
+ <br />A Message is delivered exactly once to a consumer within a customizable visibility window.
+- **Message Durability and Archival**
+ <br />
+ Messages are stored in Postgres and you can choose to archive them for analytical or auditing purposes.
+- **Granular Authorization**
+ <br />
+ Control client-side consumer access to Queues with API permissions and Row Level Security (RLS) policies.
+- **Queue Management and Monitoring**
+ <br />
+ Create, manage, and monitor Queues and Messages in the Supabase Dashboard.
+
+## Resources
+
+- [Quickstart](/docs/guides/queues/quickstart)
+- [API Reference](/docs/guides/queues/api)
+- [`pgmq` GitHub Repository](https://github.com/tembo-io/pgmq)
diff --git a/apps/docs/content/guides/queues/api.mdx b/apps/docs/content/guides/queues/api.mdx
new file mode 100644
index 00000000000..01b1aed2688
--- /dev/null
+++ b/apps/docs/content/guides/queues/api.mdx
@@ -0,0 +1,62 @@
+---
+title: API
+---
+
+{/* <!-- vale off --> */}
+When you create a Queue in Supabase, you can choose to create helper database functions in the `pgmq_public` schema. This schema exposes operations to manage Queue Messages to consumers client-side, but does not expose functions for creating or dropping Queues.
+
+Database functions in `pgmq_public` can be exposed via Supabase Data API so consumers client-side can call them. Visit the [Quickstart](/docs/guides/queues/quickstart) for an example.
+
+## `pgmq_public.pop(queue_name)`
+
+Retrieves the next available message and deletes it from the specified Queue.
+
+- `queue_name` (text): Queue name
+
+---
+
+### `pgmq_public.send(queue_name, message, sleep_seconds)`
+
+Adds a Message to the specified Queue, optionally delaying its visibility to all consumers by a number of seconds.
+
+- `queue_name` (text): Queue name
+- `message` (jsonb): Message payload to send
+- `sleep_seconds` (integer, optional): Delay message visibility by specified seconds. Defaults to 0
+
+---
+
+### `pgmq_public.send_batch(queue_name, messages, sleep_seconds)`
+
+Adds a batch of Messages to the specified Queue, optionally delaying their availability to all consumers by a number of seconds.
+
+- `queue_name` (text): Queue name
+- `messages` (jsonb[]): Array of message payloads to send
+- `sleep_seconds` (integer, optional): Delay messages visibility by specified seconds. Defaults to 0
+
+---
+
+### `pgmq_public.archive(queue_name, message_id)`
+
+Archives a Message by moving it from the Queue table to the Queue's archive table.
+
+- `queue_name` (text): Queue name
+- `message_id` (bigint): ID of the Message to archive
+
+---
+
+### `pgmq_public.delete(queue_name, message_id)`
+
+Permanently deletes a Message from the specified Queue.
+
+- `queue_name` (text): Queue name
+- `message_id` (bigint): ID of the Message to delete
+
+---
+
+### `pgmq_public.read(queue_name, sleep_seconds, n)`
+
+Reads up to "n" Messages from the specified Queue with an optional "sleep_seconds" (visibility timeout).
+
+- `queue_name` (text): Queue name
+- `sleep_seconds` (integer): Visibility timeout in seconds
+- `n` (integer): Maximum number of Messages to read
diff --git a/apps/docs/content/guides/queues/quickstart.mdx b/apps/docs/content/guides/queues/quickstart.mdx
new file mode 100644
index 00000000000..426f057ea6c
--- /dev/null
+++ b/apps/docs/content/guides/queues/quickstart.mdx
@@ -0,0 +1,195 @@
+---
+title: Quickstart
+subtitle: 'Learn how to use Supabase Queues to add and read messages'
+---
+
+{/* <!-- vale off --> */}
+This guide is an introduction to interacting with Supabase Queues via the Dashboard and official client library. Check out [Queues API Reference](/docs/guides/queues/api) for more details on our API.
+
+## Concepts
+
+Supabase Queues is a pull-based Message Queue consisting of three main components: Queues, Messages, and Queue Types.
+
+### Pull-Based Queue
+
+A pull-based Queue is a Message storage and delivery system where consumers actively fetch Messages when they're ready to process them - similar to constantly refreshing a webpage to display the latest updates. Our pull-based Queues process Messages in a First-In-First-Out (FIFO) manner without priority levels.
+
+### Message
+
+A Message in a Queue is a json object that is stored until a consumer explicitly processes and removes it, like a task waiting in a to-do list until someone checks and completes it.
+
+### Queue Types
+
+Supabase Queues offers three types of Queues:
+
+- **Basic Queue**: A durable Queue that stores Messages in a logged table.
+- **Unlogged Queue**: A transient Queue that stores Messages in an unlogged table for better performance but may result in loss of Queue Messages.
+
+- **Partitioned Queue** (_Coming Soon_): A durable and scalable Queue that stores Messages in multiple table partitions for better performance.
+
+## Create Queues
+
+To get started, navigate to the [Supabase Queues](/dashboard/project/_/integrations/queues/overview) Postgres Module under Integrations in the Dashboard and enable the `pgmq` extension.
+
+<Admonition type="note">
+
+`pgmq` extension is available in Postgres version 15.6.1.143 or later.
+
+</Admonition>
+
+<Image
+ alt="Supabase Dashboard Integrations page, showing the Queues Postgres Module"
+ src={{
+ dark: '/docs/img/queues-quickstart-install.png',
+ light: '/docs/img/queues-quickstart-install.png',
+ }}
+/>
+
+On the [Queues page](/dashboard/project/_/integrations/queues/queues):
+
+- Click **Add a new queue** button
+
+<Admonition type="note">
+
+If you've already created a Queue click the **Create a queue** button instead.
+
+</Admonition>
+
+- Name your queue
+
+<Admonition type="note">
+
+Queue names can only be lowercase and hyphens and underscores are permitted.
+
+</Admonition>
+
+- Select your [Queue Type](#queue-types)
+
+<Image
+ alt="Create a Queue from the Supabase Dashboard"
+ src={{
+ dark: '/docs/img/queues-quickstart-create.png',
+ light: '/docs/img/queues-quickstart-create.png',
+ }}
+ zoomable
+ className="max-w-lg !mx-auto"
+/>
+
+### What happens when you create a queue?
+
+Every new Queue creates two tables in the `pgmq` schema. These tables are `pgmq.q_<queue_name>` to store and process active messages and `pgmq.a_<queue_name>` to store any archived messages.
+
+A "Basic Queue" will create `pgmq.q_<queue_name>` and `pgmq.a_<queue_name>` tables as logged tables.
+
+However, an "Unlogged Queue" will create `pgmq.q_<queue_name>` as an unlogged table for better performance while sacrificing durability. The `pgmq.a_<queue_name>` table will still be created as a logged table so your archived messages remain safe and secure.
+
+## Expose Queues to client-side consumers
+
+Queues, by default, are not exposed over Supabase Data API and are only accessible via Postgres clients.
+
+However, you may grant client-side consumers access to your Queues by enabling the Supabase Data API and granting permissions to the Queues API, which is a collection of database functions in the `pgmq_public` schema that wraps the database functions in the `pgmq` schema.
+
+This is to prevent direct access to the `pgmq` schema and its tables (RLS is not enabled by default on any tables) and database functions.
+
+To get started, navigate to the Queues [Settings page](/dashboard/project/_/integrations/queues/settings) and toggle on “Expose Queues via PostgREST”. Once enabled, Supabase creates and exposes a `pgmq_public` schema containing database function wrappers to a subset of `pgmq`'s database functions.
+
+<Image
+ alt="Screenshot of Queues settings with toggle to expose to PostgREST"
+ src={{
+ dark: '/docs/img/queues-quickstart-settings.png',
+ light: '/docs/img/queues-quickstart-settings.png',
+ }}
+/>
+
+### Enable RLS on your tables in `pgmq` schema
+
+For security purposes, you must enable Row Level Security (RLS) on all Queue tables (all tables in `pgmq` schema that begin with `q_`) if the Data API is enabled.
+
+You’ll want to create RLS policies for any Queues you want your client-side consumers to interact with.
+
+<Image
+ alt="Screenshot of creating an RLS policy from the Queues settings"
+ src={{
+ dark: '/docs/img/queues-quickstart-rls.png',
+ light: '/docs/img/queues-quickstart-rls.png',
+ }}
+/>
+
+### Grant permissions to `pgmq_public` database functions
+
+On top of enabling RLS and writing RLS policies on the underlying Queue tables, you must grant the correct permissions to the `pgmq_public` database functions for each Data API role.
+
+The permissions required for each Queue API database function:
+
+| **Operations** | **Permissions Required** |
+| ------------------- | ------------------------ |
+| `send` `send_batch` | `Select` `Insert` |
+| `read` `pop` | `Select` `Update` |
+| `archive` `delete` | `Select` `Delete` |
+
+<Image
+ alt="Screenshot of configuring API access for roles from the Queues settings"
+ src={{
+ dark: '/docs/img/queues-quickstart-roles.png',
+ light: '/docs/img/queues-quickstart-roles-light.png',
+ }}
+/>
+
+<Admonition type="note">
+
+`postgres` and `service_role` roles should never be exposed client-side.
+
+</Admonition>
+
+### Enqueuing and Dequeuing Messages
+
+Once your Queue has been created, you can begin enqueuing and dequeuing Messages.
+
+Here's a TypeScript example using the official Supabase client library:
+
+```tsx
+import { createClient } from '@supabase/supabase-js'
+
+const supabaseUrl = 'supabaseURL'
+const supabaseKey = 'supabaseKey'
+
+const supabase = createClient(supabaseUrl, supabaseKey)
+
+const QueuesTest: React.FC = () => {
+ //Add a Message
+ const sendToQueue = async () => {
+ const result = await supabase.rpc('send', {
+ queue_name: 'foo',
+ message: { hello: 'world' },
+ sleep_seconds: 30,
+ })
+ console.log(result)
+ }
+
+ //Dequeue Message
+ const popFromQueue = async () => {
+ const result = await supabase.rpc('pop', { queue_name: 'foo' })
+ console.log(result)
+ }
+
+ return (
+ <div className="p-6">
+ <h2 className="text-2xl font-bold mb-4">Queue Test Component</h2>
+ <button
+ onClick={sendToQueue}
+ className="bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-600 mr-4"
+ >
+ Add Message
+ </button>
+ <button
+ onClick={popFromQueue}
+ className="bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-600"
+ >
+ Pop Message
+ </button>
+ </div>
+ )
+}
+
+export default QueuesTest
+```
diff --git a/apps/docs/features/docs/GuidesMdx.utils.tsx b/apps/docs/features/docs/GuidesMdx.utils.tsx
index aaef7455e70..1c8b28a4282 100644
--- a/apps/docs/features/docs/GuidesMdx.utils.tsx
+++ b/apps/docs/features/docs/GuidesMdx.utils.tsx
@@ -35,6 +35,7 @@ const PUBLISHED_SECTIONS = [
'local-development',
'monitoring-troubleshooting',
'platform',
+ 'queues',
'realtime',
'resources',
'self-hosting',
diff --git a/apps/docs/layouts/MainSkeleton.tsx b/apps/docs/layouts/MainSkeleton.tsx
index dbee0c2a538..3eaf636e930 100644
--- a/apps/docs/layouts/MainSkeleton.tsx
+++ b/apps/docs/layouts/MainSkeleton.tsx
@@ -34,6 +34,10 @@ const levelsData = {
icon: 'cron',
name: 'Cron',
},
+ queues: {
+ icon: 'queues',
+ name: 'Queues',
+ },
api: {
icon: 'rest',
name: 'REST API',
diff --git a/apps/docs/public/img/queues-quickstart-create.png b/apps/docs/public/img/queues-quickstart-create.png
new file mode 100644
index 00000000000..30ed87e8856
Binary files /dev/null and b/apps/docs/public/img/queues-quickstart-create.png differ
diff --git a/apps/docs/public/img/queues-quickstart-install.png b/apps/docs/public/img/queues-quickstart-install.png
new file mode 100644
index 00000000000..6ca44f07e1c
Binary files /dev/null and b/apps/docs/public/img/queues-quickstart-install.png differ
diff --git a/apps/docs/public/img/queues-quickstart-rls.png b/apps/docs/public/img/queues-quickstart-rls.png
new file mode 100644
index 00000000000..ed112b31b7f
Binary files /dev/null and b/apps/docs/public/img/queues-quickstart-rls.png differ
diff --git a/apps/docs/public/img/queues-quickstart-roles-light.png b/apps/docs/public/img/queues-quickstart-roles-light.png
new file mode 100644
index 00000000000..e43792164a9
Binary files /dev/null and b/apps/docs/public/img/queues-quickstart-roles-light.png differ
diff --git a/apps/docs/public/img/queues-quickstart-roles.png b/apps/docs/public/img/queues-quickstart-roles.png
new file mode 100644
index 00000000000..ae72156c430
Binary files /dev/null and b/apps/docs/public/img/queues-quickstart-roles.png differ
diff --git a/apps/docs/public/img/queues-quickstart-settings.png b/apps/docs/public/img/queues-quickstart-settings.png
new file mode 100644
index 00000000000..a8138e6c5f1
Binary files /dev/null and b/apps/docs/public/img/queues-quickstart-settings.png differ
diff --git a/apps/studio/static-data/integrations/queues/overview.md b/apps/studio/static-data/integrations/queues/overview.md
index 09bebecd8c3..0ec0a1b590e 100644
--- a/apps/studio/static-data/integrations/queues/overview.md
+++ b/apps/studio/static-data/integrations/queues/overview.md
@@ -1 +1 @@
-Queues uses the `pgmq` Postgres extension, which is a lightweight message queue like [AWS SQS](https://aws.amazon.com/sqs/) and [RSMQ](https://github.com/smrchy/rsmq) but on Postgres.
+Queues uses the `pgmq` Postgres extension, which is a durable Message Queue, like [AWS SQS](https://aws.amazon.com/sqs/) and [RSMQ](https://github.com/smrchy/rsmq), with guaranteed delivery in Postgres.
diff --git a/apps/www/_blog/2024-12-04-supabase-cron.mdx b/apps/www/_blog/2024-12-04-supabase-cron.mdx
index 9566886fa96..972e7412967 100644
--- a/apps/www/_blog/2024-12-04-supabase-cron.mdx
+++ b/apps/www/_blog/2024-12-04-supabase-cron.mdx
@@ -35,7 +35,7 @@ Supabase Cron is built on the powerful [`pg_cron`](https://github.com/citusdata/
It's a Supabase policy to [support existing tools](https://supabase.com/docs/guides/getting-started/architecture#support-existing-tools) wherever possible, and the Citus Data team have generously licensed their extension with the OSI-compatible [PostgreSQL license](https://github.com/citusdata/pg_cron?tab=PostgreSQL-1-ov-file).
-We're very thankful to all the contributors and we look forward to continue working with the community.
+We're very thankful to all the contributors and we look forward to our continued work with the community.
</Admonition>
diff --git a/apps/www/_blog/2024-12-05-supabase-queues.mdx b/apps/www/_blog/2024-12-05-supabase-queues.mdx
new file mode 100644
index 00000000000..83d4723c833
--- /dev/null
+++ b/apps/www/_blog/2024-12-05-supabase-queues.mdx
@@ -0,0 +1,221 @@
+---
+title: 'Supabase Queues'
+description: Durable Message Queues with Guaranteed Delivery in Postgres
+author: ivasilov,oli_rice
+image: launch-week-13/day-4-supabase-queues/og.png
+thumb: launch-week-13/day-4-supabase-queues/thumb.png
+categories:
+ - developers
+ - postgres
+tags:
+ - queues
+ - postgres
+date: '2024-12-05T00:00:02'
+toc_depth: 3
+launchweek: '13'
+---
+
+Today we're releasing [Supabase Queues](/modules/queues), for durable background task processing.
+
+Supabase Queues is a Postgres-native, durable Message Queue with guaranteed delivery, improving the scalability and resiliency of your applications. It's designed to work seamlessly with the entire Supabase platform.
+
+<div className="video-container mb-8">
+ <iframe
+ className="w-full"
+ src="https://www.youtube-nocookie.com/embed/UEwfaElBnZk"
+ title="Introducing Supabase Cron"
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; fullscreen; gyroscope; picture-in-picture; web-share"
+ allowfullscreen
+ />
+</div>
+
+<Admonition>
+
+Supabase Queues is built on the [pgmq](https://github.com/tembo-io/pgmq) extension by the team at [Tembo](https://github.com/tembo-io).
+
+It's a Supabase policy to [support existing tools](/docs/guides/getting-started/architecture#support-existing-tools) wherever possible, and the Tembo team have generously licensed their extension with the OSI-compatible [PostgreSQL license](https://github.com/tembo-io/pgmq?tab=PostgreSQL-1-ov-file).
+
+We're very thankful to all the contributors and we look forward to working with the Tembo community.
+
+</Admonition>
+
+## Supabase Queues Features
+
+1. **Postgres Native**: Built on top of the open source `pgmq` database extension, create and manage Queues with any Postgres tooling.
+1. **Granular Authorization**: Control client-side consumer access to Queues with API permissions and Row Level Security (RLS) policies.
+1. **Guaranteed Message Delivery**: Messages added to Queues are guaranteed to be delivered to your consumers.
+1. **Exactly Once Message Delivery**: A Message is delivered exactly once to a consumer within a customizable visibility window.
+1. **Queue Management and Monitoring**: Create, manage, and monitor Queues and Messages in the Supabase Dashboard.
+1. **Message Durability and Archival**: Messages are stored in Postgres and you can choose to archive them for analytical or auditing purposes.
+
+## Do You Need Queues?
+
+A Queue is used to manage and process tasks asynchronously. Typically, you use a Queue for long-running tasks to ensure that your application is robust.
+
+**For example, sending emails:**
+
+Let's say you want to send a welcome email to a user after they register on your website. Instead of sending the email immediately within the registration process - which could slow down the user's experience - you can place the “email task” into a Queue.A separate email service can then process this task, sending the email without affecting the registration flow. Even better: if the email bounces then the task could "reappear" in the Queue to get processed again.
+
+In this scenario, Queues have improved your application's _performance_ and _resilience_. Other cases include:
+
+- **Process tasks asynchronously**: offload time-consuming operations, like sending emails, processing images, and generating embeddings.
+- **Communication between services:** decouple your services by passing messages through a central queue.
+- **Load Balancing**: Distribute tasks evenly across multiple workers.
+
+## Creating Queues
+
+Queues can be created in the Dashboard or using SQL / database migrations.
+
+<Admonition>
+ For this section we'll focus on the Dashboard. You can refer to the
+ [documentation](/docs/guides/queues/api) for SQL.
+</Admonition>
+
+### Types of Queues
+
+There are several types of queues available:
+
+<Img
+ alt="Queue types"
+ src={{
+ dark: '/images/blog/launch-week-13/day-4-supabase-queues/queue-types.jpg',
+ light: '/images/blog/launch-week-13/day-4-supabase-queues/queue-types-light.jpg',
+ }}
+/>
+
+**Basic Queues**: Simple, reliable queues with core functionality, ideal for most use cases. Messages are stored and processed within Postgres using standard transactional guarantees.
+
+**Unlogged Queues**: Optimized for performance, unlogged queues avoid writing messages to disk, making them faster but less durable in case of a database crash. Suitable for transient or less critical workloads.
+
+**Partitioned Queues** (coming soon): Designed for high throughput and scalability, partitioned queues distribute messages across multiple partitions, enabling parallel processing and more efficient load handling.
+
+### Queues with Postgres Row-Level Security
+
+Supabase Queues are compatible with Postgres Row-Level Security (RLS), providing fine-grained access control to Messages. RLS Policies restrict which users or roles can insert, select, update, or delete messages in specific queues.
+
+## Adding Messages
+
+Once your Queue is configured you can begin adding Messages.
+
+<Img
+ alt="Add a message"
+ src={{
+ dark: '/images/blog/launch-week-13/day-4-supabase-queues/add-message.jpg',
+ light: '/images/blog/launch-week-13/day-4-supabase-queues/add-message-light.jpg',
+ }}
+/>
+
+### Adding Messages from the Dashboard
+
+Let's create a new Basic Queue and add a Message.
+
+<Img
+ alt="Create a queue"
+ src={{
+ dark: '/images/blog/launch-week-13/day-4-supabase-queues/create-a-queue.jpg',
+ light: '/images/blog/launch-week-13/day-4-supabase-queues/create-a-queue-light.jpg',
+ }}
+/>
+
+<Img
+ alt="Add a message"
+ src={{
+ dark: '/images/blog/launch-week-13/day-4-supabase-queues/add-message.jpg',
+ light: '/images/blog/launch-week-13/day-4-supabase-queues/add-message-light.jpg',
+ }}
+/>
+
+<Img
+ alt="Message details"
+ src={{
+ dark: '/images/blog/launch-week-13/day-4-supabase-queues/add-message-modal.jpg',
+ light: '/images/blog/launch-week-13/day-4-supabase-queues/add-message-modal-light.jpg',
+ }}
+/>
+
+### Adding messages from the server
+
+If you're [connecting](/docs/guides/database/connecting-to-postgres) to your Postgres database from a server, you can add messages using SQL from any Postgres client:
+
+```sql
+select * from pgmq.send(
+ queue_name => 'foo',
+ msg => '{ "hello": "world" }',
+);
+```
+
+### Adding messages from the client
+
+We have provided several functions that can be invoked from the [client libraries](/docs#client-libraries) if you need to add messages from a browser or mobile app. For example:
+
+```tsx
+import { createClient } from '@supabase/supabase-js'
+
+const url = 'SUPABASE_URL'
+const key = 'SUPABASE_ANON_KEY'
+
+const queues = createClient(url, key, {
+ db: { schema: 'pgmq_public' },
+})
+
+const { data, error } = await queues.rpc('send', {
+ queue_name: 'foo',
+ message: { hello: 'world' },
+})
+
+console.log('Message: ', data)
+```
+
+For security, this feature is [disabled by default](#security-and-permissions). There are several functions defined in the `pgmq_public` schema: `send`, `send_batch`, `read`, `pop`, `archive`, `delete`. You can find more details in the [docs](/docs/guides/queues/api).
+
+## Security and Permissions
+
+By default, Queues are only accessible via SQL and not exposed over the Supabase Data API. You can manage this in the Data API settings by [exposing the pgmq_public schema](/docs/guides/api/using-custom-schemas). If you expose this schema, you must use [Row Level Security](/docs/guides/database/postgres/row-level-security) (RLS) to manage access to your queues.
+
+Beyond RLS, Postgres roles can be granted granular permissions to interact with Queues.
+
+For example, the following permissions allow authenticated users can fully manipulate messages, whereas anonymous users can only add/retrieve messages:
+
+<Img
+ alt="Queue permissions"
+ src={{
+ dark: '/images/blog/launch-week-13/day-4-supabase-queues/permissions.jpg',
+ light: '/images/blog/launch-week-13/day-4-supabase-queues/permissions-light.jpg',
+ }}
+/>
+
+The `postgres` and `service_role` roles receive permissions by default and should remain enabled for server-side operations.
+
+## Monitoring Queues and Messages
+
+You can use the Dashboard to inspect your Messages, including: status, number of retries, and payload. You can also postpone, archive, or delete messages at any time.
+
+From the Queues page, just click on a Queue to inspect it. From there you can click on a message to see more details:
+
+<Img
+ alt="Message details"
+ src={{
+ dark: '/images/blog/launch-week-13/day-4-supabase-queues/message-detail.jpg',
+ light: '/images/blog/launch-week-13/day-4-supabase-queues/message-detail-light.jpg',
+ }}
+/>
+
+## Try Supabase Queues Today
+
+1. Visit the [Integrations page](https://supabase.com/dashboard/project/_/integrations) in your project.
+2. Enable the **Queues** Postgres Module.
+3. Create your first Queue.
+
+<Img
+ alt="Enable queues"
+ src={{
+ dark: '/images/blog/launch-week-13/day-4-supabase-queues/integrations.jpg',
+ light: '/images/blog/launch-week-13/day-4-supabase-queues/integrations-light.jpg',
+ }}
+/>
+
+## Postgres for Everything
+
+Using Postgres for your Queue system keeps your stack lean and familiar. You can add Messages to Queues within the same transaction that modifies related data, preventing inconsistencies and reducing the need for additional coordination. Postgres' robust indexing, JSONB support, and partitioning also enable scalable, high-performance queue management directly in your database.
+
+By eliminating the need for separate infrastructure like RabbitMQ or Kafka, you reduce costs, streamline deployments, and leverage existing Postgres tools for monitoring, backups, and security. Features like Row-Level Security, rich SQL querying, and built-in archiving make Postgres a powerful, unified solution for both data storage and messaging.
diff --git a/apps/www/components/Hero/Hero.tsx b/apps/www/components/Hero/Hero.tsx
index e1cb7705e89..e967828cd82 100644
--- a/apps/www/components/Hero/Hero.tsx
+++ b/apps/www/components/Hero/Hero.tsx
@@ -25,9 +25,9 @@ const Hero = () => {
<div className="flex flex-col items-center">
<div className="z-40 w-full flex justify-center -mt-4 lg:-mt-12 mb-8">
<AnnouncementBadge
- url="/launch-week#day-3"
- badge="LW13: Day 3"
- announcement="Supabase Cron"
+ url="/launch-week#day-4"
+ badge="LW13: Day 4"
+ announcement="Supabase Queues"
/>
</div>
<h1 className="text-foreground text-4xl sm:text-5xl sm:leading-none lg:text-7xl">
diff --git a/apps/www/components/LaunchWeek/13/Releases/data/lw13_build_stage.tsx b/apps/www/components/LaunchWeek/13/Releases/data/lw13_build_stage.tsx
index 2d77c11f824..2661b570bd1 100644
--- a/apps/www/components/LaunchWeek/13/Releases/data/lw13_build_stage.tsx
+++ b/apps/www/components/LaunchWeek/13/Releases/data/lw13_build_stage.tsx
@@ -99,12 +99,4 @@ export const days: AdventDay[] = [
links: [],
icon: null,
},
- {
- title: '',
- description: '',
- id: '',
- is_shipped: false,
- links: [],
- icon: null,
- },
]
diff --git a/apps/www/components/LaunchWeek/13/Releases/data/lw13_data.tsx b/apps/www/components/LaunchWeek/13/Releases/data/lw13_data.tsx
index 73ff4bd857b..723ea7bcb58 100644
--- a/apps/www/components/LaunchWeek/13/Releases/data/lw13_data.tsx
+++ b/apps/www/components/LaunchWeek/13/Releases/data/lw13_data.tsx
@@ -143,7 +143,7 @@ const days: (isDark?: boolean) => WeekDayProps[] = (isDark = true) => [
d: 3,
dd: 'Wed',
shipped: true,
- isToday: true,
+ isToday: false,
hasCountdown: false,
blog: '/blog/supabase-cron',
date: '4 December',
@@ -183,25 +183,42 @@ const days: (isDark?: boolean) => WeekDayProps[] = (isDark = true) => [
id: 'day-4',
d: 4,
dd: 'Thu',
- shipped: false,
- isToday: false,
- hasCountdown: true,
- blog: '',
+ shipped: true,
+ isToday: true,
+ hasCountdown: false,
+ blog: '/blog/supabase-queues',
date: '5 December',
published_at: '2024-12-05T08:00:00.000-07:00',
- title: '',
- description: null,
+ title: 'Supabase Queues',
+ description: (
+ <>
+ Supabase Queues:
+ <br className="hidden sm:block" /> Durable Message Queues with Guaranteed Delivery
+ </>
+ ),
links: [
- // {
- // type: 'video',
- // href: '',
- // },
+ {
+ type: 'video',
+ href: 'UEwfaElBnZk',
+ },
{
type: 'xSpace',
href: 'https://twitter.com/i/spaces/1ynKODOwObyGR',
},
],
- steps: [],
+ steps: [
+ {
+ title: '',
+ bg_layers: [
+ {
+ img: '/images/launchweek/13/releases/d4/d4-queues-dark.png',
+ mobileImg: '/images/launchweek/13/releases/d4/d4-queues-mobile-dark.png',
+ imgLight: '/images/launchweek/13/releases/d4/d4-queues-light.png',
+ mobileImgLight: '/images/launchweek/13/releases/d4/d4-queues-mobile-light.png',
+ },
+ ],
+ },
+ ],
},
{
id: 'day-5',
@@ -209,7 +226,7 @@ const days: (isDark?: boolean) => WeekDayProps[] = (isDark = true) => [
dd: 'Fri',
shipped: false,
isToday: false,
- hasCountdown: false,
+ hasCountdown: true,
blog: '',
date: '6 December',
published_at: '2024-12-06T08:00:00.000-07:00',
diff --git a/apps/www/components/Modules/Cron/CronSQLSection.tsx b/apps/www/components/Modules/Cron/CronSQLSection.tsx
index 792d695ba22..d7023d0d793 100644
--- a/apps/www/components/Modules/Cron/CronSQLSection.tsx
+++ b/apps/www/components/Modules/Cron/CronSQLSection.tsx
@@ -5,7 +5,7 @@ import { cn, TextLink } from 'ui'
import SectionContainer from '~/components/Layouts/SectionContainer'
import CodeWindow from '~/components/CodeWindow'
-const ciCode = `
+const codeSnippet = `
select
cron.schedule(
'call-hello-world-every-5-minutes',
@@ -30,7 +30,7 @@ const CronSQLSection: FC<Props> = (props) => {
<SectionContainer
id={props.id}
className={cn(
- 'mx-auto lg:max-w-6xl flex flex-col md:flex-row justify-between items-center gap-4 md:gap-8',
+ 'mx-auto lg:max-w-6xl flex flex-col md:flex-row justify-between items-center gap-8',
props.className
)}
>
@@ -45,7 +45,7 @@ const CronSQLSection: FC<Props> = (props) => {
<ul className="w-full flex-grow rounded-lg max-w-md">
<div className="w-full h-full relative">
<CodeWindow
- code={ciCode}
+ code={codeSnippet}
lang="sql"
className="
h-full xl:!text-lg
diff --git a/apps/www/components/Modules/ModulesNav.tsx b/apps/www/components/Modules/ModulesNav.tsx
index 215119fed6c..ece566ecb2e 100644
--- a/apps/www/components/Modules/ModulesNav.tsx
+++ b/apps/www/components/Modules/ModulesNav.tsx
@@ -1,6 +1,7 @@
+import React from 'react'
+import { cn, IconDocumentation } from 'ui'
import Link from 'next/link'
import { PRODUCT_MODULES_NAMES } from 'shared-data/products'
-import { cn, IconDocumentation } from 'ui'
import SectionContainer from '~/components/Layouts/SectionContainer'
import ProductModules from '~/data/ProductModules'
diff --git a/apps/www/components/Modules/Cron/ImageRightSection.tsx b/apps/www/components/Modules/Queues/QueuesAPISection.tsx
similarity index 51%
rename from apps/www/components/Modules/Cron/ImageRightSection.tsx
rename to apps/www/components/Modules/Queues/QueuesAPISection.tsx
index bf31a147698..aa6d3761d2e 100644
--- a/apps/www/components/Modules/Cron/ImageRightSection.tsx
+++ b/apps/www/components/Modules/Queues/QueuesAPISection.tsx
@@ -2,13 +2,28 @@ import React, { FC } from 'react'
import { cn, TextLink } from 'ui'
import SectionContainer from '~/components/Layouts/SectionContainer'
+import CodeWindow from '~/components/CodeWindow'
+
+const codeSnippet = `const queues = createClient(supabaseUrl, supabaseKey, {
+ db: { schema: "pgmq_public" },
+ }
+);
+
+const send = await queues.rpc("send", {
+ queue_name: "subscribers",
+ message: { "email": "[email protected]" }
+});
+
+
+const message = await queues.rpc("pop", {
+ queue_name: "subscribers"
+});`
interface Props {
id: string
label: string | JSX.Element
heading: string | JSX.Element
subheading: string | JSX.Element
- image?: any
className?: string
cta?: {
label: string
@@ -16,28 +31,36 @@ interface Props {
}
}
-const ImageRightSection: FC<Props> = (props) => {
+const QueuesAPISection: FC<Props> = (props) => {
return (
<SectionContainer
id={props.id}
className={cn(
- 'mx-auto lg:max-w-6xl flex flex-col md:flex-row justify-between items-center gap-4 md:gap-8',
+ 'mx-auto lg:max-w-6xl flex flex-col md:flex-row justify-between items-center gap-8',
props.className
)}
>
<div className="flex flex-col gap-2 max-w-md">
- {props.label && <span className="label">{props.label}</span>}
+ <span className="label">{props.label}</span>
<h2 className="h2 !m-0">{props.heading}</h2>
<p className="p !text-foreground-lighter">{props.subheading}</p>
{props.cta && (
<TextLink hasChevron label={props.cta.label} url={props.cta.url} className="mt-2" />
)}
</div>
- <div className="w-full max-w-md md:max-w-xl h-full object-cover flex-grow bg-200 shadow-lg border rounded-lg overflow-hidden">
- {props.image}
+ <div className="w-full flex-grow rounded-lg max-w-lg">
+ <CodeWindow
+ code={codeSnippet}
+ lang="js"
+ className="
+ h-full xl:!text-lg
+ [&_.synthax-highlighter]:!pb-8
+ [&_.synthax-highlighter]:xl:min-h-[240px]
+ "
+ />
</div>
</SectionContainer>
)
}
-export default ImageRightSection
+export default QueuesAPISection
diff --git a/apps/www/components/Modules/Queues/QueuesSQLSection.tsx b/apps/www/components/Modules/Queues/QueuesSQLSection.tsx
new file mode 100644
index 00000000000..e99680ca5e5
--- /dev/null
+++ b/apps/www/components/Modules/Queues/QueuesSQLSection.tsx
@@ -0,0 +1,63 @@
+import React, { FC } from 'react'
+
+import { cn, TextLink } from 'ui'
+import SectionContainer from '~/components/Layouts/SectionContainer'
+import CodeWindow from '~/components/CodeWindow'
+
+const codeSnippet = `
+select pgmq.create('my_special_queue');
+
+select * from pgmq.send(
+ queue_name => 'my_special_queue',
+ msg => '{"hello": "world"}',
+);
+
+select * from pgmq.pop('my_special_queue');
+`
+interface Props {
+ id: string
+ label: string | JSX.Element
+ heading: string | JSX.Element
+ subheading: string | JSX.Element
+ className?: string
+ cta?: {
+ label: string
+ url: string
+ }
+}
+
+const QueuesSQLSection: FC<Props> = (props) => {
+ return (
+ <SectionContainer
+ id={props.id}
+ className={cn(
+ 'mx-auto lg:max-w-6xl flex flex-col md:flex-row justify-between items-center gap-8',
+ props.className
+ )}
+ >
+ <ul className="w-full flex-grow rounded-lg max-w-md">
+ <div className="w-full h-full relative">
+ <CodeWindow
+ code={codeSnippet}
+ lang="sql"
+ className="
+ h-full xl:!text-lg
+ [&_.synthax-highlighter]:!pb-8
+ [&_.synthax-highlighter]:xl:min-h-[240px]
+ "
+ />
+ </div>
+ </ul>
+ <div className="flex order-first md:order-last flex-col gap-2 max-w-md">
+ <span className="label">{props.label}</span>
+ <h2 className="h2 !m-0">{props.heading}</h2>
+ <p className="p !text-foreground-lighter">{props.subheading}</p>
+ {props.cta && (
+ <TextLink hasChevron label={props.cta.label} url={props.cta.url} className="mt-2" />
+ )}
+ </div>
+ </SectionContainer>
+ )
+}
+
+export default QueuesSQLSection
diff --git a/apps/www/components/Sections/HighlightCards.tsx b/apps/www/components/Sections/HighlightCards.tsx
index 9debb68dad4..340ddb45b1c 100644
--- a/apps/www/components/Sections/HighlightCards.tsx
+++ b/apps/www/components/Sections/HighlightCards.tsx
@@ -4,7 +4,6 @@ import { INITIAL_BOTTOM, getAnimation } from '~/lib/animations'
import Panel from '~/components/Panel'
import SectionContainer from '~/components/Layouts/SectionContainer'
-import { cn } from 'ui'
interface Highlight {
image?: React.ReactNode
@@ -16,7 +15,6 @@ interface Highlight {
const HighlightCards = ({
highlights,
className,
- cols = 4,
}: {
highlights: Highlight[]
className?: string
@@ -25,12 +23,7 @@ const HighlightCards = ({
return (
<SectionContainer className={className}>
<LazyMotion features={domAnimation}>
- <div
- className={cn(
- 'grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-4',
- cols === 3 && 'xl:grid-cols-3'
- )}
- >
+ <div className="highlights-grid grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-4">
{highlights.map((highlight, i) => (
<HighlightCard highlight={highlight} index={i} key={highlight.title} />
))}
@@ -57,7 +50,7 @@ const HighlightCard = ({ highlight, index }: { highlight: Highlight; index: numb
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
animate={isInView ? animate : initial}
- className="will-change-transform h-full"
+ className="will-change-transform h-full highlight-card"
>
<Panel innerClassName="flex flex-col !bg-alternative" outerClassName="h-full">
{highlight.image && (
@@ -73,7 +66,7 @@ const HighlightCard = ({ highlight, index }: { highlight: Highlight; index: numb
)}
<div className="p-4 md:p-8">
{highlight.svg && (
- <div className="relative w-6 aspect-square mb-4 text-foreground-light">
+ <div className="relative w-6 aspect-square mb-2 md:mb-4 text-foreground-light">
{highlight.svg}
</div>
)}
diff --git a/apps/www/components/Modules/Cron/ImageLeftSection.tsx b/apps/www/components/Sections/ImageParagraphSection.tsx
similarity index 77%
rename from apps/www/components/Modules/Cron/ImageLeftSection.tsx
rename to apps/www/components/Sections/ImageParagraphSection.tsx
index 544cb5460a3..1c856a84c04 100644
--- a/apps/www/components/Modules/Cron/ImageLeftSection.tsx
+++ b/apps/www/components/Sections/ImageParagraphSection.tsx
@@ -14,6 +14,7 @@ interface Props {
label: string
url: string
}
+ reverse?: boolean
}
const ImageLeftSection: FC<Props> = (props) => {
@@ -21,14 +22,19 @@ const ImageLeftSection: FC<Props> = (props) => {
<SectionContainer
id={props.id}
className={cn(
- 'flex flex-col md:flex-row mx-auto lg:max-w-6xl justify-between items-center gap-4 md:gap-8',
+ 'flex flex-col md:flex-row mx-auto lg:max-w-6xl justify-between items-center gap-8',
props.className
)}
>
- <div className="w-full max-w-md h-full object-cover flex-grow bg-200 shadow-lg border rounded-lg overflow-hidden">
+ <div className="w-full max-w-md h-full object-cover flex-grow bg-200 shadow-lg border rounded-lg overflow-hidden image-container">
{props.image}
</div>
- <div className="flex order-first md:order-last flex-grow flex-col gap-2 max-w-md">
+ <div
+ className={cn(
+ 'flex order-first md:order-last flex-grow flex-col gap-2 max-w-md paragraph-container',
+ props.reverse && 'md:order-first'
+ )}
+ >
<span className="label">{props.label}</span>
<h2 className="h2 !m-0">{props.heading}</h2>
<p className="p !text-foreground-lighter">{props.subheading}</p>
diff --git a/apps/www/data/ProductModules.tsx b/apps/www/data/ProductModules.tsx
index 0cdfd65d196..b15abda1954 100644
--- a/apps/www/data/ProductModules.tsx
+++ b/apps/www/data/ProductModules.tsx
@@ -22,15 +22,23 @@ const ProductModules: ProductType = {
[PRODUCT_MODULES_SHORTNAMES.CRON]: {
name: PRODUCT_MODULES_NAMES.CRON,
icon: PRODUCT_MODULES['cron'].icon[24],
+ description: <>Schedule and manage recurring Jobs.</>,
+ description_short: 'Schedule and manage recurring Jobs',
+ label: '',
+ url: '/modules/cron',
+ },
+ [PRODUCT_MODULES_SHORTNAMES.QUEUES]: {
+ name: PRODUCT_MODULES_NAMES.QUEUES,
+ icon: PRODUCT_MODULES.queues.icon[24],
description: (
<>
- Integrate your favorite ML-models to{' '}
- <strong>store, index and search vector embeddings</strong>.
+ Native Postgres queuing solution for dedicated message queues with the simplicity of SQL and{' '}
+ zero additional infrastructure.
</>
),
- description_short: 'Schedule and manage recurring Jobs',
+ description_short: 'Durable Message Queues with guaranteed delivery',
label: '',
- url: '/modules/cron',
+ url: '/modules/queues',
},
}
diff --git a/apps/www/data/features.tsx b/apps/www/data/features.tsx
index 7be5528e54e..755b9ad9059 100644
--- a/apps/www/data/features.tsx
+++ b/apps/www/data/features.tsx
@@ -2049,7 +2049,7 @@ This feature is especially beneficial for Python developers looking to build rob
},
},
{
- title: 'Supabase Cron',
+ title: 'Cron',
subtitle: 'Schedule recurring Jobs in Postgres.',
description: `
Supabase Cron is a Postgres module designed to schedule recurring Jobs with cron syntax directly within your database. Seamlessly integrated into the Supabase ecosystem, it allows users to automate tasks like executing SQL snippets, calling Database Functions, triggering Supabase Edge Functions, or syncing with external systems via webhooks.
@@ -2104,4 +2104,29 @@ OrioleDB is a PostgreSQL storage extension built on its pluggable storage framew
availableOnSelfHosted: true,
},
},
+ {
+ title: 'Queues',
+ subtitle: 'Durable messages with guaranteed delivery.',
+ description: `
+Supabase Queues is a native Postgres-based message queue system built on the PGMQ extension, offering developers a seamless way to persist and guarantee delivery of messages, which improves the scalability and resiliency of horizontally deployed services.
+
+Supabase Queues provides the reliability of Postgres with the simplicity of Supabase's developer experience, enabling teams to manage queues without maintaining additional infrastructure.
+
+## Features:
+1. Battle-tested Infrastructure: Built on PGMQ with proven production deployments and active maintenance.
+2. Native PostgreSQL Integration: Zero additional infrastructure, transactional consistency, and high performance.
+3. Row Level Security Integration: Native PostgreSQL RLS support for granular access control.
+4. Visual Queue Management: Built-in dashboard for queue monitoring and management.
+5. Message Archival: Built-in support for archiving processed messages for audit trails.
+`,
+ icon: Database,
+ products: [PRODUCT_SHORTNAMES.DATABASE, ADDITIONAL_PRODUCTS.PLATFORM],
+ heroImage: 'https://www.youtube-nocookie.com/embed/UEwfaElBnZk',
+ docsUrl: 'https://supabase.com/docs/guides/queues',
+ slug: 'queues',
+ status: {
+ stage: PRODUCT_STAGES.PUBLIC_ALPHA,
+ availableOnSelfHosted: true,
+ },
+ },
]
diff --git a/apps/www/data/products/modules/cron.tsx b/apps/www/data/products/modules/cron.tsx
index 2f78847f4b5..d8262777de4 100644
--- a/apps/www/data/products/modules/cron.tsx
+++ b/apps/www/data/products/modules/cron.tsx
@@ -1,6 +1,6 @@
// import Image from 'next/image'
import { PRODUCT_MODULES } from 'shared-data/products'
-import BrowserFrame from '../../../components/BrowserFrame'
+import BrowserFrame from '~/components/BrowserFrame'
import { Image } from 'ui'
export default () => ({
@@ -30,8 +30,7 @@ export default () => ({
},
},
highlightsSection: {
- className: '!py-4',
- cols: 3,
+ className: '!py-4 [&_.highlights-grid]:xl:grid-cols-3',
highlights: [
{
title: 'Postgres Native',
@@ -164,8 +163,8 @@ export default () => ({
},
],
},
- video: {
- image: (
+ videoSection: {
+ video: (
<BrowserFrame
className="overflow-hidden lg:order-last bg-default w-full max-w-6xl mx-auto"
contentClassName="aspect-video border overflow-hidden rounded-lg"
@@ -191,6 +190,7 @@ export default () => ({
label: 'Start scheduling',
url: 'https://supabase.com/dashboard/project/_/integrations/cron/overview',
},
+ reverse: true,
},
section2: {
id: 'UI-Scheduling-Interface',
@@ -216,6 +216,7 @@ export default () => ({
label: 'Start scheduling',
url: 'https://supabase.com/dashboard/project/_/integrations/cron/overview',
},
+ className: 'md:!py-0',
},
section3: {
id: 'UI-Job-Observability',
@@ -237,6 +238,8 @@ export default () => ({
draggable={false}
/>
),
+ className: 'md:!pb-0 [&_.image-container]:md:max-w-xl',
+ reverse: true,
},
section4: {
id: 'extensible',
diff --git a/apps/www/data/products/modules/queues.tsx b/apps/www/data/products/modules/queues.tsx
new file mode 100644
index 00000000000..ae5253b07b6
--- /dev/null
+++ b/apps/www/data/products/modules/queues.tsx
@@ -0,0 +1,248 @@
+import { PRODUCT_MODULES } from 'shared-data/products'
+import BrowserFrame from '~/components/BrowserFrame'
+import { Image } from 'ui'
+
+export default () => ({
+ metaTitle: 'Supabase Queues | Durable Message Queues with Guaranteed Delivery',
+ metaDescription:
+ 'Postgres module that uses the pgmq database extension to manage Message Queues with guaranteed delivery.',
+ metaImage: '/images/modules/queues/og.png',
+ url: 'https://supabase.com/dashboard/project/_/integrations/queues/overview',
+ docsUrl: '/docs/guides/queues',
+ heroSection: {
+ title: 'Supabase Queues',
+ h1: <>Create and Manage Message Queues using Postgres</>,
+ subheader: (
+ <>
+ Supabase Queues is a Postgres module that uses the pgmq database extension to manage Message
+ Queues with guaranteed delivery. Manage your Queues using any Postgres tooling.
+ </>
+ ),
+ icon: PRODUCT_MODULES.queues.icon[24],
+ cta: {
+ label: 'Create your first Queue',
+ link: 'https://supabase.com/dashboard/project/_/integrations/queues/overview',
+ },
+ secondaryCta: {
+ label: 'Explore documentation',
+ link: '/docs/guides/queues',
+ },
+ className: '[&_h1]:max-w-2xl',
+ },
+ highlightsSection: {
+ className: `
+ !py-4
+ [&_.highlights-grid]:sm:grid-cols-2
+ [&_.highlight-card]:sm:col-span-1
+ [&_.highlight-card:nth-child(1)]:sm:col-span-2
+ [&_.highlights-grid]:lg:grid-cols-6
+ [&_.highlight-card]:lg:col-span-2
+ [&_.highlight-card:nth-child(1)]:lg:col-span-3
+ [&_.highlight-card:nth-child(2)]:lg:col-span-3
+ `,
+ highlights: [
+ {
+ title: 'Postgres Native',
+ paragraph: 'Create and Manage Queues directly within your database.',
+ svg: (
+ <svg
+ width="25"
+ height="25"
+ viewBox="0 0 25 25"
+ xmlns="http://www.w3.org/2000/svg"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="1"
+ >
+ <path d="M11.5466 3.23108C11.2704 3.23108 11.0466 3.45494 11.0466 3.73108C11.0466 4.00722 11.2704 4.23108 11.5466 4.23108V3.23108ZM20.6569 19.5046C20.6569 19.2285 20.433 19.0046 20.1569 19.0046C19.8808 19.0046 19.6569 19.2285 19.6569 19.5046H20.6569ZM19.6569 15.9656C19.6569 16.2417 19.8808 16.4656 20.1569 16.4656C20.433 16.4656 20.6569 16.2417 20.6569 15.9656H19.6569ZM13.0119 19.5536C12.959 19.2826 12.6964 19.1058 12.4254 19.1586C12.1544 19.2115 11.9775 19.4741 12.0304 19.7452L13.0119 19.5536ZM9.87381 18.8565L9.37381 18.8565V18.8565H9.87381ZM4.20721 5.29932L3.73784 5.12699L3.73784 5.127L4.20721 5.29932ZM2.52527 9.88046L2.0559 9.70814L2.0559 9.70814L2.52527 9.88046ZM3.24922 12.6873L2.92176 13.0651L2.92176 13.0651L3.24922 12.6873ZM4.40334 13.6875L4.07588 14.0653L4.07588 14.0653L4.40334 13.6875ZM5.00971 15.0154L4.50971 15.0154L4.50971 15.0154L5.00971 15.0154ZM5.00969 16.8536L5.50969 16.8536L5.50969 16.8536L5.00969 16.8536ZM9.87385 10.6661L9.37385 10.6661L9.37385 10.6661L9.87385 10.6661ZM11.9399 6.90783C12.136 6.71339 12.1373 6.39681 11.9429 6.20073C11.7484 6.00464 11.4319 6.00331 11.2358 6.19774L11.9399 6.90783ZM17.841 18.7506L17.8409 18.2506L17.8409 18.2506L17.841 18.7506ZM23.0676 19.2506C23.3437 19.2506 23.5676 19.0267 23.5675 18.7506C23.5675 18.4744 23.3437 18.2506 23.0675 18.2506L23.0676 19.2506ZM13.0171 15.2446C12.8955 14.9967 12.5959 14.8943 12.348 15.016C12.1001 15.1376 11.9978 15.4372 12.1194 15.6851L13.0171 15.2446ZM11.5466 4.23108H12.608V3.23108H11.5466V4.23108ZM19.6569 19.5046C19.6569 21.0264 18.2467 22.2606 16.3033 22.2606V23.2606C18.6165 23.2606 20.6569 21.7449 20.6569 19.5046H19.6569ZM12.608 4.23108C16.501 4.23108 19.6569 7.38698 19.6569 11.28H20.6569C20.6569 6.8347 17.0533 3.23108 12.608 3.23108V4.23108ZM19.6569 11.28V15.9656H20.6569V11.28H19.6569ZM16.3033 22.2606C14.6727 22.2606 13.313 21.0964 13.0119 19.5536L12.0304 19.7452C12.4214 21.7485 14.1852 23.2606 16.3033 23.2606V22.2606ZM11.6552 3.22339H6.46459V4.22339H11.6552V3.22339ZM3.73784 5.127L2.0559 9.70814L2.99464 10.0528L4.67658 5.47164L3.73784 5.127ZM2.92176 13.0651L4.07588 14.0653L4.7308 13.3096L3.57668 12.3094L2.92176 13.0651ZM4.50971 15.0154L4.50969 16.8536L5.50969 16.8536L5.50971 15.0154L4.50971 15.0154ZM10.3739 10.6661C10.3739 9.25463 10.9376 7.90166 11.9399 6.90783L11.2358 6.19774C10.0442 7.37934 9.37387 8.98795 9.37385 10.6661L10.3739 10.6661ZM2.0559 9.70814C1.61893 10.8983 1.96363 12.2348 2.92176 13.0651L3.57668 12.3094C2.9326 11.7512 2.70089 10.8529 2.99464 10.0528L2.0559 9.70814ZM8.44319 20.7872C9.50944 20.7872 10.3738 19.9228 10.3738 18.8565H9.37381C9.37381 19.3705 8.95716 19.7872 8.44319 19.7872V20.7872ZM8.44319 19.7872C6.82305 19.7872 5.50967 18.4738 5.50969 16.8536L4.50969 16.8536C4.50966 19.026 6.27075 20.7872 8.44319 20.7872V19.7872ZM4.07588 14.0653C4.35142 14.3041 4.50972 14.6508 4.50971 15.0154L5.50971 15.0154C5.50972 14.3608 5.22552 13.7384 4.7308 13.3096L4.07588 14.0653ZM6.46459 3.22339C5.24643 3.22339 4.15768 3.98347 3.73784 5.12699L4.67658 5.47164C4.95188 4.7218 5.66581 4.22339 6.46459 4.22339V3.22339ZM17.841 19.2506L23.0676 19.2506L23.0675 18.2506L17.8409 18.2506L17.841 19.2506ZM12.1194 15.6851C13.1905 17.8676 15.4098 19.2507 17.841 19.2506L17.8409 18.2506C15.7913 18.2507 13.9201 17.0846 13.0171 15.2446L12.1194 15.6851ZM10.3738 18.8565L10.3739 10.6661L9.37385 10.6661L9.37381 18.8565L10.3738 18.8565Z" />
+ <path d="M15.7151 11.2056C15.7151 11.6257 16.0556 11.9663 16.4758 11.9663C16.8959 11.9663 17.2365 11.6257 17.2365 11.2056C17.2365 10.7854 16.8959 10.4448 16.4758 10.4448C16.0556 10.4448 15.7151 10.7854 15.7151 11.2056Z" />
+ </svg>
+ ),
+ },
+ {
+ title: 'Exactly Once Message Delivery',
+ paragraph: 'Supabase Queues delivers a message exactly once within a visibility window.',
+ svg: (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="24"
+ height="24"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="1.5"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ >
+ <path d="M10 2h4" />
+ <path d="M12 14v-4" />
+ <path d="M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6" />
+ <path d="M9 17H4v5" />
+ </svg>
+ ),
+ },
+ {
+ title: 'Message Archival',
+ paragraph: 'Messages in Queues can be archived instead of deleted for future reference.',
+ svg: (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="24"
+ height="24"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="1.5"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ >
+ <circle cx="16" cy="16" r="6" />
+ <path d="M7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2" />
+ <path d="M16 14v2l1 1" />
+ </svg>
+ ),
+ },
+ {
+ title: 'Real-Time Monitoring',
+ paragraph: "Track and manage messages in your Queues with Supabase's observability tools.",
+ svg: (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="24"
+ height="24"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="1.5"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ >
+ <path d="M13 12h8" />
+ <path d="M13 18h8" />
+ <path d="M13 6h8" />
+ <path d="M3 12h1" />
+ <path d="M3 18h1" />
+ <path d="M3 6h1" />
+ <path d="M8 12h1" />
+ <path d="M8 18h1" />
+ <path d="M8 6h1" />
+ </svg>
+ ),
+ },
+ {
+ title: '100% Open Source',
+ paragraph: 'Built on trusted, community-driven technology.',
+ svg: (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="24"
+ height="24"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="1.5"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ >
+ <rect width="18" height="11" x="3" y="11" rx="2" ry="2" />
+ <path d="M7 11V7a5 5 0 0 1 9.9-1" />
+ </svg>
+ ),
+ },
+ ],
+ },
+ videoSection: {
+ video: (
+ <BrowserFrame
+ className="overflow-hidden lg:order-last bg-default w-full max-w-6xl mx-auto"
+ contentClassName="aspect-video border overflow-hidden rounded-lg"
+ hasFrameButtons={false}
+ >
+ <div className="video-container !border-none !rounded-none">
+ <iframe
+ src="https://www.youtube-nocookie.com/embed/UEwfaElBnZk"
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
+ allowFullScreen
+ />
+ </div>
+ </BrowserFrame>
+ ),
+ },
+ section1: {
+ id: 'sql',
+ label: 'SQL',
+ heading: <>Manage via SQL</>,
+ subheading: 'Create Queues and manage messages using SQL with any Postgres client.',
+ cta: {
+ label: 'Start message queuing',
+ url: 'https://supabase.com/dashboard/project/_/integrations/queues/overview',
+ },
+ image: (
+ <Image
+ src={{
+ dark: '/images/modules/queues/queues-sql-dark.png',
+ light: '/images/modules/queues/queues-sql-light.png',
+ }}
+ alt="Queues SQL"
+ className="w-full max-w-[490px] aspect-[1/0.88] object-cover bg-cover"
+ fill
+ sizes="100vw, (min-width: 768px) 50vw, (min-width: 1200px) 33vw"
+ quality={100}
+ draggable={false}
+ />
+ ),
+ },
+ section2: {
+ id: 'api',
+ label: 'API',
+ heading: <>Manage via API</>,
+ subheading:
+ 'Create and manage messages either server-side or client-side via PostgREST using any Supabase client library.',
+ cta: {
+ label: 'Start message queuing',
+ url: 'https://supabase.com/dashboard/project/_/integrations/queues/overview',
+ },
+ reverse: true,
+ image: (
+ <Image
+ src={{
+ dark: '/images/modules/queues/queues-api-dark.png',
+ light: '/images/modules/queues/queues-api-light.png',
+ }}
+ alt="Queues API"
+ className="w-full max-w-[490px] aspect-[1/0.88] object-cover bg-cover"
+ fill
+ sizes="100vw, (min-width: 768px) 50vw, (min-width: 1200px) 33vw"
+ quality={100}
+ draggable={false}
+ />
+ ),
+ className: 'md:!pt-0',
+ },
+ section3: {
+ id: 'ui',
+ label: 'UI',
+ heading: <>Manage and Monitor via Dashboard</>,
+ subheading:
+ 'Create Queues and manage messages in the Dashboard as well as monitor your Queues and message processing in real-time.',
+ cta: {
+ label: 'Start message queuing',
+ url: 'https://supabase.com/dashboard/project/_/integrations/queues/overview',
+ },
+ image: (
+ <Image
+ src={{
+ dark: '/images/blog/launch-week-13/day-4-supabase-queues/message-detail.jpg',
+ light: '/images/blog/launch-week-13/day-4-supabase-queues/message-detail-light.jpg',
+ }}
+ alt="Queues via Dashboard UI"
+ className="w-full max-w-[490px] aspect-[1/1.14] object-cover bg-cover"
+ fill
+ sizes="100vw, (min-width: 768px) 50vw, (min-width: 1200px) 33vw"
+ quality={100}
+ draggable={false}
+ />
+ ),
+ className: 'md:!pt-0',
+ },
+})
diff --git a/apps/www/pages/modules/cron.tsx b/apps/www/pages/modules/cron.tsx
index 6de32f4dacf..f10b42f26e9 100644
--- a/apps/www/pages/modules/cron.tsx
+++ b/apps/www/pages/modules/cron.tsx
@@ -2,18 +2,17 @@ import { NextSeo } from 'next-seo'
import dynamic from 'next/dynamic'
import DefaultLayout from '~/components/Layouts/Default'
-import CronPageData from '~/data/products/modules/cron'
import ModulesNav from '~/components/Modules/ModulesNav'
-import CTABanner from '~/components/CTABanner'
-import SectionContainer from '~/components/Layouts/SectionContainer'
import ProductModulesHeader from '~/components/Sections/ProductModulesHeader'
+import SectionContainer from '~/components/Layouts/SectionContainer'
import { PRODUCT_MODULES_NAMES } from 'shared-data/products'
+import CronPageData from '~/data/products/modules/cron'
const HighlightCards = dynamic(() => import('~/components/Sections/HighlightCards'))
const CronSQLSection = dynamic(() => import('~/components/Modules/Cron/CronSQLSection'))
-const ImageLeftSection = dynamic(() => import('~/components/Modules/Cron/ImageLeftSection'))
-const ImageRightSection = dynamic(() => import('~/components/Modules/Cron/ImageRightSection'))
+const ImageParagraphSection = dynamic(() => import('~/components/Sections/ImageParagraphSection'))
+const CTABanner = dynamic(() => import('~/components/CTABanner'))
function CronPage() {
const pageData = CronPageData()
@@ -37,12 +36,12 @@ function CronPage() {
<DefaultLayout className="!bg-alternative" stickyNavbar={false}>
<ModulesNav activePage={PRODUCT_MODULES_NAMES.CRON} docsUrl={pageData.docsUrl} />
<ProductModulesHeader {...pageData.heroSection} />
- <SectionContainer>{pageData.video.image}</SectionContainer>
+ <SectionContainer>{pageData.videoSection.video}</SectionContainer>
<HighlightCards {...(pageData.highlightsSection as any)} />
<CronSQLSection {...pageData.section1} />
- <ImageLeftSection {...pageData.section2} className="!py-0" />
- <ImageRightSection {...pageData.section3} className="!pb-0" />
- <ImageLeftSection {...pageData.section4} />
+ <ImageParagraphSection {...pageData.section2} />
+ <ImageParagraphSection {...pageData.section3} />
+ <ImageParagraphSection {...pageData.section4} />
<div className="bg-gradient-to-t from-alternative to-transparent mt-8 lg:mt-24">
<CTABanner />
</div>
diff --git a/apps/www/pages/modules/queues.tsx b/apps/www/pages/modules/queues.tsx
new file mode 100644
index 00000000000..e7ab8525b5c
--- /dev/null
+++ b/apps/www/pages/modules/queues.tsx
@@ -0,0 +1,53 @@
+import { NextSeo } from 'next-seo'
+import dynamic from 'next/dynamic'
+
+import DefaultLayout from '~/components/Layouts/Default'
+import ModulesNav from '~/components/Modules/ModulesNav'
+import ProductModulesHeader from '~/components/Sections/ProductModulesHeader'
+import SectionContainer from '~/components/Layouts/SectionContainer'
+
+import { PRODUCT_MODULES_NAMES } from 'shared-data/products'
+import QueuesPageData from '~/data/products/modules/queues'
+
+const HighlightCards = dynamic(() => import('~/components/Sections/HighlightCards'))
+const QueuesSQLSection = dynamic(() => import('~/components/Modules/Queues/QueuesSQLSection'))
+const QueuesAPISection = dynamic(() => import('~/components/Modules/Queues/QueuesAPISection'))
+const ImageParagraphSection = dynamic(() => import('~/components/Sections/ImageParagraphSection'))
+const CTABanner = dynamic(() => import('~/components/CTABanner'))
+
+function CronPage() {
+ const pageData = QueuesPageData()
+
+ return (
+ <>
+ <NextSeo
+ title={pageData.metaTitle}
+ description={pageData.metaDescription}
+ openGraph={{
+ title: pageData.metaTitle,
+ description: pageData.metaDescription,
+ url: `https://supabase.com/modules/queues`,
+ images: [
+ {
+ url: pageData.metaImage,
+ },
+ ],
+ }}
+ />
+ <DefaultLayout className="!bg-alternative" stickyNavbar={false}>
+ <ModulesNav activePage={PRODUCT_MODULES_NAMES.QUEUES} docsUrl={pageData.docsUrl} />
+ <ProductModulesHeader {...pageData.heroSection} />
+ <SectionContainer>{pageData.videoSection.video}</SectionContainer>
+ <HighlightCards {...pageData.highlightsSection} />
+ <QueuesSQLSection {...pageData.section1} />
+ <QueuesAPISection {...pageData.section2} />
+ <ImageParagraphSection {...pageData.section3} />
+ <div className="bg-gradient-to-t from-alternative to-transparent mt-8 lg:mt-24">
+ <CTABanner />
+ </div>
+ </DefaultLayout>
+ </>
+ )
+}
+
+export default CronPage
diff --git a/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/add-message-light.jpg b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/add-message-light.jpg
new file mode 100644
index 00000000000..6592f5f4358
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/add-message-light.jpg differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/add-message-modal-light.jpg b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/add-message-modal-light.jpg
new file mode 100644
index 00000000000..0c159f967c7
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/add-message-modal-light.jpg differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/add-message-modal.jpg b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/add-message-modal.jpg
new file mode 100644
index 00000000000..c26a3de52e8
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/add-message-modal.jpg differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/add-message.jpg b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/add-message.jpg
new file mode 100644
index 00000000000..c270777cc4b
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/add-message.jpg differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/create-a-queue-light.jpg b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/create-a-queue-light.jpg
new file mode 100644
index 00000000000..0bdceefb0ec
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/create-a-queue-light.jpg differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/create-a-queue.jpg b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/create-a-queue.jpg
new file mode 100644
index 00000000000..b32f4e10e29
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/create-a-queue.jpg differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/integrations-light.jpg b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/integrations-light.jpg
new file mode 100644
index 00000000000..6385556f924
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/integrations-light.jpg differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/integrations.jpg b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/integrations.jpg
new file mode 100644
index 00000000000..1b35884d490
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/integrations.jpg differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/message-detail-light.jpg b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/message-detail-light.jpg
new file mode 100644
index 00000000000..6687038b933
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/message-detail-light.jpg differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/message-detail.jpg b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/message-detail.jpg
new file mode 100644
index 00000000000..fb1a9d4b3cf
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/message-detail.jpg differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/og.png b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/og.png
new file mode 100644
index 00000000000..40111d107cb
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/og.png differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/permissions-light.jpg b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/permissions-light.jpg
new file mode 100644
index 00000000000..54e45edf7ad
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/permissions-light.jpg differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/permissions.jpg b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/permissions.jpg
new file mode 100644
index 00000000000..bc93554a8af
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/permissions.jpg differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/queue-types-light.jpg b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/queue-types-light.jpg
new file mode 100644
index 00000000000..d3584186444
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/queue-types-light.jpg differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/queue-types.jpg b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/queue-types.jpg
new file mode 100644
index 00000000000..07b5eb85c4e
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/queue-types.jpg differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/thumb.png b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/thumb.png
new file mode 100644
index 00000000000..cc3f2254abc
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-4-supabase-queues/thumb.png differ
diff --git a/apps/www/public/images/launchweek/13/releases/d4/d4-queues-dark.png b/apps/www/public/images/launchweek/13/releases/d4/d4-queues-dark.png
new file mode 100644
index 00000000000..7adf0134c2c
Binary files /dev/null and b/apps/www/public/images/launchweek/13/releases/d4/d4-queues-dark.png differ
diff --git a/apps/www/public/images/launchweek/13/releases/d4/d4-queues-light.png b/apps/www/public/images/launchweek/13/releases/d4/d4-queues-light.png
new file mode 100644
index 00000000000..7c67d71a9fa
Binary files /dev/null and b/apps/www/public/images/launchweek/13/releases/d4/d4-queues-light.png differ
diff --git a/apps/www/public/images/launchweek/13/releases/d4/d4-queues-mobile-dark.png b/apps/www/public/images/launchweek/13/releases/d4/d4-queues-mobile-dark.png
new file mode 100644
index 00000000000..3ec951451ff
Binary files /dev/null and b/apps/www/public/images/launchweek/13/releases/d4/d4-queues-mobile-dark.png differ
diff --git a/apps/www/public/images/launchweek/13/releases/d4/d4-queues-mobile-light.png b/apps/www/public/images/launchweek/13/releases/d4/d4-queues-mobile-light.png
new file mode 100644
index 00000000000..dba43a92b7f
Binary files /dev/null and b/apps/www/public/images/launchweek/13/releases/d4/d4-queues-mobile-light.png differ
diff --git a/apps/www/public/images/modules/queues/og.png b/apps/www/public/images/modules/queues/og.png
new file mode 100644
index 00000000000..ba05eb38bcc
Binary files /dev/null and b/apps/www/public/images/modules/queues/og.png differ
diff --git a/apps/www/public/rss.xml b/apps/www/public/rss.xml
index 192a8a73bf1..ed30bfa8aec 100644
--- a/apps/www/public/rss.xml
+++ b/apps/www/public/rss.xml
@@ -8,6 +8,13 @@
<lastBuildDate>Thu, 05 Dec 2024 00:00:00 -0700</lastBuildDate>
<atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/>
<item>
+ <guid>https://supabase.com/blog/supabase-queues</guid>
+ <title>Supabase Queues</title>
+ <link>https://supabase.com/blog/supabase-queues</link>
+ <description>Durable Message Queues with Guaranteed Delivery in Postgres</description>
+ <pubDate>Thu, 05 Dec 2024 00:00:00 -0700</pubDate>
+</item>
+<item>
<guid>https://supabase.com/blog/high-performance-disks</guid>
<title>Scaling Database Storage: Introducing High Performance Disks</title>
<link>https://supabase.com/blog/high-performance-disks</link>
diff --git a/packages/shared-data/products.ts b/packages/shared-data/products.ts
index ad7686a0531..8439059c86b 100644
--- a/packages/shared-data/products.ts
+++ b/packages/shared-data/products.ts
@@ -21,16 +21,21 @@ export enum PRODUCT_SHORTNAMES {
REALTIME = 'realtime',
}
-export type PRODUCT_MODULE = PRODUCT_MODULES_SHORTNAMES.CRON | PRODUCT_MODULES_SHORTNAMES.VECTOR
+export type PRODUCT_MODULE =
+ | PRODUCT_MODULES_SHORTNAMES.CRON
+ | PRODUCT_MODULES_SHORTNAMES.QUEUES
+ | PRODUCT_MODULES_SHORTNAMES.VECTOR
// Product Modules
export enum PRODUCT_MODULES_NAMES {
CRON = 'Cron',
+ QUEUES = 'Queues',
VECTOR = 'Vector',
}
export enum PRODUCT_MODULES_SHORTNAMES {
CRON = 'cron',
+ QUEUES = 'queues',
VECTOR = 'vector',
}
@@ -106,6 +111,14 @@ export const PRODUCT_MODULES: ProductModules = {
'24': 'M12 6.375V12H16.2188M21.375 12C21.375 17.1777 17.1777 21.375 12 21.375C6.82233 21.375 2.625 17.1777 2.625 12C2.625 6.82233 6.82233 2.625 12 2.625C17.1777 2.625 21.375 6.82233 21.375 12Z',
},
},
+ [PRODUCT_MODULES_SHORTNAMES.QUEUES]: {
+ name: PRODUCT_MODULES_NAMES.QUEUES,
+ icon: {
+ '16': 'M9.27637 1.84082H12.7764C13.6048 1.84082 14.2764 2.51239 14.2764 3.34082V6.84082C14.2764 7.66925 13.6048 8.34082 12.7764 8.34082H9.27637C8.44794 8.34082 7.77637 7.66925 7.77637 6.84082V3.34082C7.77637 2.51239 8.44794 1.84082 9.27637 1.84082Z',
+ '18': 'M9.27637 1.84082H12.7764C13.6048 1.84082 14.2764 2.51239 14.2764 3.34082V6.84082C14.2764 7.66925 13.6048 8.34082 12.7764 8.34082H9.27637C8.44794 8.34082 7.77637 7.66925 7.77637 6.84082V3.34082C7.77637 2.51239 8.44794 1.84082 9.27637 1.84082Z',
+ '24': 'M17.625 16.2902C17.625 17.0274 17.0274 17.625 16.2902 17.625H9.375C7.71815 17.625 6.375 16.2819 6.375 14.625V8.14725C6.375 7.16846 7.16846 6.375 8.14725 6.375M13.125 20.7902C13.125 21.5274 12.5274 22.125 11.7902 22.125H4.875C3.21815 22.125 1.875 20.7819 1.875 19.125V12.6472C1.875 11.6685 2.66846 10.875 3.64725 10.875M13.875 13.125H19.125C20.7819 13.125 22.125 11.7819 22.125 10.125V4.875C22.125 3.21815 20.7819 1.875 19.125 1.875H13.875C12.2181 1.875 10.875 3.21815 10.875 4.875V10.125C10.875 11.7819 12.2181 13.125 13.875 13.125Z',
+ },
+ },
[PRODUCT_MODULES_SHORTNAMES.VECTOR]: {
name: PRODUCT_MODULES_NAMES.VECTOR,
icon: {
diff --git a/packages/ui-patterns/PromoToast/PromoToast.tsx b/packages/ui-patterns/PromoToast/PromoToast.tsx
index 3b4cbeeb246..1fc636e7551 100644
--- a/packages/ui-patterns/PromoToast/PromoToast.tsx
+++ b/packages/ui-patterns/PromoToast/PromoToast.tsx
@@ -47,7 +47,7 @@ const PromoToast = () => {
{announcement.text}
</div>
<div className="relative z-10 text-foreground flex flex-col text-xl w-full -mt-1">
- Supabase Cron: Schedule Recurring Jobs in Postgres
+ Supabase Queues: Durable Message Queues with Guaranteed Delivery
</div>
<div className="relative z-10 flex items-center space-x-2 mt-2">
diff --git a/packages/ui/src/layout/banners/LW13CountdownBanner/LW13CountdownBanner.tsx b/packages/ui/src/layout/banners/LW13CountdownBanner/LW13CountdownBanner.tsx
index 3b486ccf554..97babbe1a7f 100644
--- a/packages/ui/src/layout/banners/LW13CountdownBanner/LW13CountdownBanner.tsx
+++ b/packages/ui/src/layout/banners/LW13CountdownBanner/LW13CountdownBanner.tsx
@@ -37,7 +37,7 @@ export function LW13CountdownBanner() {
>
<p className="flex gap-1.5 items-center">{announcement.text}</p>
<div className="hidden sm:block text-foreground-lighter">
- Supabase Cron: Schedule Recurring Jobs in Postgres
+ Supabase Queues: Durable Message Queues with Guaranteed Delivery
</div>
<Button size="tiny" type="default" className="px-2 !leading-none text-xs" asChild>
<Link href={announcement.link}>{announcement.cta}</Link>
diff --git a/packages/ui/src/layout/banners/data/Announcement.json b/packages/ui/src/layout/banners/data/Announcement.json
index b0377815f1f..a11053eefe4 100644
--- a/packages/ui/src/layout/banners/data/Announcement.json
+++ b/packages/ui/src/layout/banners/data/Announcement.json
@@ -1,7 +1,7 @@
{
"show": true,
- "text": "Launch Week 13: Day 3",
+ "text": "Launch Week 13: Day 4",
"launchDate": "2024-12-02T07:00:00.000-08:00",
- "link": "/launch-week#day-3",
+ "link": "/launch-week#day-4",
"cta": "Learn more"
}
diff --git a/vale/styles/config/vocabularies/Supabase/accept.txt b/vale/styles/config/vocabularies/Supabase/accept.txt
index 655f6d4142e..50cf9cd7072 100644
--- a/vale/styles/config/vocabularies/Supabase/accept.txt
+++ b/vale/styles/config/vocabularies/Supabase/accept.txt
@@ -17,6 +17,7 @@ DBeaver
[Dd]eeplinks?
[Dd]egit
[Dd]eserializ(e|ed|es|ing)
+[Ee]nqueu(e|ed|es|ing)
Deno
[Dd]ev
[Dd]otenv
@@ -53,6 +54,7 @@ OpenAI
pg_plan_filter
PGAudit
pgAdmin
+pgmq
PGroonga
pgvector
Pinecone