Shared data in cluster mode
We need to persist some data in our custom plugin or component (e.g. concurrent map) and this data should be shared within cluster environment. We plan to use Tigase ACS for clustering. Could you please make a tip if there is a way to do that with some existing functionality or what is a preferred way to accomplish the task. Thanks in advance.
Added by Artur Hefczyc almost 4 years ago
It is hard to give you suggestions without knowing details and all the requirements. We do share some data in the cluster in some places and depending on the use-case we use either a database (cluster connections management and auto configuration) or memory (Tigase ACS). Using a shared database is pretty straightforward and there are a few APIs for that in Tigase. Using memory involves using clustered API and synchronizing data over the cluster. This is not straightforward or easy but is usually more effective and fast than database.