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

Question: Why use goka over plain Sarama ? #168

Closed
prune998 opened this issue Jan 14, 2019 · 2 comments
Closed

Question: Why use goka over plain Sarama ? #168

prune998 opened this issue Jan 14, 2019 · 2 comments
Labels

Comments

@prune998
Copy link

I don't really see the point in goka over Sarama, which is used for the Kafka communication anyway ?

goka seem only to ease the use of emitters/receivers instead of some for loops with channels...
What would be the arguments to re-write my 20 micro-services using sarama / saramacluster to use goka ?
Would goka be more efficient ?

I don't mean to be rude, i'm just quick checking to understand is goka is better overall or just easier for new projects ?

@db7
Copy link
Collaborator

db7 commented Jan 14, 2019

Goka is about state. If you don't have state, Goka is probably not the right library for you.

Goka provides components to help you to build stateful systems that react to input streams with low latency and can scale. If you need to aggregate a stream or build a stateful system, Goka takes care of keeping your state safe inside Kafka -- you won't need to connect to another system and think about scaling the storage or about replicating the storage since Kafka gives you these features already. Having the state in Kafka also allows you to compose systems by observing the state of each other. That is really powerful. Perhaps this Goka introduction can be helpful.

That said, if you already have your 20 microservices built with Sarama and you handle your state properly, I don't see why you should rewrite them with Goka. And I don't know if they would be more efficient with Goka. It depends on how you handle your state.

Hope that helped.

If you'd like to try Goka and need help to get started, let me know.

@db7 db7 added the question label Jan 14, 2019
@frairon
Copy link
Contributor

frairon commented Feb 26, 2019

Closing the issue as the question seems to be answered. Feel free to reopen if something is still unclear.

@frairon frairon closed this as completed Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants