Merge branch 'v1.13' into update-sdk-feature-table

This commit is contained in:
Marc Duiker 2024-04-10 15:18:52 +02:00 committed by GitHub
commit c3c58bfdc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -462,7 +462,8 @@ You can configure pub/sub to publish or consume data encoded using [Avro binary
### Configuration
{{% alert title="Important" color="warning" %}}
Currently, only message value serialization/deserialization is supported. Since cloud events are not supported, the `rawPayload=true` metadata must be passed.
Currently, only message value serialization/deserialization is supported. Since cloud events are not supported, the `rawPayload=true` metadata must be passed when publishing Avro messages.
Please note that `rawPayload=true` should NOT be set for consumers, as the message value will be wrapped into a CloudEvent and base64-encoded. Leaving `rawPayload` as default (i.e. `false`) will send the Avro-decoded message to the application as a JSON payload.
{{% /alert %}}
When configuring the Kafka pub/sub component metadata, you must define:
@ -533,7 +534,6 @@ def subscribe():
'topic': 'my-topic',
'route': 'my_topic_subscriber',
'metadata': {
'rawPayload': 'true',
'valueSchemaType': 'Avro',
} }]
return subscriptions