Setting up a voting system that is live across all servers

I want a voting system in my game that allows players in any server to vote on something, and this vote/poll updates live across every server.

My question is: where do I start? I sort of have no idea on where I would start on making this work…
Any help is appreciated!

For this, simply set up the Roblox side first, and make a basic voting system. Afterward, you will need to create an external server so you can communicate with it, you will need to send a post request to your server when someone votes and then get the newest vote from the Roblox servers. Then just display the newest vote in each server.

You could use a few of these to help you out;

Web Server:
Express "Hello World" example
Getting-Started | Fastify
https://docs.nestjs.com

Roblox:
https://docs.nestjs.com

This is definitely NOT necessary. I believe this person is informed. Instead you can use MessagingService, to communicate between servers. It’s very easy to learn, you can pick it up quickly.

2 Likes

Completely forgot about MessagingService :woozy_face:

Thank you for the fix and reminder

1 Like

Thank you! I’ll look into using MessagingService.

1 Like

I think you could also rely on memory stores, for storing the votes of each map, having the correct number of votes in a really fast pace. Check it out : Memory Stores | Documentation - Hub Création Roblox.
It basically works like the datastores you know, but are much faster. The problems I’d see using those could be the limited amount of data you can use and their lifetime (around a month I think). Everything is written in the link if you need to know more.