You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "mloves0824 (via GitHub)" <gi...@apache.org> on 2023/04/23 03:38:41 UTC

[GitHub] [apisix] mloves0824 opened a new issue, #9354: Does apisix support converting websocket protocol to grpc protocol?

mloves0824 opened a new issue, #9354:
URL: https://github.com/apache/apisix/issues/9354

   ### Description
   
   ![image](https://user-images.githubusercontent.com/12976844/233818390-52690e47-49a0-479a-a02d-a77fef7103df.png)
   Does apisix support converting websocket protocol to grpc protocol?
   Establish a long websocket connection between the web client and apisix, apisix forwards the request to the backend grpc service, and pushes the push data of the backend service to the web client.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Does apisix support converting websocket protocol to grpc protocol? [apisix]

Posted by "harbourlga (via GitHub)" <gi...@apache.org>.
harbourlga commented on issue #9354:
URL: https://github.com/apache/apisix/issues/9354#issuecomment-1880692451

   > ### Description
   > ![image](https://user-images.githubusercontent.com/12976844/233818390-52690e47-49a0-479a-a02d-a77fef7103df.png) Does apisix support converting websocket protocol to grpc protocol? Establish a long websocket connection between the web client and apisix, apisix forwards the request to the backend grpc service, and pushes the push data of the backend service to the web client.
   
   How did you solve it later using apisix? What's the plan?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] mloves0824 commented on issue #9354: Does apisix support converting websocket protocol to grpc protocol?

Posted by "mloves0824 (via GitHub)" <gi...@apache.org>.
mloves0824 commented on issue #9354:
URL: https://github.com/apache/apisix/issues/9354#issuecomment-1518987130

   > Can you describe your specific scenario? Why do you need such a feature?
   
   Our business scenario is a real-time data push scenario.
   1. The web page establishes a persistent connection with the websocket gateway.
   2. The webpage subscribes to the backend service through this connection, and the websocekt gateway forwards the subscription request to the backend service through grpc or kafka.
   3. The backend service generates real-time data, which is pushed to the websocket gateway through grpc or kafka, and the gateway pushes the real-time data to the web page.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] leslie-tsang commented on issue #9354: Does apisix support converting websocket protocol to grpc protocol?

Posted by "leslie-tsang (via GitHub)" <gi...@apache.org>.
leslie-tsang commented on issue #9354:
URL: https://github.com/apache/apisix/issues/9354#issuecomment-1649209514

   Considered solved. Feel free to reopen it if needed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Does apisix support converting websocket protocol to grpc protocol? [apisix]

Posted by "harbourlga (via GitHub)" <gi...@apache.org>.
harbourlga commented on issue #9354:
URL: https://github.com/apache/apisix/issues/9354#issuecomment-1880693905

   > > Can you describe your specific scenario? Why do you need such a feature?
   > 
   > Our business scenario is a real-time data push scenario.
   > 
   > 1. The web page establishes a persistent connection with the websocket gateway.
   > 2. The webpage subscribes to the backend service through this connection, and the websocekt gateway forwards the subscription request to the backend service through grpc or kafka.
   > 3. The backend service generates real-time data, which is pushed to the websocket gateway through grpc or kafka, and the gateway pushes the real-time data to the web page.
   
   How did you solve push scenario later using apisix? What's the plan?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] kingluo commented on issue #9354: Does apisix support converting websocket protocol to grpc protocol?

Posted by "kingluo (via GitHub)" <gi...@apache.org>.
kingluo commented on issue #9354:
URL: https://github.com/apache/apisix/issues/9354#issuecomment-1581997242

   @mloves0824 No, it does not support websocket-to-grpc.
   Nginx websocket proxying is via HTTP 1.1 upgrade, i.e. the upstream http connection is downgraded to a plain tcp connection for websocket messaging.
   If you need transcoding, then you need to implement it in lua code.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] leslie-tsang closed issue #9354: Does apisix support converting websocket protocol to grpc protocol?

Posted by "leslie-tsang (via GitHub)" <gi...@apache.org>.
leslie-tsang closed issue #9354: Does apisix support converting websocket protocol to grpc protocol?
URL: https://github.com/apache/apisix/issues/9354


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] tao12345666333 commented on issue #9354: Does apisix support converting websocket protocol to grpc protocol?

Posted by "tao12345666333 (via GitHub)" <gi...@apache.org>.
tao12345666333 commented on issue #9354:
URL: https://github.com/apache/apisix/issues/9354#issuecomment-1518967990

   Can you describe your specific scenario? Why do you need such a feature?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org