Can I save the flow file into a remote database?

How can I achieve real-time synchronization of flow when the application is running in two dockers?
I want to store the active flow into a database.

Storing flows in a database will require a Storage Plugin, the API that the plugin needs to implement can be found here: Storage API : Node-RED

An example MongoDB backed plugin can be found here: GitHub - hardillb/node-red-contrib-storage-mongodb: A flow/library storage plugin for Node-RED that uses MongoDB as the backend

As for keeping 2 Node-RED instances in step, then you would need to extend any storage plugin to use the Admin API to trigger a flow reload on the other instance when ever a deploy is triggered. Details of the Admin API are here: Admin API : Node-RED

1 Like

Thank you, it's very useful to me

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.