-
Notifications
You must be signed in to change notification settings - Fork 9
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
IBM/sarama Go client library for Apache Kafka support #68
Conversation
Depends on branch mk_upload (another pull request) |
92494f9
to
939f336
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kafka needs to be a separate package, see docs/diagrams for inspiration.
… using docker-compose (the only service currently supported is UI, but more services can be added later)
…e to make it work locally)
…and consumer in same service. Two different consumer groups for same topic in different services.
…ile. The ".env" file is excluded from git but there is a ".env.example" file commited
…-compose file for debug in Goland.
… (implementation can then be different frameworks: Kafka, Pulsar, etc)
…(implementation can then be different frameworks: Kafka, Pulsar, etc)
… 2.8 for ui and kafka message handling.
… some minor tests
…g, se docker-compose.yaml and "ui" for what ip to use (172.16.50.50:40000 is currently used)
"vc/pkg/trace" | ||
) | ||
|
||
func New(ctx context.Context, cfg *model.Cfg, log *logger.Log, apiv1Client *apiv1.Client, tracer *trace.Tracer) (messagebroker.EventConsumer, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment above all exported functions/types (easier to understand later when using them)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer writing clear, concise, and readable code. If the names of types, variables, and functions are meaningful, they often make the code's intent obvious. In such cases, additional comments explaining the obvious can clutter the codebase and make it harder to focus on what matters.
Do you find the code in the file hard to read and understand?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.