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@@ -2,9 +2,12 @@2 "type" : "record",3 "namespace" : "Tutorialspoint",4 "name" : "Employee",5 "fields" : [6 - { "name" : "Name"7 - { "name" : "Age"
8 - { "name" : "Town"
9 ]10 - }2 "type" : "record",3 "namespace" : "Tutorialspoint",4 "name" : "Employee",5 "fields" : [6 + { "name" : "Name", "type" : "string" },7 + { "name" : "Age", "type" : "int" },8 + { "name" : "Department", "type" : "string" },9 + { "name" : "Position", "type" : "string" },10 + { "name" : "Salary", "type" : "double" },11 + { "name" : "JoinDate", "type" : "string", "logicalType": "date" }12 ]13 + } -
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