-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Labels
enhancementNew feature or requestNew feature or request
Description
It is currently impossible to produce messages over 1MB because KafkaAttribute.MaxMessageBytes is never used in KafkaProducerFactory. MaxMessageBytes is also not exposed via KafkaOptions, so I can't set it in host.json either.
Additionally, MaxMessageBytes can't be set directly as an attribute:
[Kafka(@"%Merge_Broker%",
@"%Merge_TopicName%",
MaxMessageBytes = 999999999, // <-------
Protocol = BrokerProtocol.Plaintext,
AuthenticationMode = BrokerAuthenticationMode.NotSet,
SslCaLocation = "%Merge_SslCaLocation%")] IAsyncCollector<KafkaEventData<string>> collector,
Because int?
is not a valid attribute type in C#.
shaunco
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request