The Inflator + Indexer often sit around doing nothing, querying the SQS queues every 20 seconds generates for both services potentially 6,220,800 messages a month. Whilst that's only a few dollars (and we're saving more than this by only needing a micro vs a small instance), we can do better.
Suggestions
- Indexer/Inflator after X consecutive time without receiving a message terminate (configurable with an optional flag. Run forever or
--exit-after-mins 10)
- Drop the Service Definitions for the Indexer/Inflator
- Scheduler will call 'run-task' on the indexer/inflator when a run is started
The Inflator + Indexer often sit around doing nothing, querying the SQS queues every 20 seconds generates for both services potentially 6,220,800 messages a month. Whilst that's only a few dollars (and we're saving more than this by only needing a micro vs a small instance), we can do better.
Suggestions
--exit-after-mins 10)