Effects: server-side reactive side effects

Place an order. The RPC publishes 'created' on the orders topic and returns. A separately-registered live.effect([orders], handler) fires, fans out to an audit feed and a notifications feed. Three streams light up from one user action; the effect handler is fire-and-forget, runs on the server, and the original publisher (the placeOrder RPC) doesn't wait for it.

Acting as Sneaky Platypus (727cc0d7)

Orders (0)

source topic; the RPC publishes here.

  • no orders yet

Audit (0)

populated by the effect handler.

  • no audit entries yet

Notifications (0)

populated by the same effect handler.

  • no notifications yet