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

IBM/sarama Go client library for Apache Kafka support #68

Merged
merged 51 commits into from
Oct 8, 2024
Merged

Conversation

matskramer
Copy link
Contributor

No description provided.

@matskramer matskramer self-assigned this Jun 24, 2024
@matskramer
Copy link
Contributor Author

Depends on branch mk_upload (another pull request)

Copy link
Collaborator

@masv3971 masv3971 left a 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.

cmd/apigw/main.go Outdated Show resolved Hide resolved
cmd/apigw/main.go Outdated Show resolved Hide resolved
pkg/messagebrokers/event_consumer.go Outdated Show resolved Hide resolved
pkg/messagebrokers/event_consumer.go Outdated Show resolved Hide resolved
internal/apigw/apiv1/event_publisher.go Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
cmd/apigw/main.go Outdated Show resolved Hide resolved
cmd/ui/main.go Outdated Show resolved Hide resolved
docker-compose-goland-debug.yaml Show resolved Hide resolved
internal/mockas/apiv1/handlers.go Show resolved Hide resolved
internal/ui/apiv1/handlers.go Outdated Show resolved Hide resolved
internal/ui/httpserver/bind.go Outdated Show resolved Hide resolved
internal/ui/httpserver/bind.go Show resolved Hide resolved
internal/ui/httpserver/endpoints.go Show resolved Hide resolved
pkg/messagebrokers/kafka/kafka.go Outdated Show resolved Hide resolved
@matskramer matskramer marked this pull request as draft October 1, 2024 15:41
@matskramer matskramer marked this pull request as ready for review October 2, 2024 17:31
matskramer and others added 20 commits October 2, 2024 19:49
…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
… (implementation can then be different frameworks: Kafka, Pulsar, etc)
…(implementation can then be different frameworks: Kafka, Pulsar, etc)
…g, se docker-compose.yaml and "ui" for what ip to use (172.16.50.50:40000 is currently used)
internal/apigw/inbound/kafka_message_handler.go Outdated Show resolved Hide resolved
internal/apigw/inbound/kafka_message_handler.go Outdated Show resolved Hide resolved
pkg/messagebroker/kafka/kafka_generic.go Outdated Show resolved Hide resolved
pkg/messagebroker/kafka/kafka_generic.go Outdated Show resolved Hide resolved
pkg/messagebroker/kafka/kafka_generic.go Outdated Show resolved Hide resolved
pkg/messagebroker/kafka/kafka_generic.go Outdated Show resolved Hide resolved
pkg/messagebroker/kafka/kafka_generic.go Outdated Show resolved Hide resolved
cmd/mockas/main.go Show resolved Hide resolved
cmd/mockas/main.go Outdated Show resolved Hide resolved
cmd/mockas/main.go Show resolved Hide resolved
"vc/pkg/trace"
)

func New(ctx context.Context, cfg *model.Cfg, log *logger.Log, apiv1Client *apiv1.Client, tracer *trace.Tracer) (messagebroker.EventConsumer, error) {
Copy link
Collaborator

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)

Copy link
Contributor Author

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?

Copy link
Collaborator

Choose a reason for hiding this comment

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

pkg/messagebroker/kafka/consumer.go Show resolved Hide resolved
pkg/messagebroker/kafka/producer.go Outdated Show resolved Hide resolved
@matskramer matskramer added the enhancement New feature or request label Oct 7, 2024
@matskramer matskramer merged commit 76cd279 into main Oct 8, 2024
2 checks passed
@matskramer matskramer deleted the mk_sarama branch October 8, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants