# Gateway fail-over when using Perspective

**URL:** <https://forum.inductiveautomation.com/t/gateway-fail-over-when-using-perspective/55731>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [February 3, 2022, 7:57pm UTC](https://forum.inductiveautomation.com/t/gateway-fail-over-when-using-perspective/55731 "2022-02-03T19:57:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Derek.McFarland](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@Derek.McFarland](https://forum.inductiveautomation.com/u/Derek.McFarland)\
**Post date:** [February 3, 2022, 7:57pm UTC](https://forum.inductiveautomation.com/t/gateway-fail-over-when-using-perspective/55731/1 "2022-02-03T19:57:40Z")

</div>

What are you doing to redirect perspective browser clients to the backup gateway when the primary fails?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 3, 2022, 11:55pm UTC](https://forum.inductiveautomation.com/t/gateway-fail-over-when-using-perspective/55731/2 "2022-02-03T23:55:37Z")

</div>

Are you asking how Perspective itself handles the failover?  
Basically - there’s only one “real” page fetch when you launch a Perspective session - when you initially connect and we fetch all the necessary resources. During that process (and also later, while the connection to the master is good) the live frontend session automatically retrieves a list of possible addresses to try to reach the backup gateway on.  
If the frontend session loses its connection to the master, it “knows” to start attempting to reach the backup gateway at any of those addresses.

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [February 4, 2022, 1:58am UTC](https://forum.inductiveautomation.com/t/gateway-fail-over-when-using-perspective/55731/3 "2022-02-04T01:58:37Z")

</div>

What happens if the gateway is down and then the user tries to connect? They just need to know to connect to the failover gateway directly? (I have always assumed this was the answer, but honestly never tested it)

I know that a load balancer would resolve this, but in the case that isn’t present and its just a redundant set of gateways.

---

<div class="post-metadata">

**Author:** ![Derek.McFarland](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@Derek.McFarland](https://forum.inductiveautomation.com/u/Derek.McFarland)\
**Post date:** [February 4, 2022, 2:25am UTC](https://forum.inductiveautomation.com/t/gateway-fail-over-when-using-perspective/55731/4 "2022-02-04T02:25:19Z")

</div>

This is what I’m wondering. I see the diagrams with the load balancers and wonder if it is required or if Perspective will use the backup gateway automatically.

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [February 4, 2022, 8:42am UTC](https://forum.inductiveautomation.com/t/gateway-fail-over-when-using-perspective/55731/5 "2022-02-04T08:42:47Z")

</div>

If the client uses Perspective Workstation, it will automatically try the backup as the launcher knows the backup configuration.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 4, 2022, 5:07pm UTC](https://forum.inductiveautomation.com/t/gateway-fail-over-when-using-perspective/55731/6 "2022-02-04T17:07:38Z")

</div>

If a session has never connected, then connections from a browser will always fail - if you try to reach gateway A, and it’s not there, there’s nothing for Ignition to do - you’ve specified an invalid address. As @deon.korb points out, our launcher applications _can_ do something, by pre-caching the backup address to try as a fallback.

A load balancer _could_ be required if you expect fresh connections to be made from web browsers during times where the master is not available.
