This repository contains a fully packed demo application with Kafka producer and consumer. Producers is implemented as SvelteKit web UI application and consumer is a trivial Golang service.
Disclaimer: this repos is only for demonstration purposes and is intended to be a trivial local sandbox, not a production-ready solution in any kind.
Services:
UI_Messages
with arbitrary text.UI_Messages
Kafka topic, count words in it and save text and words count into PostgreSQL table user_text
.Infrastructure:
docker-compose -f docker-compose.full.yml up -d --build
to start services with all infrastructure.kafka-create-topics
container, it only creates a UI_Messages
topic and will exit after job is done. Running it one more time after docker compose was up is a plus.kafka-test-app-ui
is available from localhost:3000
.kafka-ui
is available from localhost:8080
.pg-admin
is available from localhost:5050
.[email protected]
и root
respectively.foo
and bar
respectively. Server in pg-admin
is already registered, you just need type a password.docker-compose -f docker-compose.full.yml down --rmi=all --volumes
.