marjory-logo

Kafka

Table of Contents


Contexts

groupId

Type Description isCrypt
string Event - The id of your consumer group false

key

Type Description isCrypt
string Client key true

cert

Type Description isCrypt
string Client certificate true

ca

Type Description isCrypt
string Certificate authority true

topic

Type Description isCrypt
string Event - The name of the topic you want to consume from false

brokers

Type Description isCrypt
multistring Your kafka brokers false

Actions

Send Message(s)

This action publishes one or more messages in the specified topic with the key and content provided.

Inputs

{
  "topic": "mytopic", /*The name of the topic(required)*/
  "messages": [ /*(required)*/
    {
      "key": "string",
      "value": "string",
    }
  ]
}

Outputs

Http Code 200
"No content"
Http Code 500
{
    "message": "string"
}

Create Topic

This action creates a new Kafka topic with the specified name, the desired number of partitions and the replication factor.

Inputs

{
  "name": "mytopic", /*The name of the topic to create(required)*/
  "partitions": 3, /*The number of partitions(required)*/
  "replicationFactor": 3, /*The number of replications(required)*/
}

Outputs

Http Code 200
"No content"
Http Code 500
{
    "message": "string"
}

Events

Message Received

This event is triggered by messages from the specified topic.

Payload

{
  "message": {
    "key": "string",
    "value": "string",
    "offset": "string",
    "timestamp": "number",
  }
}
Version(s)
7.0.1