pingora icon indicating copy to clipboard operation
pingora copied to clipboard

How to proxy WebSocket traffic to gRPC?

Open 1059915154 opened this issue 1 year ago • 1 comments

What is the problem your feature solves, or the need it fulfills?

A clear and concise description of why this feature should be added. What is the problem? Who is this for?

Describe the solution you'd like

What do you propose to resolve the problem or fulfill the need above? How would you like it to work?

Describe alternatives you've considered

What other solutions, features, or workarounds have you considered that might also solve the issue? What are the tradeoffs for these alternatives compared to what you're proposing?

Additional context

This could include references to documentation or papers, prior art, screenshots, or benchmark results.

My scenario is that the downstream service uses the websocket protocol, and the upstream service uses the gRPC protocol. How should I proxy and forward through Pingora?

1059915154 avatar Aug 16 '24 02:08 1059915154

If Pingora currently does not support this feature, how should I make modifications?

1059915154 avatar Aug 16 '24 02:08 1059915154

Websocket and gRPC are two unrelated protocols. If you have a clean definition of how to translate one to another via HTTP header and body modification, you can use the Pingora framework to do so. The Pingora provides APIs for you to define the modification.

eaufavor avatar Aug 22 '24 03:08 eaufavor

This question has been stale for a week. It will be closed in an additional day if not updated.

github-actions[bot] avatar Aug 30 '24 01:08 github-actions[bot]

This issue has been closed because it has been stalled with no activity.

github-actions[bot] avatar Sep 01 '24 02:09 github-actions[bot]

Websocket and gRPC are two unrelated protocols. If you have a clean definition of how to translate one to another via HTTP header and body modification, you can use the Pingora framework to do so. The Pingora provides APIs for you to define the modification.

Can you point out the APIs that can translate downstream Websocket clients to upstream H2/grpc or how to proxy websockets with upstream connection pooling?

ShwetaDeep avatar Dec 05 '24 22:12 ShwetaDeep