Kafka

Frends.Kafka.Produce / 2.1.0

Summary

Publishes a message to a topic with an optional key, which is what decides partitioning and therefore per-key ordering.

Typical use — emitting events from a Process; keying by entity is what keeps that entity's events in order

Details

Frends version
5.5 and newer
Agent
Crossplatform
Target framework
net6.0

Input parameters.

Name Type Default Example Description
Host String localhost:1234

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

Topic String ExampleTopic

Topic.

Key String examplekey

Message key value. Can be empty.

Message String Example message.

Message. Can be empty.

Partition Int32 0 0

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.

CompressionType CompressionTypes None CompressionTypes.None

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.

SecurityProtocol SecurityProtocols Plaintext SecurityProtocols.Plaintext

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.

An unhandled error has occurred. Reload 🗙