Console

Serverless
Kafka

Kafka as a service with per request pricing.

Kafka/REST API together with flexible pricing makes Upstash Kafka a perfect event streaming solution for modern architectures.

Start for free in 30 seconds
Serverless Database for Apache Kafka

Simple

Start Using Kafka in 15 seconds.

Apache Kafka

Works with all Kafka Clients.

REST API

Designed for serverless and edge functions.

Kafka Easier Than Ever

Add Kafka to your application in seconds

Using Kafka Client
1
2const { Kafka } = require('kafkajs')
3 
4const kafka = new Kafka({
5  brokers: ['full-mantis-14187-us1-kafka.upstash.io:9092'],
6  sasl: {
7    mechanism: 'scram-sha-256',
8    username: 'ZnVsbC1tYW50aXMtMTQyODkHBV9Jjzow03SnUtRQ',
9    password: '4-R-fmtoalXnoeu9TjQBOOL4njfSKwEsE10YvjqUrrq5_yAq4TPGd9c6JbqfQ==',
10  },
11  ssl: true,
12})
13 
14const producer = kafka.producer()
15producer.connect()
16// ...
17producer.disconnect()
18  
Using REST
1
2fetch("https://full-mantis-14187-us1-rest-kafka.upstash.io/produce/github-events/MESSAGE", {
3  headers: {
4    Authorization: "Basic Wm5Wc2JDMXRZVrthtr56VdFJROjQtUi1mbXRvYWxYbm9ldTlUalFCT09MNG5qZlNLd0VzRTEwWXZITWlXNjNoRmxqcVVycnE1X3lBcTRUUEdkOWM2SmJxZlE9PQ=="
5  }
6}).then(response => response.json())
7  .then(data => {
8    console.log(data)
9  });
10  

Community Resources

Check our docs and examples to learn more


Upstash Kafka
Getting Started Guide


Get started
with AWS Lambda


Get started
with Cloudflare Workers