Hi, What is the best communication method between bungee -> bukkit? If you should make a syncronized inventory list between all bukkit servers, what is the optimal? - Store data in MySQL and query every 10-15 sec - PluginChannel ( When the server is empty, then it is not working ) - TCP Server - client Can I send inventory update to all servers every 1-2 sec on TCP server - client or this is too lots of to cpu?
Really, it depends on what you're using it for... They all have their pros and cons.. A method you haven't looked at is existing libraries like @geNAZt's resource communicator or whatever it's called.
What about using a NoSQL Database instead of MySQl like MongoDB. It lets you store real objects and is faster than a sql server in this case.
NoSQL Database is one of the best variants. I recommend using Redis as it have internal Publisher->Subcriber service.
Thanks the NoSQL variant. I would like create Chest GUI about server informations. ( e.g players counter, server online - offline ) I will have 6-8-10 servers. Can you type some pro / cons about TCP server <-> client and NoSQL solution?
Well an advantage of MySQL or some sort of database approach is each server can put its information in it, without having to contact each other for it. That way less work has to be done by the servers.
No, I can build my TCP server into BungeeCord plugin and TCP client into bukkit plugins, then this will be a centralized star topology.
I would make all the servers write data to the MYSQL so then you can easily grab that data on any of the connect servers.