Skip to content

Conversation

@sophia-bq
Copy link
Contributor

Summary

introduces the Simple Read/Write Splitting Plugin (srw)

Description

an alternative to the existing Read/Write Splitting Plugin that connects directly to specified read and write endpoints

Additional Reviewers

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sophia-bq sophia-bq force-pushed the feat-srw branch 2 times, most recently from b3b7ada to 367647b Compare November 4, 2025 17:59
this.pluginService = pluginService;
this.properties = properties;
this.writeEndpoint = writeEndpoint;
this.readEndpoint = SRW_READ_ENDPOINT.getString(properties);
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it mean that SRW_READ_ENDPOINT is optional parameter?

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've updated it so that SRW_READ_ENDPOINT is required

}

private boolean isWriteEndpoint(final @NonNull HostSpec hostSpec) {
return Objects.equals(hostSpec.getHost(), this.writeEndpoint);
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to use getHostAndPort() and verify equalsIgnoreCase()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are we expecting that the port is included in the endpoint?

@sophia-bq sophia-bq force-pushed the feat-srw branch 4 times, most recently from 63f3490 to 3f4280b Compare November 6, 2025 20:22
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.

3 participants