Multi-node deployments

How does ash work when deployed with multiple nodes e.g. across AWS regions are the notifiers only called on the node where it occurs or are they distributed?
2 Replies
ZachDaniel
ZachDaniel3y ago
Ash notifiers are called only on the node in question. However, that’s the reasoning behind the built in pub sub notifier 🙂 the pub sub notifier allows you to broadcast over phoenix pubsub or pg2 or whatever to allow other nodes to be aware of changes. So to send a confirmation email, you might use a custom notifier and send it from the node that performed the action, but you might (in addition or instead) hook up pubsub yo do things like update Liveviews or communicate to other nodes.
harry
harryOP3y ago
Thanks 😄

Did you find this page helpful?