"Lab" repository for experimenting with evented architectures and storage approaches.
Start a REPL:
bin/launchpad --emacsStart one or more services:
just postgres- Runs PostgreSQL via Docker, with authorization disables (AUTH_METHOD=trust). Use user=postgres, pwd=(blank) (or any password)just kafka- Downloads and installs Kafka from release tarballjust kafka-docker- Runs Kafka via Dockerjust kafdrop- Runs the Kafdrop web admin UI for Kafka (at localhost:9000)
When running Kafka from release tarball (just kafka) it
- downloads and runs from
download/kafka_<scala-version>-<kafka-version> - uses the configuration file at
config/server.properties - stores its data under
data/kafka_logs
Namespaces:
;; Persistence
net.arnebrasseur.event-lab.kafka ;; start a kafka consumer and producer
net.arnebrasseur.event-lab.postgres ;; create PostgreSQL table with JSONB column, store/fetch events
net.arnebrasseur.event-lab.xtdb ;; various ways to run XTDB, in-memory/rocksdb/jdbc/kafka and permutations thereofCLI access:
just psql <database> # SQL REPL
just kafka-ls # list consumer groups
just kafka-desc <group> # describe consumer group
© Copyright 2023 Arne Brasseur
Distributed under the terms of the MIT license, see the LICENSE file.