fs2-kafka | Functional Kafka Streams for Scala | Stream Processing library
kandi X-RAY | fs2-kafka Summary
kandi X-RAY | fs2-kafka Summary
Functional Kafka Streams for Scala
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fs2-kafka
fs2-kafka Key Features
fs2-kafka Examples and Code Snippets
Community Discussions
Trending Discussions on fs2-kafka
QUESTION
i'm on my journey to deepen my knowledge in fs2, and want to try fs2-kafka for a use case where i would replace akka stream. The idea is simple, read from kafka and post data via http request to a sink, then commit back to kafka on success. So far i can't really figure out the http part. In akka stream / akka http you have out of the box a flow for that https://doc.akka.io/docs/akka-http/current/client-side/host-level.html#using-a-host-connection-pool
...ANSWER
Answered 2021-Oct-09 at 16:10The thing with the typelevel ecosystem is that everything is just a library, you don't need examples on how many of them interact together, you just need to understand how each library works and the basic rules of composition.
QUESTION
I am using fs2-kafka to read from embedded-kafka.
I create the embedded kafka using withRunningKafkaOnFoundPort
, create topic and publish a few messages. However when I try to read it back with fs2-kafka I get a NullPointerException. I have isolated a test case and the code is below.
Here is my code:
...ANSWER
Answered 2020-Jul-01 at 15:31Turns out the problem is that the key type in ConsumerSettings[IO, String, String]
is String
but embedded-kafka writes Null
as a key, so on deserializing the key it fails with NullPointerException. Setting key type to Unit
solves the problem with exception.
Another problem is that withRunningKafkaOnFoundPort
finished before the evaluation of the IO starts. To have it running it is needed to make a Resource
from embedded-kafka and wrap the IO into that.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fs2-kafka
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page