TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Supabase Queues

19 点作者 samuba6 个月前

1 comment

kiwicopple6 个月前
Hey HN, supabase ceo here.<p>This is a Postgres-native Queue. It&#x27;s built with the PGMQ extension[0] which the Tembo team have generously licensed their extension with the OSI-compatible PostgreSQL license. PGMQ has API parity with AWS SQS and RSMQ.<p>Our implementation is compatible with the rest of the supabase stack. With RLS enabled, you can use the client libs to CRUD messages&#x2F;tasks. eg:<p><pre><code> import { createClient } from &#x27;@supabase&#x2F;supabase-js&#x27; const queues = createClient(url, key, { db: { schema: &#x27;pgmq_public&#x27; }, }) const { data, error } = await queues.rpc(&#x27;send&#x27;, { queue_name: &#x27;foo&#x27;, message: { hello: &#x27;world&#x27; }, }) </code></pre> We&#x27;ll be around for any questions<p>[0] PGMQ: <a href="https:&#x2F;&#x2F;github.com&#x2F;tembo-io&#x2F;pgmq">https:&#x2F;&#x2F;github.com&#x2F;tembo-io&#x2F;pgmq</a>