tadeifelipe
Integration Tests with Kafka
Hello, everyone!
I’ve started learning for a technical interview involving the use of an API to send messages to a Kafka Cluster.
I’ve observed a limited number of examples for using Kafka with Elixir. Perhaps I should consider using umbrella projects? However, my main question is: How can I perform integration tests with a Kafka mock server to send and consume messages?
In other languages, for instance, I would use test-containers, but in Elixir, I’m uncertain about the equivalent approach.
I apologize if my questions seem straightforward; I’m relatively new to learning Elixir.
Thank you!
Marked As Solved
LostKobrakai
There is a testcontainers implementation for elixir Testcontainers - A Testcontainers implementation for Elixir
Also Liked
dimitarvp
There is exactly zero problem bringing up a container for integration tests in Elixir as well, there’s nothing special about it, it’s still Docker + Compose in the end. ![]()
As for Kafka, I believe Overview — brod v4.5.5 is the accepted way of doing it. It also has integration with GitHub - elixir-broadway/broadway: Concurrent and multi-stage data ingestion and data processing with Elixir · GitHub.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








