SmartfoxServer Overcast Safe

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartfoxServer Overcast Safe

Postby Lapo » 06 Jun 2023, 07:24

heroumi wrote:Hi, I am still working with Smartfox. There is a remarkable part about GetListroom, which, according to the description, will return the entire list of rooms. What if there are thousands of waiting rooms or several thousand rooms. Even classifying rooms by Getlistroom by group, if each group has thousands of rooms, the Client will experience lag. Is there a way to get only 50-100 random rooms at a time? Or will I have to build my own backend

You can organize Rooms in Groups and filter them in that way. You can also use a FindRoomRequest which will filter Rooms with a custom MatchExpression, to further reduce the amount of results.

FindRoom also exists on the server side (see SFSApi.findRoom()) which does the same and can be used in your server side code. From server side you have an even larger number of filters that you can apply.

http://docs2x.smartfoxserver.com/api-do ... ession,int)

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
heroumi
Posts: 46
Joined: 28 May 2023, 13:18

Re: SmartfoxServer Overcast Safe

Postby heroumi » 06 Jun 2023, 07:28

Lapo wrote:Hi,
yes there's a limit of 50 results for the client side to avoid sending massive lists of rooms/users especially if the system gets abused.
(If you check the logs you should see and error saying exactly that)
E.g. somebody might try to spam multiple search requests that return 1000s of results to slow down the server or saturate the bandwidth.

Typically 50 is more than what's needed for match making, quick joins etc... Also If you run a search from server side you can access the whole list of results.

In any case we could make this limit configurable from AdminTool so that admins can set it to their needs.
I think this change could be released pretty quickly as a patch for SFS2X 2.13 if it helps.

Cheers


viewtopic.php?t=20480
Hi,
I read from this article that Client Getlistroom maxed out 50 results. isn't that right? You still haven't answered me.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartfoxServer Overcast Safe

Postby Lapo » 06 Jun 2023, 07:30

No, the server doesn't send random lists of Rooms.
If you want a random list you will have to implement it as a custom request in your Extension.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
heroumi
Posts: 46
Joined: 28 May 2023, 13:18

Re: SmartfoxServer Overcast Safe

Postby heroumi » 06 Jun 2023, 07:34

yes there's a limit of 50 results for the client side to avoid sending massive lists of rooms/users especially if the system gets abused.


I have yet to receive a response to this comment. Can you answer? :( :(
Last edited by heroumi on 08 Jun 2023, 04:18, edited 1 time in total.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartfoxServer Overcast Safe

Postby Lapo » 07 Jun 2023, 07:31

heroumi wrote:I read from this article that Client Getlistroom maxed out 50 results. isn't that right? You still haven't answered me.

What is the request you're referring to?
There is no Getlistroom method/request on the client side.

Thanks
p.s. = please let's keep the conversation in English
Lapo

--

gotoAndPlay()

...addicted to flash games
heroumi
Posts: 46
Joined: 28 May 2023, 13:18

Re: SmartfoxServer Overcast Safe

Postby heroumi » 12 Jun 2023, 08:57

Hi, our project is about to run on Overcast.
Do I have to install additional cloudflare or any other protection system?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartfoxServer Overcast Safe

Postby Lapo » 12 Jun 2023, 13:33

Do I have to install additional cloudflare or any other protection system?

No, unless that's a requirement on your side.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
heroumi
Posts: 46
Joined: 28 May 2023, 13:18

Re: SmartfoxServer Overcast Safe

Postby heroumi » 12 Jun 2023, 14:56

Lapo wrote:
Do I have to install additional cloudflare or any other protection system?

No, unless that's a requirement on your side.

Thanks


Hello, How much configuration do I have to register for ~10,000 CCU, We expect the number of participants to increase in the first week, so we will immediately use the high-load system. Thank you.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartfoxServer Overcast Safe

Postby Lapo » 12 Jun 2023, 18:05

Hi,
There is no specific confi setting for a target CCU, what's important is the hardware resources which in turn depend on the type of game you're developing.

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
heroumi
Posts: 46
Joined: 28 May 2023, 13:18

Re: SmartfoxServer Overcast Safe

Postby heroumi » 15 Jun 2023, 10:37

I have an amount of data A about 10 - 50MB,
Every time a game room is created, players can query that information.
1. My original intention was to query via MySQL.
2. I also read that it is possible to save it on RAM for querying. But what about Overcast?
--------------------------------------------------- -------------------
Query is infrequent, 1 room usually has 10-20 players and query level is about 15 seconds or 60 seconds / time for 1 person. Query results about 5KB/time
Which plan is good for me?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartfoxServer Overcast Safe

Postby Lapo » 15 Jun 2023, 13:26

It's hard to say.
Querying a database is one thing, doing it "in RAM" is not very clear what you mean. Sure you can have a data structure that you can search through but they are fairly different approaches.

Also a database gives you data persistence, while in-memory data is entirely volatile.
The choice should be based on how important is the data and if persistence is required.

Kind regards
Lapo

--

gotoAndPlay()

...addicted to flash games
heroumi
Posts: 46
Joined: 28 May 2023, 13:18

Re: SmartfoxServer Overcast Safe

Postby heroumi » 15 Jun 2023, 14:20

If put it in MySQL and query regularly every 15 - 30 seconds by the player. does it affect the speed of the server?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartfoxServer Overcast Safe

Postby Lapo » 16 Jun 2023, 08:57

It's difficult to say without knowing how complex the query is or how big is the resultset.
Normally a query every 15-30 seconds should add very little load, especially because the database runs in a dedicated server.

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
heroumi
Posts: 46
Joined: 28 May 2023, 13:18

Re: SmartfoxServer Overcast Safe

Postby heroumi » 16 Jun 2023, 12:49

hi, long time no update IOS, is it still working well? Any more swift tutorials?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartfoxServer Overcast Safe

Postby Lapo » 16 Jun 2023, 14:34

Last update was 6 months ago and yes it is working well :)
Any more swift tutorials?

Probably later this year.

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Marinaiqw and 48 guests