#kafka #ring-buffer #queue #pub-sub

bin+lib franz

a simple, friendly, and blazingly fast alternative to Apache Kafka

14 releases (6 breaking)

0.7.5 Oct 29, 2024
0.7.4 Oct 29, 2024
0.6.2 Oct 18, 2024
0.5.2 Oct 15, 2024
0.1.0 Jun 26, 2024

#291 in HTTP server

Download history 74/week @ 2024-09-14 494/week @ 2024-09-21 128/week @ 2024-09-28 243/week @ 2024-10-05 168/week @ 2024-10-12 343/week @ 2024-10-19 415/week @ 2024-10-26 79/week @ 2024-11-02 4/week @ 2024-11-09 3/week @ 2024-11-16

107 downloads per month

MIT license

17KB
345 lines

Franz

A simple and friendlier persistent message-queue / pub-sub built for speed (blazingly fast)!

The goal of Franz is to be able to handle millions of messages per second with a light memory footprint (it is however, rough on the disk).

Usage

franz --path /path/to/store/data

see franz --help for more details.

Protocol

[message length : u32]([key]=[value] : utf8)

mandatory keys

  • version
  • topic
  • api

example key-values

version=1,topic=test_topic_name,api=produce

Example

spin up a franz instance

franz --path /tmp/franz-test

in another terminal connect to the instance with netcat

echo -ne "\x00\x00\x00\x20version=1,topic=test,api=produce" | nc localhost 8085

send some (newline delimited) messages

hello
world
msg3

Dependencies

~7–15MB
~196K SLoC