I wanted to know if it is possible to create interactions from server to server. I know memory stores exist, but if I remember correctly, memory stores are not capable of storing information from places x places, though only server x server. A possible way of doing this is using datastores, but I don’t know how I could apply it for creating a global chat system between places inside a game.
Examples
Global chat system between place1 and place2
Queue system between place1 and place2
Seeing players from places
Etc
I don’t want an interaction with servers; in fact, we could say I want an interaction between servers, but all servers from all places inside a game ‘X’. I really wanted to know if it is possible, if it isn’t possible I wanted to know if there’s another way of doing so?
Yes, I though about data stores because with it, turns out it is possible to store information through servers from different places; however, it is way too slow, indeed. Is messagingService related to messages, exclusively? Or is it a way to communicate with places, including seeing how many players there are, etc?
I don’t know the details of it, but from what I have gathered from the documentation it can communicate any data between servers on a given topic.
It looks like the data can be anything, the topic must be a string. So, in other words, no it isn’t just for messages.
But is it exclusively from the current place the player is on? Let’s suppose I have a game called “Roblox experience,” and this game has 5 different places → place1, place2, place3, place4, place5. Imagine I have a player inside place1 that wants to send a message to a player standing on place2; using messagingservice makes it possible?
Another note: I’m not sure, and the documentation says nothing about it, but you may need to use pcalls for this too. A lot of the time you do need to for stuff like this.
That’s perfect, then, that’s what I’m looking for. My main concern was regarding memory store; indeed, I have made a post some weeks ago regarding how to communicate between places, and someone told me to use memory store; however, I figured out you couldn’t community between places, only servers inside that place.
Memory stores are cross server, and could also be used for this I believe. But, personally I would go with messaging service anyway out of preference and simplicity.
And one more note about messaging service, there is throttling limits to it since it’s a faster alternative to datastores. Nothing you can do about it, but depending on what you’re doing and how you’re doing it you should have more than enough data to work with.