Skip to content

Efficient Notifications via Server-Sent Events

Sunday supports notifications systems via Server-Sent Events as a more efficent mechanism than resorting to WebSockets.


The Sunday Generator extends RAML via annotations to support easily declaring methods that produce Server-Sent Events. Events are defined as RAML types and therefore types are generated in each language to easily consume strongly type events in clients and produce events in server implmentations.


Sunday client libraries ensure that an EventSource implementation is available to consume events. Each client library also provides reactive types that adapt EventSources to produce strongly typed events that are easily subscribed to and cancelled.


Sunday server implementations rely on the underlying frameworks to support Server-Sent Events. Events types are generated to easily produce events using the server framework.