r/learnjava • u/mightegas • 7h ago
Kafka-Backed GraphQL Subscriptions with Spring and Atleon
This demo project shows how GraphQL subscriptions backed by Kafka can be implemented in Spring applications using natively reactive clients from Atleon.
While attempting to maximize simplicity, this project accomplishes the following:
- Backing GraphQL subscriptions with either shared (application-wide) or dedicated/per-invocation consumer instances
- Initiate subscription from historical timestamp
- Full integration testing via native Web Sockets and interactive UI via GraphiQL
This class contains the bulk of interesting implementation details.
Check it out, and please share your feedback/thoughts!