Home Game Development How do I deal with a number of matches for a multiplayer recreation based mostly on internet?

How do I deal with a number of matches for a multiplayer recreation based mostly on internet?

0
How do I deal with a number of matches for a multiplayer recreation based mostly on internet?

[ad_1]

In a multiplayer chess recreation based mostly on internet the place the server should validate the performs, retailer the present recreation state and supply the gameboard data to be rendered on shopper facet, amongst different issues associated to the bussiness guidelines, is it potential to deal with a number of matches in only one server or I’ve to instantiate one server per match? How is this type of logic usually applied?

My foremost concept is to retailer every recreation state on redis, so when an occasion happens(like transferring a bit), get the state associated to that particular match, deal with the validations, replace it and ship the brand new match state to the shoppers, As I by no means did it earlier than I’m undecided if it may well work with a number of matches, what do you guys assume?

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here