Run a web socket on Cloud Functions for Firebase?

前端 未结 2 894
别那么骄傲
别那么骄傲 2020-12-03 21:09

Hello I actually have a REST api running on Cloud Functions for Firebase using http request, but now I need to sync the data on real time requesting to the functions. I read

2条回答
  •  暖寄归人
    2020-12-03 21:54

    Theoretically you could use two different layers: one to manage the websocket connections and another layer to handle the data processing.

    The websocket layer will not be Cloud Functions, but a Docker container running Push Pin in Cloud Run and that’ll route HTTP calls to your Cloud Functions to do the actual data processing.

提交回复
热议问题