Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Ported KafkaSource to bindings api #1037

Merged

Conversation

slinkydeveloper
Copy link
Contributor

Fixes #975

Performance improvements

Master:

BenchmarkHandle/Benchmark_Handle-8 	   51207	     46508 ns/op	   20200 B/op	     334 allocs/op

This PR:

BenchmarkHandle/Benchmark_Handle-8 	  225570	     10643 ns/op	    5675 B/op	     125 allocs/op

Around 3x less memory and 4.5x less CPU

Release Note

Now KafkaSource implements the CloudEvents Kafka binding spec, so it can read both binary and structured events from kafka topics

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Mar 18, 2020
@knative-prow-robot knative-prow-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Mar 18, 2020
@slinkydeveloper
Copy link
Contributor Author

/hold

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 18, 2020
@slinkydeveloper
Copy link
Contributor Author

/unhold

This is ready for me

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 18, 2020
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
@knative-metrics-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-knative-eventing-contrib-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
kafka/source/pkg/adapter/adapter.go 65.4% 57.8% -7.6
kafka/source/pkg/adapter/message.go Do not exist 79.7%

@n3wscott
Copy link
Contributor

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 18, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: n3wscott, slinkydeveloper

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 18, 2020
@knative-prow-robot knative-prow-robot merged commit 6c0274d into knative:master Mar 18, 2020
@slinkydeveloper slinkydeveloper deleted the kafka_source_bindings_api branch March 18, 2020 14:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port KafkaSource to cloudevents/sdk-go bindings
6 participants