4 Replies Latest reply on Sep 14, 2012 4:26 PM by hilco

    How scalable is ErraiBus?

    hilco

      The documentation states that

      Services are lightweight in ErraiBus, and can be declared liberally and extensively within your application to provide a message-based infrastructure for your web application.

      which is great. I would like to get an idea of what "lightweight" means, though.

       

      How many services should one be able to run on a single client? 100? 1000? 10000? (Speaking strictly from an ErraiBus point of view.)

       

      How many services with an endpoint on both client and server? Per user? In total?

       

      I'm sure you get the idea. Where are the bottlenecks? What are the limitations? In short, what should I keep in mind when designing services and endpoints?

       

      Cheers,

      Hilco

        • 1. Re: How scalable is ErraiBus?
          cbrock

          The bus itself is extremely lightweight -- it can handle millions of messages per second. The main bottleneck is the cost of marshalling. And we comfortably achieve throughput in the 100s of thousands per second on a modest server.

           

          The bottom line: it's pretty fast.

          • 2. Re: How scalable is ErraiBus?
            hilco

            Thank you, that's very promising.

             

            What about memory and resource usage? How much does it cost to simply have a service available (without any messages being sent)? Is ErraiBus keeping connections open or something like that? (I suppose this really only applies to services with one endpoint on the server and the other on the client.)

            • 3. Re: How scalable is ErraiBus?
              cbrock

              There's only one connection which is kept open to a client, and the connection is essentially multiplexed by service name. Thus, the cost of having a service is only the cost of a string in a Map with an object pointer to the service handling callback code. It doesn't get lighter weight than that. =)

              1 of 1 people found this helpful
              • 4. Re: How scalable is ErraiBus?
                hilco

                Excellent! Just what I wanted to hear. :-)