Skip to content

Commit 5fc5e9f

Browse files
committed
added: README
1 parent 369c857 commit 5fc5e9f

File tree

1 file changed

+55
-1
lines changed

1 file changed

+55
-1
lines changed

README.md

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,56 @@
11
# Franz
2-
[WIP] A simple and friendlier alternative to Apache Kafka
2+
A simple and friendlier alternative to Apache Kafka
3+
4+
5+
### Usage
6+
```doc
7+
franz --path /path/to/store/data
8+
```
9+
10+
### Protocol
11+
The majority of the protocol is newline delimited and the order of messages is more important
12+
13+
1. the kind of client (num)
14+
2. topic name
15+
16+
```doc
17+
0\ntest\n
18+
^ ^
19+
| |
20+
| topic name
21+
|
22+
client kind
23+
```
24+
25+
client kind is defined as a number:
26+
0 => producer
27+
1 => consumer
28+
29+
### Example
30+
spin up a franz instance
31+
```doc
32+
franz --path /tmp/franz-test
33+
```
34+
35+
in another terminal connect to the instance with netcat
36+
```doc
37+
nc localhost 8085
38+
```
39+
40+
make a producer client by sending a "0"
41+
```doc
42+
0
43+
```
44+
45+
select and create a topic by sending a "test_topic"
46+
```doc
47+
test_topic
48+
```
49+
50+
send some messages
51+
```doc
52+
hello
53+
world
54+
msg3
55+
```
56+

0 commit comments

Comments
 (0)