Interactions place x place

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?

I believe you’re looking for MessagingService

It allows you to set and broadcast to a “topic,” as well as listen only for that “topic,” which I’m sure could be helpful for you.

Using DataStores is a smart idea but much too slow for your examples.

1 Like

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?

messagingservice is for communication between servers

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.

1 Like

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?

It isn’t. Any server can listen into the topic, and any server can broadcast to it!

1 Like

the docs say:

“MessagingService allows servers of the same experience to communicate with each other in real time”

so it applies to every place in the universe

1 Like

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.

I will take a look at messaging service. Thank you, both of you!

1 Like

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.

1 Like

Oh, really? I thought memory store were cross servers within the current place. Thanks for the information!

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