Is it right that handlers ('someClasses extends BaseClientRequestHandler') doesn't supports cuncurrency on sfs level? As I understand all requests from users just pushed into some queue for this handler and processed consequentially
And does 'someClasses extends BaseServerEventHandler' supports cuncurrency? Seems that yes
handlers and concurrency
Doesn't support concurrency? What do you mean exactly?
Can you elaborate?
Also we explain all details about extension concurrency here:
http://docs2x.smartfoxserver.com/Advanc ... extensions
Can you elaborate?
Also we explain all details about extension concurrency here:
http://docs2x.smartfoxserver.com/Advanc ... extensions
Lapo wrote:Doesn't support concurrency? What do you mean exactly?
Can you elaborate?
F.e. there is a class:
Code: Select all
class FirstHandler extends BaseClientRequestHandler
{
@Override
public void handleClientRequest(User user, ISFSObject isfso)
{
trace("begin");
doSomeLongOperation();
trace("end");
}
}
if two users (or even one user) approximately at the same time call FirstHandler output will be:
begin
end
begin
end
so requests from clients are processed sequentially
Code: Select all
class SecondHandler extends BaseServerEventHandler
{
@Override
public void handleServerEvent(ISFSEvent event)
{
trace("begin");
doSomeLongOperation();
trace("end");
}
}
in this case output will be:
begin
begin
end
end
so server events are processed concurrently
Who is online
Users browsing this forum: No registered users and 48 guests