Home / Companies / Upstash / Blog / Post Details
Content Deep Dive

Streaming User Events from PostgreSQL (Supabase) to Serverless Kafka

Blog post from Upstash

Post Details
Company
Date Published
Author
Noah Fischer
Word Count
1,707
Language
English
Hacker News Points
-
Summary

The blog post explores the integration of Supabase and Upstash Kafka to create a backend infrastructure for a social media application, capturing user activities like likes and comments in Postgres tables on Supabase and streaming them to Kafka through Kafka Connectors. Supabase is highlighted as an open-source alternative to Firebase, offering services such as authentication, PostgreSQL database, storage, and edge functions. The post outlines the setup process for Upstash Kafka, including the creation of a Kafka cluster and the configuration of Kafka Connectors using Debezium Source PostgreSQL Connector to stream data from Supabase tables. This streamed data is then used to create a leaderboard in Upstash Redis, where user activities are scored based on their interactions, with a Java application leveraging Kafka Streams to process and update the leaderboard in real-time. The guide provides step-by-step instructions for setting up the database, configuring connectors, and implementing the streaming application, demonstrating a practical use case of integrating these technologies to build scalable data-driven applications.