pranadb icon indicating copy to clipboard operation
pranadb copied to clipboard

Support ingest from NATs in sources

Open gedw99 opened this issue 2 years ago • 6 comments

Is there any interest / need for supporting NATS Jetstream ?

I suspect that supporting both might be quite easy since Pranadb is only subscribing to topic changes and not doing any publications to Kafka / nats

gedw99 avatar Sep 11 '22 15:09 gedw99

Could you elaborate a bit on what you mean by supporting NATS Jetstream? Do you mean ingesting data from there into Prana?

Prana will be doing publishing to Kafka soon (sinks)

purplefox avatar Sep 13 '22 18:09 purplefox

Yes I mean that both Kafka and NATS Jetstream can be supported.

There is an abstraction library in golang that already does this . I just need to search for it on GitHub.

I guess the other aspect of this is if the team members want this. Nats used to kind of suck but it’s really stable and well featured these days

gedw99 avatar Sep 13 '22 18:09 gedw99

Makes sense. So basically extend source to also work with NATS. Yes, I think that would be nice to have

purplefox avatar Sep 14 '22 09:09 purplefox

Hey @purplefox

Check out this: https://github.com/nats-io/nats-kafka/blob/main/docs/config.md

Its a Kafka / NATS bridge that works both ways. Nats --> Kafka and Kafka --> NATS.

It might be one one to achieve the Issue.. Or it might be over complicated. I am only playing with it for a day or two so far, and still undecided. So figured its worth raising here.

gedw99 avatar Oct 04 '22 12:10 gedw99

sorry i have not had time to work through this.

i want to but got too many things.

if you have any ideas you want to discuss around this feel free to drag me in.

gedw99 avatar Dec 10 '22 12:12 gedw99

@purplefox https://github.com/nats-io/k8s/tree/main/helm/charts/nats-kafka

its clearly been used for real. This makes running it quite easy.

gedw99 avatar Dec 10 '22 12:12 gedw99