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

Support stateful protocols such as MySQL #108

Open
zhaohuabing opened this issue May 22, 2023 · 1 comment
Open

Support stateful protocols such as MySQL #108

zhaohuabing opened this issue May 22, 2023 · 1 comment
Assignees
Labels

Comments

@zhaohuabing
Copy link
Member

zhaohuabing commented May 22, 2023

At present, MetaProtcol Proxy only supports stateless protocols, primarily RPCs. However, I believe it would be beneficial to also expand support for stateful protocols, including MySQL and other DB protocols.

To achieve this, we will need to:

  • Add a flag to application protocols to indicate whether they are stateless or stateful.
  • If a protocol is stateful, routing will be based on connection level instead of request level.
  • For "server speak first" protocols like MySql, establish an upstream connection once downstream connection is established.
  • Most of the layer-7 filters, such as local/global rate limiting and auth, should be able to be reused with stateful protocols. However, since routing is performed at connection level, router will not be used.

@aeraki-mesh/metaprotocol-proxy-maintainers

@zhaohuabing zhaohuabing changed the title Support stateful protocols Support stateful protocols such as MySQL May 22, 2023
@zhaohuabing zhaohuabing self-assigned this May 22, 2023
@ceduardogimenez
Copy link

Hello, is this feature already available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants