Key-Value - Chained
In this example we will show how we can create a service whose source and sink are both key-value.
Prerequisites
This guide uses local
Fluvio cluster. If you need to install it, please follow the instructions at here.
Dataflow
Overview
For this example, we will write a dataflow that tracks the manufacture location of a car based on the VIN number. The source is key-value
whose key is the vin and the value is the car info. The sink's key is the manufacture location and the value is an object with the old key.

Define the types
Like the previous example, we will need to define our types.
types:
car-info:
type: object
properties:
year:
type: u32
brand:
type: string
model:
type: string
car-short:
type: object
properties:
vin:
type: string
desc:
type: string