Sovite.Core.Cluster.Placement (sovite v0.6.0)

Copy Markdown View Source

Which node of a cluster delivers what (see "Handing mail to another node" in Sovite.Core.Cluster.Queue): place/3 decides for the routes of a message, and hand_over/2 hands a delivery job to another node, from a delivery worker.

Summary

Functions

Where a route of a message goes: as it is, or, for an SMTP destination another node should send to, to that node (a :cluster destination), or deferred when no node that could send it is up.

Functions

place(route, opts, envelope)

@spec place(term(), map() | nil, Sovite.Queue.Envelope.t()) :: term()

Where a route of a message goes: as it is, or, for an SMTP destination another node should send to, to that node (a :cluster destination), or deferred when no node that could send it is up.