- Kafka on localhost:9092
- postgresql on localhost:5432
(docker compose in /docker)
-
Start the project
-
curl http://localhost:8080/test-ok
(new record in DB y kafka -> ok) -
STOP kafka
-
curl http://localhost:8080/test-ok
(new record in DB!! -> not ok)
- Expected result after step 3: is no records to be found in DB (and Kafka). Everything should be rollback.
- Actual result: there are new record in DB.