gleam-lang / awesome-gleam

💯 A collection of Gleam libraries, projects, and resources
1.35k stars 77 forks source link

Kafka client #143

Open lpil opened 5 months ago

zwubs commented 2 months ago

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 commented 2 months ago

Awesome!

zwubs commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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: