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

add eventbus for kafka #228

Merged
merged 1 commit into from
Sep 24, 2018
Merged

add eventbus for kafka #228

merged 1 commit into from
Sep 24, 2018

Conversation

jkralik
Copy link
Contributor

@jkralik jkralik commented Sep 20, 2018

Summary

Add event bus for Kafka

How to test

Use steps 1 and 2 from: https://kafka.apache.org/quickstart

@@ -43,3 +44,16 @@ services:
- pubsub
- start
- "--host-port=0.0.0.0:8793"

kafka:
image: wurstmeister/kafka

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the "more official" image from Kafka. I would propose to use https://hub.docker.com/r/confluent/kafka/ and also stick image version it should supposed to work. Test may fail in the future when new version with breaking change is introduced. Same with zookeeper.

@giautm
Copy link

giautm commented Sep 20, 2018

@jkralik : Hi, thank you for your implement, but I think it should be live in a separate repository like eh-kafka (Issues: #147). Then, we can add more feature to that repos, like #163

@maxekman
Copy link
Member

Cool stuff!

Sounds good to publish as a separate repo. I have not been able to move the other implementations out yet. Be sure to still run the acceptance tests from here. Also make a PR here with a link in the readme.

@jkralik
Copy link
Contributor Author

jkralik commented Sep 21, 2018

I moved event bus kafka to: https://github.com/Kistler-Group/eh-kafka

For Kafka i have problem with timeout because initialization of subscription is too slow. With this patch you can define timeout per test.

Copy link
Member

@maxekman maxekman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but see the minor comment.

Also, please create a new section in the readme and link to your implementation three.

@@ -35,7 +35,7 @@ import (
// eventbus.AcceptanceTest(t, bus1, bus2)
// }
//
func AcceptanceTest(t *testing.T, bus1, bus2 eh.EventBus) {
func AcceptanceTest(t *testing.T, timeout time.Duration, bus1, bus2 eh.EventBus) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put timeout as last arg.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! + added link to kafka

- add link to kafka event bus
@jkralik
Copy link
Contributor Author

jkralik commented Sep 21, 2018

@maxekman This fails in test that I didn't touch. Could you pls check why?

@maxekman
Copy link
Member

maxekman commented Sep 21, 2018

Great! Yeah, there is unfortunately a test that is unstable. I’ll go ahead and merge.

@maxekman maxekman merged commit e0c5d00 into looplab:master Sep 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants