# AMQP(RabbitMQ) in Ignition

**URL:** <https://forum.inductiveautomation.com/t/amqp-rabbitmq-in-ignition/60400>\
**Category:** Ignition\
**Tags:** perspective, ignition81, scripting\
**Created:** [June 6, 2022, 1:15pm UTC](https://forum.inductiveautomation.com/t/amqp-rabbitmq-in-ignition/60400 "2022-06-06T13:15:34Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![louagejasper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/louagejasper/32/86311_2.png) [@louagejasper](https://forum.inductiveautomation.com/u/louagejasper)\
**Post date:** [June 7, 2022, 8:23am UTC](https://forum.inductiveautomation.com/t/amqp-rabbitmq-in-ignition/60400/3 "2022-06-07T08:23:05Z")

</div>

I did do some digging here

> [@\[IGN-5244\]Persist Python Class Object](https://forum.inductiveautomation.com/t/ign-5244-persist-python-class-object/30498):
>
> I am working in Perspective, but this probably applies to other modules as well. I have created user defined classes in the project scripts and I am instantiating them from a view in Perspective. Is there a place I can persist the instance of the object for use between events by the user? Right now I have it serializing to a property on the view, but when I want to work with the object again I have to de-serialize the object in order to work with it again. Having to write custom de-serialize me…

and here

> [@system.util.getGlobals() not persisted across Designer Save](https://forum.inductiveautomation.com/t/system-util-getglobals-not-persisted-across-designer-save/33869/14):
>
> Ok. New module “Life Cycle” w/ system.util.persistent(name) utility function. For v7.9: [https://www.automation-pros.com/ignition/Life%20Cycle-0.9.0.2004121825.modl](https://www.automation-pros.com/ignition/Life%20Cycle-0.9.0.2004121825.modl) For v8.0: [https://www.automation-pros.com/ignition/Life%20Cycle-0.9.0.2004121920-v8.modl](https://www.automation-pros.com/ignition/Life%20Cycle-0.9.0.2004121920-v8.modl) Test with a project script like this: # project script "Life" g = system.util.persistent('LifeTest') count = g.setdefault('editCount', -1) count += 1 g['editCount'] = count def editCount(): return count Print the return from Life.editCou…

But I think you guys are a few levels ahead of me.  
I simply want one always open connection (I need a class for this I think) when Ignition is running and want to speak to this connection when necessary.  
How can I use `system.util.getGlobals()` to store a class? Is there any example on this?

And also, I'm a bit confused about `system.util.getGlobals()`. Are these globals something on your gateway? Because I see they are different when I open a new designer session.

\*Edit: Ah, it is the same when you run it in a gateway scope, I see... Now I just need to find how I can store my connections in it.

---

_[View the full topic](https://forum.inductiveautomation.com/t/amqp-rabbitmq-in-ignition/60400)._
