2024-08-05 17:17:20 +08:00
|
|
|
redpanda
|
|
|
|
========
|
|
|
|
|
|
|
|
[Redpanda][1] is a streaming data platform for developers. Kafka API
|
|
|
|
compatible. 10x faster. No ZooKeeper. No JVM!
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ docker compose up -d
|
|
|
|
$ docker compose exec redpanda bash
|
|
|
|
>>> rpk cluster info
|
2024-08-05 17:43:48 +08:00
|
|
|
>>> rpk topic create test
|
|
|
|
>>> rpk topic alter-config test --set replication.factor=3
|
|
|
|
>>> echo "Pandas are fabulous!" | rpk topic produce test
|
|
|
|
>>> rpk topic consume test --num 1
|
2024-08-05 17:17:20 +08:00
|
|
|
>>> exit
|
2024-08-05 17:43:48 +08:00
|
|
|
$ curl 127.0.0.1:4195/post -F hello=world
|
2024-08-05 17:17:20 +08:00
|
|
|
$ curl 127.0.0.1:9644/public_metrics
|
|
|
|
```
|
|
|
|
|
|
|
|
[1]: https://github.com/redpanda-data/redpanda
|