Is it possible to use Socket.io with AWS Lambda?

后端 未结 8 1463
深忆病人
深忆病人 2021-01-30 01:31

Is it possible to build a function in AWS Lambda that creates a websocket and send data to subscribed applications?

Something like this:

John has the app SuperPh

8条回答
  •  温柔的废话
    2021-01-30 01:52

    I think you can combine AWS Lambda with other PUB/SUB service like PUBNUB https://www.pubnub.com/docs/pubnub-rest-api-documentation.

    1. front-end/app use AWS Lambda to dynamically create and manage topics
    2. front-end/app get topic info from AWS Lambda or DB
    3. front-end/app join corresponding topics and send message to PUBNUB directly

提交回复
热议问题