Results 1 to 2 of 2

Thread: Calling a method on clients or calling it by Remote Shared Object, which is faster?

  1. #1

    Default Calling a method on clients or calling it by Remote Shared Object, which is faster?

    Suppose I have 100 clients which I want to call a method on. Do you know if it generally is faster to call the method by looping through all clients and calling the method by client.call("Methodname", ..) or will the execution time be faster when the clients subscribe to a Remote Shared Object, listen for variable changes and execute the desired method on variable change. Would it make any difference?

    Thank you for any answer or other suggestions.

  2. #2

    Default

    Hi,

    I think this is something that you may need to test by adding timing information to the messages and see how long they take to get to the clients.

    Generally, I would have thought that client.call would be more efficient but rso is easier to set up if you don't need any server side interaction.

    Also take a look at the appInstance.broadcastMsg methods. There is one for sending a message to all connected clients or two for sending to a list of clients. These basically wrap the client.call method loop that you would need to do into a single method.

    Roger.

Similar Threads

  1. Need help with remote shared object please
    By drdialtone in forum Server Administration Discussion
    Replies: 6
    Last Post: 02-22-2013, 02:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •