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
Non-blocking data plane components #438
Non-blocking data plane components #438
Conversation
Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #438 +/- ##
============================================
- Coverage 77.35% 77.14% -0.22%
Complexity 262 262
============================================
Files 59 59
Lines 1877 1877
Branches 83 83
============================================
- Hits 1452 1448 -4
- Misses 320 321 +1
- Partials 105 108 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
data-plane/receiver/src/main/java/dev/knative/eventing/kafka/broker/receiver/Main.java
Outdated
Show resolved
Hide resolved
...main/java/dev/knative/eventing/kafka/broker/dispatcher/http/HttpConsumerVerticleFactory.java
Outdated
Show resolved
Hide resolved
...main/java/dev/knative/eventing/kafka/broker/dispatcher/http/HttpConsumerVerticleFactory.java
Outdated
Show resolved
Hide resolved
...main/java/dev/knative/eventing/kafka/broker/dispatcher/http/HttpConsumerVerticleFactory.java
Outdated
Show resolved
Hide resolved
...main/java/dev/knative/eventing/kafka/broker/dispatcher/http/HttpConsumerVerticleFactory.java
Outdated
Show resolved
Hide resolved
...main/java/dev/knative/eventing/kafka/broker/dispatcher/http/HttpConsumerVerticleFactory.java
Outdated
Show resolved
Hide resolved
3f1b0d2
to
0e1cee1
Compare
data-plane/tests/src/test/java/dev/knative/eventing/kafka/broker/tests/DataPlaneTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
0e1cee1
to
ba5f9da
Compare
/unhold |
@slinkydeveloper can we merge this? |
I wanted to do another pass, i'm on it |
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 find the code here a little bit convoluted, I left some minor comments and we can go ahead merging it. I would love to improve it in next iterations to simplify it
...lane/receiver/src/main/java/dev/knative/eventing/kafka/broker/receiver/ReceiverVerticle.java
Show resolved
Hide resolved
...lane/receiver/src/main/java/dev/knative/eventing/kafka/broker/receiver/ReceiverVerticle.java
Show resolved
Hide resolved
...main/java/dev/knative/eventing/kafka/broker/dispatcher/http/HttpConsumerVerticleFactory.java
Outdated
Show resolved
Hide resolved
...main/java/dev/knative/eventing/kafka/broker/dispatcher/http/HttpConsumerVerticleFactory.java
Outdated
Show resolved
Hide resolved
...main/java/dev/knative/eventing/kafka/broker/dispatcher/http/HttpConsumerVerticleFactory.java
Outdated
Show resolved
Hide resolved
d9bd758
to
bd65169
Compare
Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
bd65169
to
5a65fa0
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pierDipi, 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 |
Can you lgtm? |
/lgtm Sorry i forgot it 😄 |
No problem :) |
* Dispatcher non-blocking Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> * Receiver non-blocking Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> * Refactor our core factory and rename factories Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> * Rename method, delete comments and use HashMap constructor Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
…ensions#2720) (knative-extensions#438) We're setting it after a Consumer is created. Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Sharing a
WebClient
across multiple verticles is discouraged byVertx, see https://vertx.io/docs/vertx-core/java/#_httpclient_usage.
That section talks about the HTTP Client, the
WebClient
isn't different.Main changes are around when objects are built and in which Vertx context.
Proposed Changes
Release Note
/kind enhancement