API Reference
Korvet implements the Kafka protocol. This page documents the supported APIs.
Kafka Protocol APIs
Produce API
Send messages to topics.
Request:
ProduceRequest {
topic: string
partition: int32
messages: [
{
key: bytes
value: bytes
headers: [(string, bytes)]
timestamp: int64
}
]
}
Response:
ProduceResponse {
topic: string
partition: int32
offset: int64
timestamp: int64
}
Fetch API
Read messages from topics.
Request:
FetchRequest {
topics: [
{
topic: string
partitions: [
{
partition: int32
offset: int64
max_bytes: int32
}
]
}
]
max_wait_ms: int32
min_bytes: int32
}
Response:
FetchResponse {
topics: [
{
topic: string
partitions: [
{
partition: int32
high_watermark: int64
messages: [
{
offset: int64
key: bytes
value: bytes
headers: [(string, bytes)]
timestamp: int64
}
]
}
]
}
]
}