Tinybird
This page describes how to integrate WarpStream with Tinybird, ingest data into Tinybird from WarpStream, and then create an API endpoint for your applications to access the result set.
Last updated
This page describes how to integrate WarpStream with Tinybird, ingest data into Tinybird from WarpStream, and then create an API endpoint for your applications to access the result set.
Last updated
A video walkthrough can be found below:
WarpStream account - get access to WarpStream by registering here.
Tinybird account - get access to Tinybird by registering here.
Serverless WarpStream cluster up and running.
Obtain the Bootstrap Broker from the WarpStream console by navigating to your cluster and clicking the Connect tab. If you don't have SASL credentials yet, you can also create a set of credentials from the console.
Store these values for easy reference; they will be needed in Tinybird. If you are going to produce records to your topic from the command line, then export them in a terminal window:
Then, create a topic in the WarpStream console if you don't already have one.
You can use the WarpStream CLI to produce messages to your topic if you don't already have an active topic to work with:
Note that the WarpStream CLI uses double commas (,,)
as a delimiter between JSON records.
In the Tinybird Web Console, next to "DATA PROJECT," click "+" and select "Data Source," select "Kafka," and file in the connection information.
Walk through the next steps to select your Topic and set your Configuration. Name the data source, and then click "Create Data Source," which will present a data preview and graph of ingested data, similar to the following:
Once again, next to "DATA PROJECT," click "+" and select "Pipe." Here you will create your SQL code to power your Tinybird API Endpoint. Tinybird will validate your code and provide a subset of the qualified dataset. In this example, we are looking for any "action" that does not have a status of "ACCEPT," we've named this "rejects." Once satisfied with the results, click "Create API Endpoint."
Tinybird will present various code snippets to enable you to deploy your endpoint using the pipeline you just created.
Taking the HTTP option and copying it into a browser yields the following result:
Congratulations! You've set up a stream processing pipeline between WarpStream and Tinybird.
Next, check out the WarpStream docs for configuring the WarpStream Agent, or review the Tinybird Docs to learn more about what is possible with WarpStream and Tinybird!