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

Can this project be used as a library? #101

Closed jsirianni closed 3 years ago

jsirianni commented 3 years ago

I have a use-case where I need to embed this project into another project, with no need for a Kafka (or other message queue) backend.

Is this project designed with this use-case in mind?

lspgn commented 3 years ago

Hello, Yes entirely. Although you should look at https://github.com/netsampler/goflow2/blob/main/cmd/goflow2/main.go which features some changes to make it more flexible (transports/formats... are an import).

slrtbtfs commented 3 years ago

I recently used this project as a library in a program that doesn't use Kafka and instead puts the received flow messages in a custom pipeline, so I can confirm that this is possible and works quite well.

If you have further questions feel free to ask me. (I think my github profile has a public Email)