kafka-interchange: Serialization for kafka wire protocol

[ bsd3, data, library ] [ Propose Tags ]


[Index] [Quick Jump]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS]
Dependencies base (>=4.11 && <5), bytebuild (>=0.3.14), byteslice (>= && <, bytesmith (>=0.3 && <0.4), bytestring (>=0.11), castagnoli (>=, chronos (>=1.1.5), containers (>=0.5), contiguous (>=0.6), ip (>=1.5.0 && <1.8), mtl (>=2.2.2), natural-arithmetic (>=0.1.3), primitive (>= && <0.10), primitive-unaligned (>= && <, stm (>=, text (>=2.0), text-short (>=0.1.5), torsor (>=0.1 && <0.2), transformers (>=0.5 && <0.7), wide-word (>=0.1.5), zigzag (>=0.0.1) [details]
License BSD-3-Clause
Copyright 2023 Layer 3 Communications
Author Andrew Martin
Maintainer amartin@layer3com.com
Category Data
Uploaded by andrewthad at 2024-03-21T16:08:43Z
Downloads 21 total (4 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2024-03-21 [all 1 reports]

Readme for kafka-interchange-

[back to package description]


This library provides serialization and deserialization for exchanges with Kafka. This takes the form of: data types, encode functions, and decode functions. This library is not a Kafka client. A Kafka client must be a much more opinionated piece of software. The purpose of this library is for Kafka clients to be built on top of it.

Module Structure

There are two module namespaces in this library: Kafka.Interchange and Kafka.Data. Pseudoregex for modules in the Kafka.Interchange namespace:


For example:


The message type "Message" is special. It's the wrapper that all other message types are serialized inside of. Request modules include a encode function. Response modules include a decode function.

Some shared types are used by both requests and responses. For such types, we use the Kafka.Data namespace. For example:


These are not versioned, and they include both encode and decode functions.