Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kafka client #143

Open
lpil opened this issue Jun 4, 2024 · 5 comments
Open

Kafka client #143

lpil opened this issue Jun 4, 2024 · 5 comments

Comments

@lpil
Copy link
Member

lpil commented Jun 4, 2024

No description provided.

@lpil lpil converted this from a draft issue Jun 4, 2024
@zwubs
Copy link

zwubs commented Sep 11, 2024

I have a Kafka client I started on called nectar, it's been a while since I worked on it. I might come back to it some day, but for now other projects have taken my interest. But if someone wants to fork and run with it, feel free!

@lpil
Copy link
Member Author

lpil commented Sep 11, 2024

Awesome!

@zwubs
Copy link

zwubs commented Sep 12, 2024

For this client, would the hope be that it work for both the Erlang & JavaScript targets? In nectar I was planning on pretty heavily making use of actors, and also there's a lot of non-byte aligned decoding & encoding going on.

@lpil
Copy link
Member Author

lpil commented Sep 12, 2024

I suspect there's not much one could share between the two targets here, but if there's any protocol stuff which could be shared that would be great.

@zwubs
Copy link

zwubs commented Sep 13, 2024

Good call out! I'd stubbed out a project (ambrosia) to work on some codegen for making decoders and encoders. The Kafka protocol gets a bit weird with its versioning, I'm not sure the best way to represent that in Gleam. But, if I never get to it here's some resources I've come across that could help someone else get a protocol library up and running:

  • Apache keeps all their protocol messages in (what I think is) a proprietary JSON format in their Kafka Github repo .
  • The project kafka-protocol-rs has been a great reference for protocol stuff, and it's where I got the initial idea for codegen.
  • And if someone is just getting started, Apache's Kafka protocol documentation is a huge help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants