cloudflare / goflow

The high-scalability sFlow/NetFlow/IPFIX collector used internally at Cloudflare.
BSD 3-Clause "New" or "Revised" License
852 stars 171 forks source link

Add nats support #115

Open nathanejohnson opened 1 year ago

nathanejohnson commented 1 year ago

NATS is now supported by clickhouse, so I decided it would be a lot nicer to lab up nats for proof of concept work than a full kafka cluster. This doesn't support jetstream yet, since clickhouse doesn't support it yet, but that's why I haven't implemented any retry logic as that seems to be a feature they're working towards. I'm not sure if this is code you'd be interested in merging, but I thought I would throw it out there just in case you see value in it.