Sharing global variable across multiple instances

I have been given the task of refactoring out flows into multiple instances. What I found is there are many global variables that the different flows use. I'm looking for the easiest way to share my globals with the four different instances. Any ideas? I have a great many to do within nodes and function code.

If the instances are on the same network then a common database would be one solution.
In other words use a database instead of global variables.

I thought about that but my boss is wanting me to use MQTT since it's installed and we don't have many options for this client.

Using persistence in MQTT is also a possibility.

That is how I would do it.