Skip to main content
upstash-kafka is an HTTP/REST based Kafka client built on top of Upstash Kafka REST API. It is the only connectionless (HTTP based) Kafka client and designed to work with:
  • Serverless functions (AWS Lambda …)
  • Cloudflare Workers (see the example)
  • Fastly Compute@Edge
  • Next.js Edge, Remix, Nuxt …
  • Client side web/mobile applications
  • WebAssembly
  • and other environments where HTTP is preferred over TCP.

Quick Start

Install

Authenticate

Copy URL, username and password from Upstash Console

Produce

Produce Many

Consume

When a new consumer instance is created, it may return empty messages until consumer group coordination is completed.

Commit

While consume commits automatically, you can commit manually as below:

Fetch

Examples

See here for more examples.