title: Is it possible to subscribe to a WebSocket in a serverless fashion using AWS?
body: <p>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.</p>
  
  <p>Things I've looked at:</p>
  
  <ul>
  <li>Lambda functions - Only for short executions not long running tasks.</li>
  <li>SNS subscriptions - From what I understand this needs to subscribe to an SNS publisher.</li>
  <li>Kinesis Stream - Requires producer to use Streams PUT API.</li>
  </ul>
  
  <p>Any help would be greatly appreciated!</p>