Stereotype Attributes

Kafka Producer Alias

AttributeDescriptionKafka PropertyAllowed Values / Examples
NameSpecify a name for the alias.-any string
Standard
serversProvide a list of Kafka brokers with (optional) ports.bootstrap.serverskafka1.acme.com, kafka2.acme.com:9092
enableIdempotence

Enables the producer to write a message to Kafka exactly once.enable.idempotencetrueWrite message exactly once to the specified partition of the topic during the lifetime of the producer - without data loss and order per partition (default).
falseMessage may be delivered multiple times on e.g. connection failures.
Advanced
additionalProperties

Use this to directly set properties of the Kafka producer.

Using this attribute, you can also overwrite the dedicated settings above. In this case,

  • the Compiler will show a warning,
  • the service will log a warning on startup.

buffer.memory=67108864, retries=4294967294
Compression
compressionType

Provide a compression codec for compressing message sets.compression.typenoneNo compression (default).
gzipCompress with gzip.
Security
protocolSecurity

Provide the protocol used to communicate with the Kafka brokers.security.protocolplaintextUse plain text (default).
sslUse SSL.
sslPrivateKeyFileProvide the path to the client's private key file (PEM) to be used for authentication.ssl.key.locationa valid path
sslPrivateKeyPasswordProvide the password for the private key file.ssl.key.passworda valid password
sslPrivateKeyStringProvide the client's private key string (PEM format) to be used for authentication.ssl.key.pema valid key string
sslClientCertificateFileProvide the path to the client's public key file (PEM) to be used for authentication.ssl.certificate.locationa valid path
sslClientCertificateStringProvide the client's public key string (PEM format) to be used for authentication.ssl.certificate.pema valid key string
sslCALocation


Specify how to find CA certificate(s) for verifying the key of the Kafka broker.ssl.ca.location<path>File or directory path to the CA certificate(s).
probeGuess the location of the CA store and try to find the CA certificate(s) automatically.
bundledUse the CA bundle provided with PAS.
sslCAStringProvide the CA certificate string (PEM format) to verify the key of the Kafka broker.ssl.ca.pema valid  CA certificate string

Kafka Producer Adapter

AttributeDescriptionAllowed Values
alias

Specify the Kafka Producer alias the adapter should use to establish the connection.

any valid Kafka Producer alias

KafkaProducerAdapter Operations

produce

 AttributeTypeDirectionDescription
producerRecordProducerRecordinProvide the message and the target for the adapter to send the message to a Kafka topic.
recordMetaDataRecordMetaDataoutReturns some meta data about the processing the Kafka broker has done.

KafkaProducerAdapter Parameter Types

MessageHeader

AttributeTypeDescription
keyStringKey of the header.
value
BlobValue of the header.

RecordMetaData

AttributeTypeMandatoryDescriptionAllowed Values / Examples
topicString(tick)Kafka topic the message has been sent to.
partition
Integer(tick)Topic partition the message has been sent to.
offset
Integer(error)Offset of the message within the partition.
recordId
Integer(error)The message ID as provided with the call, or as generated if it has not been specified.
keySize
Integer(tick)Actual size of the key in bytes.
valueSize
Integer(tick)Actual size of the value in bytes.
timestamp
DateTime(error)A processing timestamp (UTC). See timestampType for what the timestamp refers to.
timestampType


TimestampType(tick)Indicates what the timestamp refers to.NotAvailableTimestamp is unknown.
CreateTimeTimestamp relates to message creation time as set by a Kafka broker.
LogAppendTimeTimestamp relates to the time a message was appended to a Kafka log.
persistedStatus


PersistedStatus(tick)Status of the message.NotPersistedMessage was never transmitted to the broker, or failed with an error indicating it was not written to the log.
PersistedMessage was written to the log and acknowledged by the broker.
PossiblyPersistedMessage was transmitted to broker, but no acknowledgement was received.

ProducerRecord

AttributeTypeMandatoryDescription
topicString(tick)Specify the topic the message should be sent do.
partition
Integer(error)Specify the partition the message should be send to.
key
Blob(error)Specify a key the message should be filed to.
id
Integer(error)Will be generated. We recommend not to set one manually.
headers
Array of MessageHeader(error)Specify headers if you want to provide additional information on the  message content for e.g. routing or filtering use cases.
value
Blob(error)Specify the actual message content. Only payload of type Blob is supported.

On this Page:
Related Documentation:
  • No labels