Skip to main content
?

Kafka Subscribe

Overview

Subscribe to Kafka event and receive data.

In the below example, we will log the data received from a Kafka topic.

Example Configuration

Learn how to use


danger

Make sure you have followed the steps to create Kafka client.

Supporting Concepts

Basic concepts needed for the use case
TopicDescription
[Client]](../../../Examples/Clients)A server accepts and handles the request and response.
SimulationData simulation is a mock data simulated for the purpose of visualizing the data in every step of the workflow.
  • Simulated data is NOT the real data but a sample data you create.
  • To use real data, use the Transaction feature to capture the data you send from Postman or CURL.
ScopeA scope is a namespace for variables.
Data TypesData types describe the different types or kinds of data that you are gonna store and work with.
Use case specific concepts
TopicDescription
Action
system/log
Prints a log to standard output.

Detail

Original Object

  {
"received": ""
}

Result

The log action prints out the message from Kafka event

Content

Subscribe to an Event

1: Event

Required Concepts

Learn how to create an Client.

From the tab, go to the Event.

Add topic
Add topic
  • ID: sample-topic

2 : Create Data Simulation using Real Data

Simulation
Required Concepts

Learn how to create a Simulation.

Manually create a test simulationSimulation

Action(s)

Required Concepts

Learn how to create a Actions.

Add actions to transform the data.

1. System Log

Required Concepts

For this example, we will simply log the messages from the event.

System Log
SETTINGS
String Capitalize

label:string

Kafka-event

level:enum

info

value:data

[received: ]

OUTPUT

variables: output

2. Check Log

On the right pane, check the message in the log.

String Capitalize

OUTPUT: Events don't have an output

No output