Kafka Transactional Sample

- Added transactional and some more required properties
 - Setting read_commited in consumer
 - Added license and author tag
 - Added more fleshed out readme
 - Added alternate failure and removed unique index
 - Update spring boot starter parent to 2.1.0.BUILD-SNAPSHOT
This commit is contained in:
Bjarte S. Karlsen
2018-07-26 17:31:10 +02:00
committed by Soby Chacko
parent e927b01bec
commit 2460ff21f7
21 changed files with 1749 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
version: '3'
volumes:
data-volume: {}
services:
mysql:
image: mariadb
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: pwd
MYSQL_DATABASE: sample_mysql_db
volumes:
- data-volume:/var/lib/mysql
kafka:
image: wurstmeister/kafka
container_name: kafka-jdbc-txn-source
ports:
- "9092:9092"
environment:
- KAFKA_ADVERTISED_HOST_NAME=127.0.0.1
- KAFKA_ADVERTISED_PORT=9092
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
depends_on:
- zookeeper
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
environment:
- KAFKA_ADVERTISED_HOST_NAME=zookeeper