Skip to content

Conversation

@mxsm
Copy link
Member

@mxsm mxsm commented Apr 16, 2023

Fixes #3485

Motivation

Explain the content here.
Explain why you want to make the changes and what problem you're trying to solve.

Modifications

Describe the modifications you've done.

  • Added EventMesh's CloudEvents protocol to replace the SimpleMessage protocol.

  • The SimpleMessage protocol is temporarily not removed and the code is still present in the project. It will be removed in the future.

  • The protocol has been replaced in the SDK and runtime modules.

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
  • If a feature is not applicable for documentation, explain why?
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

@mxsm
Copy link
Member Author

mxsm commented Apr 16, 2023

@xwm1992 PTAL!
design document Reference link issue or email that I had sended.

@mxsm mxsm force-pushed the eventmesh-grpc-optimize-3485 branch from b3dee43 to 82800b0 Compare April 17, 2023 15:39
.addService(new ProducerService(this, sendMsgExecutor))
.addService(new ConsumerService(this, clientMgmtExecutor, replyMsgExecutor))
.addService(new HeartbeatService(this, clientMgmtExecutor))
.addService(new PublisherService(this, clientMgmtExecutor))
Copy link
Contributor

Choose a reason for hiding this comment

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

why publisherService use the clientMgmtExecutor?

import lombok.extern.slf4j.Slf4j;

@Slf4j
public abstract class AbstructPublishBatchCloudEventProcessor implements PublishProcessor<CloudEventBatch, CloudEvent> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Class Name Abstruct -> Abstract

@xwm1992
Copy link
Contributor

xwm1992 commented Jun 7, 2023

@mxsm please solve the conflicts.

@mxsm
Copy link
Member Author

mxsm commented Jun 7, 2023

@xwm1992 I will fix it later

@mxsm mxsm force-pushed the eventmesh-grpc-optimize-3485 branch from 3c34547 to e8116f2 Compare June 9, 2023 14:22
@mxsm mxsm requested a review from xwm1992 June 11, 2023 15:31
@mxsm
Copy link
Member Author

mxsm commented Jun 11, 2023

@xwm1992 I have removed the useless class.

@codecov
Copy link

codecov bot commented Jun 12, 2023

Codecov Report

Merging #3746 (192daa9) into master (d182e55) will increase coverage by 2.61%.
The diff coverage is 23.36%.

❗ Current head 192daa9 differs from pull request most recent head 76b6fce. Consider uploading reports for the commit 76b6fce to get more accurate results

@@             Coverage Diff              @@
##             master    #3746      +/-   ##
============================================
+ Coverage     14.29%   16.91%   +2.61%     
- Complexity     1326     1410      +84     
============================================
  Files           581      588       +7     
  Lines         28667    25743    -2924     
  Branches       2793     2376     -417     
============================================
+ Hits           4099     4355     +256     
+ Misses        24180    20954    -3226     
- Partials        388      434      +46     
Impacted Files Coverage Δ
...entmesh/common/enums/EventMeshDataContentType.java 0.00% <0.00%> (ø)
...pache/eventmesh/common/protocol/HeartbeatItem.java 0.00% <0.00%> (ø)
...he/eventmesh/common/protocol/SubscriptionMode.java 0.00% <0.00%> (ø)
...he/eventmesh/common/protocol/SubscriptionType.java 0.00% <0.00%> (ø)
...h/common/protocol/grpc/cloudevents/CloudEvent.java 9.34% <ø> (ø)
...mon/protocol/grpc/cloudevents/CloudEventBatch.java 0.00% <0.00%> (ø)
...protocol/grpc/cloudevents/ConsumerServiceGrpc.java 0.00% <0.00%> (ø)
...rotocol/grpc/cloudevents/EventMeshGrpcService.java 0.00% <0.00%> (ø)
...rotocol/grpc/cloudevents/HeartbeatServiceGrpc.java 0.00% <0.00%> (ø)
...rotocol/grpc/cloudevents/PublisherServiceGrpc.java 0.00% <0.00%> (ø)
... and 47 more

... and 7 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@xwm1992 xwm1992 merged commit 3f49cd4 into apache:master Jun 12, 2023
kyooosukedn pushed a commit to kyooosukedn/eventmesh that referenced this pull request Jun 18, 2023
* add cloudevent proto file

* generate cloudevents java class

* develop cloudevents for sdk

* upgrade cloudevents version  to 2.4.2

* develop cloudevents for runtime module

* add test case

* fix test case

* fix test case

* optimize logic

* remove custom simplemessage  class
@mxsm mxsm deleted the eventmesh-grpc-optimize-3485 branch June 29, 2023 03:54
xuhongjia pushed a commit to Deckers-Ohana/eventmesh that referenced this pull request Mar 13, 2025
* add cloudevent proto file

* generate cloudevents java class

* develop cloudevents for sdk

* upgrade cloudevents version  to 2.4.2

* develop cloudevents for runtime module

* add test case

* fix test case

* fix test case

* optimize logic

* remove custom simplemessage  class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Optimize Grpc protocol for Java

3 participants