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

CORE-17476 Adding Corda worker RPC endpoints to API schema #1276

Merged
merged 5 commits into from
Oct 10, 2023

Conversation

ben-millar
Copy link
Contributor

@ben-millar ben-millar commented Oct 4, 2023

In a related corda-runtime-os PR (HERE), we're adding a ClusterIP load balancer service to each Corda worker which will distribute HTTP calls to various instances of each worker type. The endpoints for these services are then passed into the FlowWorker startup args in key:value pairs. This PR adds these keys to the API so that we can query the endpoint map passed into the FlowWorker.

PR Building with these changes: https://ci02.dev.r3.com/job/Corda5/job/corda-runtime-os/job/PR-4823/8/

Comment on lines 286 to 289
public static final String CRYPTO_WORKER_RPC_ENDPOINT = "worker.rpc.endpoint.crypto";
public static final String VERIFICATION_WORKER_RPC_ENDPOINT = "worker.rpc.endpoint.verification";
public static final String UNIQUENESS_WORKER_RPC_ENDPOINT = "worker.rpc.endpoint.uniqueness";
public static final String PERSISTENCE_WORKER_RPC_ENDPOINT = "worker.rpc.endpoint.persistence";
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this really RPC?, would it make sense to call it HTTP directly instead?.

jujoramos
jujoramos previously approved these changes Oct 5, 2023
Copy link
Contributor

@jujoramos jujoramos left a comment

Choose a reason for hiding this comment

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

LGTM

@corda-jenkins-ci02
Copy link
Contributor

corda-jenkins-ci02 bot commented Oct 9, 2023

Jenkins build for PR 1276 build 9

Build Successful:
Jar artifact version produced by this PR: 5.1.0.31-alpha-1696937181387

@ben-millar ben-millar force-pushed the bm/CORE-17476/rpc-endpoints branch from 888b48f to fff4e11 Compare October 10, 2023 11:25
Copy link
Contributor

@jujoramos jujoramos left a comment

Choose a reason for hiding this comment

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

LGTM

@ben-millar ben-millar merged commit 4e04896 into release/os/5.1 Oct 10, 2023
3 checks passed
@ben-millar ben-millar deleted the bm/CORE-17476/rpc-endpoints branch October 10, 2023 13:56
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.

2 participants