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

feat(clustering/rpc): rpc batching on concentrator #14055

Merged
merged 12 commits into from
Jan 20, 2025

Conversation

chronolaw
Copy link
Contributor

@chronolaw chronolaw commented Dec 25, 2024

Summary

KAG-5934
sister PR is #14040

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

Fix #[issue number]

@github-actions github-actions bot added core/clustering cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee labels Dec 25, 2024
@chronolaw chronolaw marked this pull request as ready for review December 26, 2024 08:20
Copy link
Contributor

@StarlightIbuki StarlightIbuki left a comment

Choose a reason for hiding this comment

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

Is there a interface to make batch call?

@@ -90,6 +93,67 @@ local function enqueue_notifications(notifications, notifications_queue)
end


function _M:process_one_response(payload)
assert(payload.jsonrpc == jsonrpc.VERSION)
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 handle errors here. It could be an error of the opponent thus we should not fail in this case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now this PR just refactored and moved the original code, kept the logic, we could change it later.

kong/clustering/rpc/concentrator.lua Show resolved Hide resolved
kong/clustering/rpc/concentrator.lua Show resolved Hide resolved
@chronolaw chronolaw force-pushed the feat/concentrator_rpc_batching branch from 78d8dec to 7af32ca Compare January 14, 2025 08:33
@chronolaw chronolaw force-pushed the feat/concentrator_rpc_batching branch from 7af32ca to f70cc36 Compare January 14, 2025 10:58
@chronolaw chronolaw force-pushed the feat/concentrator_rpc_batching branch from ddc0478 to 8acaf96 Compare January 20, 2025 06:29
@ADD-SP ADD-SP merged commit 4448eef into master Jan 20, 2025
26 checks passed
@ADD-SP ADD-SP deleted the feat/concentrator_rpc_batching branch January 20, 2025 08:32
@ADD-SP ADD-SP added the incomplete-cherry-pick A cherry-pick was incomplete and needs manual intervention label Jan 20, 2025
@chronolaw chronolaw removed the incomplete-cherry-pick A cherry-pick was incomplete and needs manual intervention label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee core/clustering size/L skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants