Implement the notification feature. Different possible implementations come into mind: email, rss feed, push notifications, sms.
You can try the email notification first, it might be easier but it will need a mail server. The rss feed might be more complex to setup but doesn't need a mail server and can be subscribed to with an rss feed reader. Push notifications must be subscribed to with the frontend or something else where they can be displayed. SMS notification will cost something.
The notification feature should be designed for configuration but have a default settings in the beginning.
notify via email (later rss, sms, whatever...) when player number increase reaches a threshold (define default threshold)
the notification feature should not know through which means the actual notification is send by
use an abstraction
implement an infrastructure component which handles the actual sending
the user should be able to add and remove games to and from the notification feature
Technical Design
the notification should contain
game id and name
current players
% player increase
defined threshold
every notification which is sent should also be stored to our DB, so that we know what we sent
update subscribed data model
each game should have two notification rules
rule 1 (default): send a notification when % player increase threshold is exceeded
rule 2: when player number is exceeded
add endpoint for activating notification for a subscribed game
POST /subscriptions/:id/notify
provide game id and rule number in body
add endpoint for deactivating notification for a subscribed game
Description
Implement the notification feature. Different possible implementations come into mind: email, rss feed, push notifications, sms. You can try the email notification first, it might be easier but it will need a mail server. The rss feed might be more complex to setup but doesn't need a mail server and can be subscribed to with an rss feed reader. Push notifications must be subscribed to with the frontend or something else where they can be displayed. SMS notification will cost something.
The notification feature should be designed for configuration but have a default settings in the beginning.
Technical Design
POST /subscriptions/:id/notify
DELETE /subscriptions/:id/notify
Resources