Record Transcode Produce

Convert JSON records to Avro before they reach the clusterv1.3+

Convert JSON records produced by a client to Avro before Event Gateway writes them to the backend cluster.

This example transcodes the target Avro schema directly in the policy using inline.

This change is irreversible. Use the produce phase when every downstream consumer of the topic reads Avro.

Prerequisites

Environment variables

  • PARENT_POLICY_ID: The UUID of the parent Schema Validation policy.

Set up the policy

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!