Multiple Uplinks To Same App

Hi @Truth,

Anvil has moved on a little in the 3 years since this question was asked :slight_smile: If what you want is load-balancing, Anvil now does this for you!

When you call a function that’s available on multiple uplinks, Anvil chooses one of them and sends the call there. If you have lots of uplinks connected, Anvil will distribute the calls approximately evenly across all of them. So if you have a cluster of servers answering function calls, just run an Uplink process on each of them, and Anvil will share out the load.

(What @david.wylie was asking about at the beginning of this thread was something else - broadcast, rather than load-balancing - for which the approach he detailed upthread is still valid.)

3 Likes