A website offers a websocket to get real-time data from. I'm trying to record data received from the websocket in a DynamoDB table for a data source for a serverless application. Their example of how to use the websocket is some Node.JS code using socket.io-client. Being JavaScript I thought to use an AWS Lambda function but they are not purposed to run constantly. Is there an AWS service to handle this sort of subscription? I don't want to make a small EC2 instance to run a tiny application just for this purpose.
Things I've looked at:
Any help would be greatly appreciated!
A WebSocket API in API Gateway is a collection of WebSocket routes that are integrated with backend HTTP endpoints, Lambda functions, or other AWS services. You can use API Gateway features to help you with all aspects of the API lifecycle, from creation through monitoring your production APIs.
As of now, WAF cannot be used with a WebSocket API in Amazon API Gateway.
Need help at client level to connect to 'http://localhost:3001/ws' to establish and listen connection. If you have no a lot understanding of sockets (like me), I suggest to use socket.io package => npmjs.com/package/socket.io It's a wrapper for websockets.
Can't you guys see that he does not want to be server, but the client instead?
So, if we are talking about to be the client, there's not solution/service, until now, on Amazon AWS that is serverless and stay alive just for the socket's living time (from connect to disconnect).
Unfortunately, I think we are left to work with instances for this kind of scenario.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With