Skip to content

Notifications: allow immediate dispatch #528

Closed as duplicate of#573
Closed as duplicate of#573
@johnstcn

Description

@johnstcn

Problem:

coder/coder#17091 adds functionality for sending push notifications.

This is currently not well-integrated into the rest of the nofications system.
The current notifications system has a enqueue system, and the current use-case for push notification is for immediate delivery. The current enqueue-dispatch logic takes too long for these notifications to be effective and timely.

Ideally we would have a way to immediately dispatch a notification without enqueuing it. In this case, delivery could not be guaranteed, but that's the tradeoff.

Proposed solution:

Add the capability to enqueue a notification for immediate dispatch, bypassing the database entirely. If we are not able to immediately dispatch, simply return an error to the caller.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions