Cross-platform messaging in microseconds with Delphi and Free Pascal

With the new generation of Habari Client libraries for Delphi and Free Pascal from Habarisoft, applications can send messages to a message broker (supported brokers are ActiveMQ, Apollo, HornetQ, OpenMQ and RabbitMQ) within 0.1 milliseconds and less on very modest hardware, equivalent to 10,000 messages per second.

Example 1: HornetQ – simultaneaous sending and receiving

HornetQ is the default message broker in the JBoss Application Server but can also be used stand-alone. The test below uses HornetQ 2.3.0.Alpha. As you can see, the throughput test app both sends and receive messages using a sender thread and a receiver thread. Test environment: Core2 Duo 2.1 GHz Notebook (2 GB RAM) / Vista.

Habari Client for HornetQ 1.8 (c) 2010-2012 Michael Justin
Connecting to URL: stomp://localhost:61613
00:01 tx/rx 19991/ 3489 10000/1745 msgs/sec (100/573 microsecs/msg)
00:03 tx/rx 38214/ 7498 9555/1874 msgs/sec (104/533 microsecs/msg)
00:05 tx/rx 54325/11485 9055/1914 msgs/sec (110/522 microsecs/msg)
00:07 tx/rx 72899/15464 9113/1933 msgs/sec (109/517 microsecs/msg)
00:10 tx/rx 91929/18565 9192/1856 msgs/sec (108/538 microsecs/msg)
00:12 tx/rx 112569/22092 9380/1841 msgs/sec (106/543 microsecs/msg)
00:14 tx/rx 127295/26122 9092/1865 msgs/sec (109/536 microsecs/msg)
...

Example 2: ActiveMQ Apollo – simultaneaous sending and receiving

With Apollo 1.4 and Habari Client for Apollo 1.2, sending takes around 0.2 milliseconds per message but receiving of messages happens approximately at the same speed.

Habari Client for Apollo 1.2 (c) 2008-2012 Michael Justin
Connecting to URL: stomp://localhost:61613
00:02 tx/rx 13024/ 7785 6495/3882 msgs/sec (153/257 microsecs/msg)
00:04 tx/rx 18256/17545 4537/4361 msgs/sec (220/229 microsecs/msg)
00:06 tx/rx 27160/26877 4504/4457 msgs/sec (222/224 microsecs/msg)
00:08 tx/rx 36924/36087 4590/4486 msgs/sec (217/222 microsecs/msg)
00:10 tx/rx 44230/43938 4399/4370 msgs/sec (227/228 microsecs/msg)
00:12 tx/rx 54588/53544 4524/4437 msgs/sec (221/225 microsecs/msg)
00:14 tx/rx 63521/63216 4511/4490 msgs/sec (221/222 microsecs/msg)
...
Advertisements