You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some downsides to this implementation:
if the message broker is having performance issues, it will add latency to all model changes / API requests
best case: the connection is retried ten times
worst case: the connection hangs, waiting for a timeout, ten times
if the message broker is down, messages are silently discarded
Suggestion:
add an intermediate Notification model for serialized message data
change the signals to create Notification objects
add a long-running process (via a management command) that:
selects the N oldest notifications
publishes them to the message broker
deletes the notification if successful
sleeps, repeats
With this, an auto-incrementing primary key could be used as the message ID.
The text was updated successfully, but these errors were encountered:
The original comment: #473 (comment)
The text was updated successfully, but these errors were encountered: