mattrw89 / smoke_signal_backend

The backend service for smoke_signal (working name)
0 stars 0 forks source link

General Workflows + Infrastructure #4

Open mattrw89 opened 9 years ago

mattrw89 commented 9 years ago

Whenever a StateVariable gets a new StateVariableValue the associated UserAlertRule's should be evaluated and notifications queued up for all users that have rules.

I believe that each User can have their own AWS SNS topic assigned to them. Then, whenever their user account needs to get a notification we just hit the AWS SNS API with the message and the topic name. Pretty much fire-and-forget. It may make sense to hit the SNS API with an asynchronous worker via something like Sidekiq. That way SNS going down won't crash everything, just delay delivery.