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

Produce

Kafka produce 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

Key : String

Message key value.

Can be empty.

Default: - Example: examplekey

Message : String

Message.

Can be empty.

Default: - Example: Example message.

Partition : Int32

The partition value.

If set to -1. The partition the message is sent to is determined by the partitioner defined using the Options.Partitioner configuration property.

Default: 0 Example: 0

CompressionType : CompressionTypes

Compression codec to use for compressing message sets.

Possible values:

  • None: Compression codec to use for compressing message sets.

  • Gzip: Compression codec to use for compressing message sets.

  • Snappy: Compression codec to use for compressing message sets.

  • Lz4: Compression codec to use for compressing message sets.

  • Zstd: Compression codec to use for compressing message sets.

Default: 0 Example: CompressionTypes.None

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

Task Result

Name
Description

Success : Boolean

True if message was produced successfully. Example: true

Data : Object

Produce result. Example: PossiblyPersisted

Task Changelog

Changelog for Task Frends.Kafka.Produce.

Changelog

[2.0.0] - 2024-05-14

Added

  • Support for Confluent Schema Registry based Avro.

  • New parameter Options.Debug.

Changed

  • Result.Status and Result.Timestamp have been replaced by Result.Data.

  • Changed how partitions are handled when producing message. See Input.Partition description.

  • All but Kerberos SASL settings can be used on Windows platform.

  • Confluent.Kafka updated from version 1.9.3 to 2.4.

  • Parameter removed: Options.ApiVersionRequest.

[1.2.0] - 2023-10-11

Changed

  • Input.Message will no longer be serialized into JSON text before sending.

[1.1.0] - 2023-09-01

Added

  • Input.Partition, set the partition.

  • Input.Key, set message key.

[1.0.1] - 2023-04-04

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?