On 08/01/2013 03:43, Oliver Rolle wrote:
> Hi,
>
> where can I find/configure the POJO serialization?
We don't have a built-in mechanism for this, but you can send a byte[]
which means you can implement serialization however you want (there are
a number of alternative strategies).
p
> Someone had
> implemented a BSON Eventbus, maybe I give a try.
>
> I like the idea of your mod-promises! I appended my Parallel
> implementation to this mail, maybe you could add it to your impl?
> How to use it:
> parallel = Parallel.Completed(new Handler(){ ... For completed parallel
> processing ... ])
> someAyncFct1(parameters, parallel.getHandler());
> someAsyncFct2(parameters, parallel.getHandler());
>
>
> Am Dienstag, 8. Januar 2013 02:04:08 UTC+1 schrieb Daryl Teo:
>
> Hi, thanks very much for your efforts =)
>
> Could you try a similar setup but instead of using JSONObject, use
> POJO serialization?
>
> In terms of performance, I suspect there isn't much one can do if
> one wants to communicate with Javascript clients or verticles.
>
> Daryl
>
> On Tuesday, 8 January 2013 07:09:01 UTC+8, Oliver Rolle wrote:
>
> *Setup:*
> * Cluster setup: 1 PingPong Verticle + 1 Monitor Verticle per
> Vertx Environment; 2 Vertx Environments on 1 Laptop
> * PingPong Verticle: listens on a eventbus address, replies on a
> received message and than sends a newly constructed message to
> eventbus (with same eb-address and a reply handler); Every
> received message and received reply counts as 1 message.
> * Monitor Verticle: receives duration time till each PingPong
> Verticle receives 1.000.000 messages.
> * 8 messages in the system at a time.
> * Measured on a laptop: Core 2 Duo 2.4 GHz (2 Cores), 3GB DDR2
> Ram (@1066 MHz); Network IO over loopback device
>
> *Non-Cluster (reference values):*
> * 2 PingPong Verticle + 1 Monitor instance in 1 Vertx Environment
> Min: 132187 msgs/sec
> Avg: 150773 msgs/sec
> Max: 161890 msgs/sec
> Network IO: n/a
> No reply to messages:
> +70% more msgs/sec (avg: ~260000 msgs/sec)
> Network IO: n/a
>
> *Cluster (on same machine):*
> * 2 PingPong Verticle + 2 Monitor instance in 2 Vertx Environment
> Min: 33627 msgs/sec
> Avg: 35222 msgs/sec
> Max: 41187 msgs/sec
> Network IO: 900 - 1000 KB/sec (in both directions)
> No reply to messages:
> +4% more msgs/sec (avg: ~36500 msgs/sec)
> Network IO: 600 KB/sec (in both directions)
>
> *My conclusion:*
> Serialization and deserialization of JsonObjects is a very
> expensive operation and reduces the performance at an avg of 4
> times. I would recommend to use Eventbus.registerLocalHandler()
> as much as possible, to send messages only to local handler if
> one is available as a general routing strategy and to have a
> more efficient serialization and deserialization mechanism.
>
> --
> You received this message because you are subscribed to the Google
> Groups "vert.x" group.
> To view this discussion on the web, visit
>
https://groups.google.com/d/msg/vertx/-/yoKqxFitLhUJ.
> To post to this group, send an email to
ve...@googlegroups.com.
> To unsubscribe from this group, send email to
>
vertx+un...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/vertx?hl=en-GB.
--
[key:62590808]