Reputation: 817
I have a node.js script that is streaming in 1% Twitter data real-time into my S3 bucket. This script is on my EC2 instance and run using forever to ensure that it just runs on the EC2 instance non-stop remotely.
I noticed sometimes that the stream will stop randomly; this might be a dumb question but how do I ensure that if the code stops, that it automatically restarts without me having to check?
Thanks!
Upvotes: 0
Views: 70