Kafka Integration avatar
Kafka Integration

Pricing

$10.00/month + usage

Go to Store
Kafka Integration

Kafka Integration

Developed by

Brasil Scrapers

Maintained by Community

This integration facilitates the processing of data from an Apify dataset and its delivery to a Kafka topic. It is configured via a schema that includes details about the dataset, Kafka configuration, and batch processing size.

0.0 (0)

Pricing

$10.00/month + usage

2

Monthly users

1

Runs succeeded

>99%

Last modified

5 months ago

Apify to Kafka Integration

Overview

This integration facilitates the processing of data from an Apify dataset and its delivery to a Kafka topic. It is configured via a schema that includes details about the dataset, Kafka configuration, and batch processing size.

Input Schema

The input schema defines the configuration required to run the integration effectively. Below are the details of the schema and its properties:

Schema Details

  • Title: Apify to Kafka Input Schema
  • Type: Object
  • Schema Version: 1

Properties

1. Default Dataset ID

  • Title: Default Dataset ID
  • Type: String
  • Description: The ID of the Apify dataset to process.
  • Default: default
  • Editor: Textfield

2. Kafka Configuration

  • Title: Kafka Configuration
  • Type: Object
  • Description: Configuration settings for Kafka connection.
  • Editor: JSON
  • Default:
    1{
    2    "clientId": "apify-kafka-producer",
    3    "brokers": ["localhost:9092"],
    4    "topic": "test-topic",
    5    "ssl": false
    6}
  • Properties:
    • Client ID:
      • Title: Client ID
      • Type: String
      • Description: Kafka client identifier.
      • Default: apify-kafka-producer
    • Brokers:
      • Title: Brokers
      • Type: Array of strings
      • Description: Array of Kafka broker addresses.
      • Default: ["localhost:9092"]
    • Topic:
      • Title: Topic
      • Type: String
      • Description: Kafka topic name.
      • Default: test-topic
    • SSL:
      • Title: SSL
      • Type: Boolean
      • Description: Enable/disable SSL connection.
      • Default: false
    • SASL (Optional):
      • Title: SASL
      • Type: Object
      • Description: SASL configuration for Kafka connection.
      • Properties:
        • Username:
          • Title: Username
          • Type: String
          • Description: Kafka SASL username.
        • Password:
          • Title: Password
          • Type: String
          • Description: Kafka SASL password.
        • Mechanism:
          • Title: Mechanism
          • Type: String
          • Description: Kafka SASL mechanism.
          • Default: plain

3. Batch Size

  • Title: Batch Size
  • Type: Integer
  • Description: Number of messages to process in each batch.
  • Default: 2
  • Minimum: 1

Required Properties

  • defaultDatasetId
  • kafkaConfig

Example Configuration

1{
2    "defaultDatasetId": "my-dataset-id",
3    "kafkaConfig": {
4        "clientId": "my-kafka-client",
5        "brokers": ["kafka-broker1:9092", "kafka-broker2:9092"],
6        "topic": "my-kafka-topic",
7        "ssl": true,
8        "sasl": {
9            "username": "my-username",
10            "password": "my-password",
11            "mechanism": "plain"
12        }
13    },
14    "batchSize": 5
15}

How to Use

  1. Define the Input: Provide the necessary configurations in JSON format as per the schema.
  2. Run the Integration: Pass the configuration to the Apify actor or script responsible for processing and delivering the dataset to Kafka.
  3. Monitor Outputs: Check your Kafka topic for incoming messages based on the processed dataset.

Notes

  • Ensure the Kafka broker addresses are reachable from the environment where the integration is executed.
  • SASL configuration is optional but required for secure Kafka connections.
  • Modify the batch size according to the volume of data and processing capacity.

Pricing

Pricing model

Rental 

To use this Actor, you have to pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage.

Free trial

2 hours

Price

$10.00