Hi,
In my extension, i send response to user with like this:
send("cmd1", param1, user);
send("cmd2", param2, user);
Does SFS guarantee that cmd1 reach user before cmd2 ?
Thank you.
Does SFS extension send method ordering guaranty
By default YES. Because the ExtensionController works with a single thread.
If you add more threads, the answer is 99.9% of the times YES.
But if you are unlucky it might not work as expected.
My suggestion. Do not call send() twice in a row. Prepare your response so that you send only one object. This will solve the problem and you will not incur in twice the lag. (each separate message pays its network lag)
If you add more threads, the answer is 99.9% of the times YES.
But if you are unlucky it might not work as expected.
My suggestion. Do not call send() twice in a row. Prepare your response so that you send only one object. This will solve the problem and you will not incur in twice the lag. (each separate message pays its network lag)
Who is online
Users browsing this forum: No registered users and 120 guests