Distributed setup

Has anyone attempted a distributed setup? My problem is my primary thing has always been a smartthings hub. Which works great considering my openhab server has most often been a vm. I’m considering switching from a smartthings hub to using a Zooz or Aeotec USB stick on one of my Raspberry Pi(s) but I want the additional ram I get access to from the VM. Is there anyway I can have a slave Openhab install supplying data to a primary Openhab install maybe using MQTT as a connector?

Thoughts?

Remote openHAB add-on is the best choice here. There are other options as well.

I’ve setup remoteHAB thats exactly what I was looking for.

Thank you!