Skip to content

My playground for kotlin, spring flux, kafka-streams, elastic, all under the guise of a service for managing a book library

Notifications You must be signed in to change notification settings

jbotuck/library-service

Repository files navigation

Book Library

I've spent most of 2018 working with kafka and kafka streams during my day job. This project is my playground for seeing what's possible with ktables.

I use kafka as the source of truth for all data, but I use kafka connect to present a searchable view of the data using elastic.

To setup the development environment, just execute docker-compose up. This will start up kafka, elastic, and connect. When kafka-connect comes online POST the following to localhost:8083/connectors to start the kafka to elastic connecter

{
   "name": "elasticsearch-sink", 
   "config": {
   	"connector.class": "io.confluent.connect.elasticsearch.ElasticsearchSinkConnector",
   	"tasks.max" : "1",
   	"topics": "MEMBER.VIEW.ELASTIC",
   	"connection.url": "http://elastic:9200",
   	"type.name": "_doc",
   	"topic.index.map":"MEMBER.VIEW.ELASTIC:member",
   	"schema.ignore": "true"
   }
}

About

My playground for kotlin, spring flux, kafka-streams, elastic, all under the guise of a service for managing a book library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages