-
Notifications
You must be signed in to change notification settings - Fork 9
Description
We need an SQS queue that will be used by the workers in #74 to get risk scoring tasks to perform. This queue will contain messages with payloads describing the task, including (a) which device we are assessing, (b) the identifier of the risk assessment measure to be run to generate the score, and (c) the timestamp of the request (used for storing the results).
NOTE: We need to make sure the SQS topic visibility timeout is sufficiently long. The default of 30 seconds may not be long enough, which will result in the workers doing repeat work.
NOTE 2: We should also configure a dead-letter-queue (DLQ) that will capture messages that cannot be processed. If it becomes a problem area, later we can add a monitor to the DLQ to generate notifications when messages are failing to process.