bcgov / parks-data-register

Apache License 2.0
6 stars 4 forks source link

Realtime data - pub/sub #370

Open JLWade opened 9 months ago

JLWade commented 9 months ago

_As a system subscriber (A&R, DUP, bcparks.ca), I would like to have updates from the register whenever they are made and not require updates on a schedule so that I do not need to manage a schedule every night.

This ticket is to try the pub/sub method with the data register and one of the subscribers. Self serve access to be notified of a change._

The publish-subscribe (pub/sub) model enables event-driven architecture. Pub/sub messaging provides significant advantages to developers who build applications that rely on real-time events.

Applying this to our system will provide a number of significant benefits, eliminating polling, providing dynamic targeting among others. For example, Watching the details page of a park will allow a viewer to see the capacity levels drop in realtime as individuals book passes. In other cases, we can alert administrators that someone else has just made a change to the record they are viewing/editing prompting them to reload or take other action (such as instant-message the person).

See https://aws.amazon.com/pub-sub-messaging/benefits/ for more information.

Acceptance Criteria:

LindsayMacfarlane commented 2 weeks ago

@marklise - would be curious to get your input on this ticket. Will/could this support any of our upcoming work...or should we icebox this for now?