#queue #client-server #cli #data #test-server #franz

franz-client

client for franz server written in rust

6 releases

0.7.2 Oct 29, 2024
0.6.2 Oct 18, 2024
0.1.3 Oct 4, 2024
0.1.0 Sep 25, 2024

#6 in #test-server

Download history 132/week @ 2024-10-09 214/week @ 2024-10-16 95/week @ 2024-10-23 91/week @ 2024-10-30 14/week @ 2024-11-06 4/week @ 2024-11-13 3/week @ 2024-11-20 4/week @ 2024-12-04 5/week @ 2024-12-11

509 downloads per month
Used in mostlybot

MIT license

7KB
83 lines

Franz Client

Protocol

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

mandatory keys

  • version
  • topic
  • api

example key-values

version=1,topic=test_topic_name,api=produce

msg1\nmsg2\nmsg3\n

Example

void franz_send(franz_producer_t tx, char *data, size_t len);

This example assumes you have a franz server running on port 8085 bound to localhost.

You can spin up a test server with franz --path /tmp/franz-test then test the client with cargo run --example client

Dependencies

~230–680KB
~16K SLoC