Inventory adjusted (Changelog)
Indicates a change in inventory level
Event
-
2024-08-01 (latest)
⭐️ JSON SchemaAdded support for JSON Schema
InventoryAdjusted uses Avro but now also supports JSON Draft 7.
Using it with our Kafka Cluster
1. Create a new topic
Step 2: Prepare the JSON Message
Create a JSON file named
employee.json
with the following content:Step 3: Produce the Message to Kafka Topic
Use the Kafka producer CLI to send the JSON message:
Step 4: Verify the Message (Optional)
schema.avro CHANGED{0 "type" : "record",1 "namespace" : "Tutorialspoint",2 "name" : "Employee",3 "fields" : [4 - { "name" : "Name"5 - { "name" : "Age"
6 - { "name" : "Town"
7 ]8 - }0 "type" : "record",1 "namespace" : "Tutorialspoint",2 "name" : "Employee",3 "fields" : [4 + { "name" : "Name", "type" : "string" },5 + { "name" : "Age", "type" : "int" },6 + { "name" : "Department", "type" : "string" },7 + { "name" : "Position", "type" : "string" },8 + { "name" : "Salary", "type" : "double" },9 + { "name" : "JoinDate", "type" : "string", "logicalType": "date" }10 ]11 + } -
2024-07-11
New fieldAdded new field to schema
We added the new town property to the schema for downstream consumers.
-
2024-07-01
Breaking changeRemoved fields from schema, added new owners
Gender
property has been removed from the Schema of the eventAlso added the full stackers team as owners of this event