# Problem with redundancy

**URL:** <https://forum.inductiveautomation.com/t/problem-with-redundancy/9568>\
**Category:** Module Development\
**Created:** [January 19, 2015, 11:20pm UTC](https://forum.inductiveautomation.com/t/problem-with-redundancy/9568 "2015-01-19T23:20:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [January 19, 2015, 11:20pm UTC](https://forum.inductiveautomation.com/t/problem-with-redundancy/9568/1 "2015-01-19T23:20:25Z")

</div>

We have a simple tag provider. When in backup mode we should not be polling for data. When in Master or Independent mode we should be.

Looking through the SDK examples failed to find any help on the correct way to implement this. We have created a redundancyStateListener are are trying to stop/stop our polling thread based on the events from this listener but we are ending up with multiple polling threads instead.

Any idea or help on the correct way to do this would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [January 20, 2015, 3:37pm UTC](https://forum.inductiveautomation.com/t/problem-with-redundancy/9568/2 "2015-01-20T15:37:39Z")

</div>

I’m not the redundancy expert Colby is, but in the couple places I’ve tied in with redundancy it’s been with a RedundancyStateListener. I think the key is to just watch the ActivityLevel, and realize that you might perhaps get some duplicate notifications.

If your backup doesn’t need to care about being cold/warm/hot/undecided you can maybe just use the ActiveInactiveFilter class, available in gateway-api.

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [January 20, 2015, 5:33pm UTC](https://forum.inductiveautomation.com/t/problem-with-redundancy/9568/3 "2015-01-20T17:33:24Z")

</div>

Thanks Kevin,

I’ve passed this on to our developer.
