/spring-data-series

Spring Data Sample Series

Primary LanguageJava

Streaming Microservices with Spring Cloud Stream

This repository contains several examples for implementing Streaming, R2DBC and CDC strategies.

This repository uses Git LFS to store some larger assets.

Kafkaesque

Kafka Streams applications:

polls: This application will take votes from an HTTP source, and produce results into a topic counting. The counting topic is joined with polls topic, which adds descriptions to the results. These results are then sent to a websocket sink for downstream consumers (maybe cached, single page generation, etc...).

Silo

Rather than publishing every datapoint (users, polls, choices, etc..) to streams, this app takes the approach of an existing RDBMS that contains low-cardinality entries, with Change Data Capture to support the streaming backends.

poll-topics: This repository takes CDC updates from a RDBMS then pushes new poll-choices to the 'polls' stream for reference during the results procedure.

Links

Spring Cloud Stream reference

SCS Applications

Deployable SCS apps bound to specific broker

Kafka Streams Binder Docs

Spring Kafka Docs useful when configuring kafka connectivity

SpEL Docs

Websocat tool