For the complete documentation index, see llms.txt. This page is also available as Markdown.

Consume

Kafka Consume operation.

Task version: 2.0.0

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

Host : String

Initial list of brokers as a CSV list of broker host or host:port.

Default: - Example: localhost:1234

Topic : String

Topic.

Default: - Example: ExampleTopic

SecurityProtocol : SecurityProtocols

Protocol used to communicate with brokers.

Possible values:

  • Plaintext: Protocol used to communicate with brokers.

  • Ssl: Protocol used to communicate with brokers.

  • SaslPlaintext: Protocol used to communicate with brokers.

  • SaslSsl: Protocol used to communicate with brokers.

Default: 0 Example: SecurityProtocols.Plaintext

MessageCount : Int32

Amount of consumed messages before ending this task.

0 = unlimited, consume until timeout or task cancellation.

Default: - Example: 10

Timeout : Int32

Consume operation timeout (value in ms).

0=unlimited. See other timeout options in Options-tab.

Default: 0 Example: 60000

Partition : Int32

Set Kafka partition.

Consume from all topic's partitions if set to -1.

Default: - Example: 10

Task Result

Name
Description

Success : Boolean

True if messages have been consumed without errors. Example: true

Data : List<Message>

Result data. Example: Object { key, value }

Task Changelog

Changelog for Task Frends.Kafka.Consume.

Changelog

[2.0.0] - 2024-05-15

Added

  • Support for Confluent Schema Registry based Avro.

  • New parameter Options.Debug.

Changed

  • Confluent.Kafka updated from version 1.9.3 to 2.4.

  • Input.Partition change: Consume from all topic's partitions if set to -1.

  • New parameter: Options.EncodeMessageKey to choose whether this Task will try to encode consumed key to string from byte[]

  • Message class change: string Key, string Value replaced by dynamic Key, dynamic Value.

  • Result.Messages renamed to Result.Data.

  • Removed optional parameters: ApiVersionRequest, ApiVersionFallbackMs, ApiVersionRequestTimeoutMs, AllowAutoCreateTopics,

[1.1.0] - 2023-11-27

Added

  • Added a partition as input parameter to the task.

[1.0.1] - 2023-04-17

Fixed

  • Changed Task to set ssl.SslCaCertificateStores only if it's set as parameter.

[1.0.0] - 2022-10-19

Added

  • Initial implementation

Last updated

Was this helpful?