0
 
What's all the buzz about? Tim Fox Messaging Lead JBoss 03 Sep 2009
Change of plan <ul><li>This presentation was scheduled to be about JBoss messaging </li></ul><ul><li>This presentation is ...
H <ul><li>HornetQ is the new name for JBoss Messaging 2 </li></ul><ul><li>HornetQ is an open source community project to b...
How does HornetQ relate to JBoss Messaging? <ul><li>We decided to rename JBoss Messaging 2 to HornetQ </li></ul><ul><li>JB...
How is HornetQ licenced? <ul><li>Most of HornetQ is licenced using ASL 2.0 </li></ul><ul><li>A few files still under LGPL ...
Usability is critical! <ul><li>Key design goal of HornetQ is ease of use </li></ul><ul><li>Simple API </li></ul><ul><li>Cl...
Both standalone and JEE messaging <ul><li>HornetQ is a fully functional stand-alone messaging server – if you don't want a...
Elegant generic architecture <ul><li>Fully functional JMS agnostic messaging system </li></ul><ul><li>No dependencies on J...
Generic core and JMS facade Server side Client side Core HornetQ client is fully functional HornetQ Client HornetQ Server ...
Stand-alone deployment using JBoss Micro-container JNDI HornetQ POJOs AN Other Service
HornetQ inside JBoss AS 5.x JBoss MC JMX JNDI HornetQ POJOs A.N. Other Service EJB Transactions Web services etc HTTP
HornetQ embedded in 3 rd  party application User application (process) HornetQ POJOs User application classes
HornetQ embedded code example 01. MessagingServer server = new MessagingServerImpl(); 02. server.start(); 03. ClientSessio...
HornetQ features <ul><li>Very high performance journal </li></ul><ul><li>Support for huge queues and huge messages with sm...
Ultra high performance journal <ul><li>HornetQ persistence is very fast </li></ul><ul><li>Very fast store using Linux asyn...
Asynchronous IO on Linux OS Asynch store Client Send 1 Send 2 Send 3 Disc Ack 1 Send 4 Ack 2 Ack 3 Send 5 Time JNI
Huge queues and messages <ul><li>HornetQ supports huge queues – far bigger than can fit in available RAM </li></ul><ul><li...
Configurable Transport system <ul><li>Fully pluggable transport </li></ul><ul><li>Ships with default implementation using ...
HornetQ High Availability <ul><li>Transparent reconnection on failure </li></ul><ul><li>100% guaranteed no loss or duplica...
HornetQ Clusters <ul><li>HornetQ servers can be grouped into clusters </li></ul><ul><li>Clusters are a way of balancing me...
Clusters Messages Node A Node B Node C Messages balanced according to number of matching consumers C C C C C C
HornetQ Core Bridges <ul><li>Core bridges take messages from one queue and forward them to another remote address </li></u...
Core bridges Filter messages Send to address Node A Node B messages Internet, WAN, etc Queue Core bridge Queue Queue Queue...
HornetQ diverts <ul><li>Diverts are a  routing table  for messaging </li></ul><ul><li>Diverts take messages destined for o...
Diverts Filter Transform Filter Transform Exclusive diverts can be used to “divert” Non exclusive diverts can be used to “...
Global scale messaging fabric <ul><li>Combine clusters, bridges and diverts and you can create a  massively configurable g...
Going ahead <ul><li>Interoperability – REST, AMQP, STOMP, XMPP, Ajax/Comet </li></ul><ul><li>Server-less mode </li></ul><u...
Interoperability <ul><li>REST Provide a simple RESTful interface for HornetQ over HTTP. See REST-* project </li></ul><ul><...
Join us! <ul><li>HornetQ is a community project - come and get involved! </li></ul><ul><li>We are always looking for new d...
Check out the  HornetQ web site: http://jboss.org/hornetq Follow HornetQ on twitter: http://twitter.com/hornetq Visit the ...
Upcoming SlideShare
Loading in...5
×

Jbw chicago

315

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
315
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Jbw chicago"

  1. 2. What's all the buzz about? Tim Fox Messaging Lead JBoss 03 Sep 2009
  2. 3. Change of plan <ul><li>This presentation was scheduled to be about JBoss messaging </li></ul><ul><li>This presentation is actually about “ HornetQ” http://jboss.org/hornetq </li></ul>
  3. 4. H <ul><li>HornetQ is the new name for JBoss Messaging 2 </li></ul><ul><li>HornetQ is an open source community project to build a multi-protocol asynchronous messaging system </li></ul><ul><li>HornetQ is designed for performance </li></ul><ul><li>HornetQ is designed with usability in mind </li></ul><ul><li>HornetQ is full featured </li></ul><ul><li>See the wiki for more information: http://www.jboss.org/community/wiki/HornetQGeneralFAQs </li></ul>
  4. 5. How does HornetQ relate to JBoss Messaging? <ul><li>We decided to rename JBoss Messaging 2 to HornetQ </li></ul><ul><li>JBM 1.x and 2.x code bases 95%+ different. </li></ul><ul><li>HornetQ is a different beast to JBM 1.x </li></ul><ul><li>HornetQ is not tightly coupled to JBoss Application Server </li></ul>
  5. 6. How is HornetQ licenced? <ul><li>Most of HornetQ is licenced using ASL 2.0 </li></ul><ul><li>A few files still under LGPL </li></ul><ul><li>Why ASL, not LGPL? </li></ul>
  6. 7. Usability is critical! <ul><li>Key design goal of HornetQ is ease of use </li></ul><ul><li>Simple API </li></ul><ul><li>Clear and simple to configure </li></ul><ul><li>Great docs </li></ul><ul><li>Ships with over 65 fully runnable examples out of the box </li></ul><ul><li>Minimal third party dependencies </li></ul>
  7. 8. Both standalone and JEE messaging <ul><li>HornetQ is a fully functional stand-alone messaging server – if you don't want an app server, don't use an app server </li></ul><ul><li>HornetQ can also be integrated with any JEE application server, e.g. JBoss Application Server 5.0, using its JCA adaptor </li></ul><ul><li>HornetQ can also be used with any dependency injection framework, e.g. JBoss MC, Spring, Google Guice </li></ul>
  8. 9. Elegant generic architecture <ul><li>Fully functional JMS agnostic messaging system </li></ul><ul><li>No dependencies on JMX, JNDI, JCA, etc. </li></ul><ul><li>Just a set of simple POJOs </li></ul><ul><li>JMS functionality applied as thin facade on the client side </li></ul><ul><li>Much, much more than just JMS! </li></ul><ul><li>Can be embedded in an application that requires messaging internally. </li></ul>
  9. 10. Generic core and JMS facade Server side Client side Core HornetQ client is fully functional HornetQ Client HornetQ Server JMS Facade
  10. 11. Stand-alone deployment using JBoss Micro-container JNDI HornetQ POJOs AN Other Service
  11. 12. HornetQ inside JBoss AS 5.x JBoss MC JMX JNDI HornetQ POJOs A.N. Other Service EJB Transactions Web services etc HTTP
  12. 13. HornetQ embedded in 3 rd party application User application (process) HornetQ POJOs User application classes
  13. 14. HornetQ embedded code example 01. MessagingServer server = new MessagingServerImpl(); 02. server.start(); 03. ClientSessionFactory sf = new ClientSessionFactoryImpl(...); 04. ClientSession sess = sf.createSession(); 05. sess.createQueue(&quot;address1&quot;, &quot;queue1&quot;); 06. sess.start(); 07. ClientProducer prod = sess.createProducer(&quot;address1&quot;); 08. Message message = new ClientMessageImpl(false); 09. message.getBody().writeString(&quot;hello world&quot;); 10. prod.send(message); 11. ClientConsumer cons = sess.createConsumer(&quot;queue1&quot;); 12. Message received = cons.receive(); 13. System.out.println(&quot;Got message &quot; + received.getBody().readString()); 14. sess.close(); 15. server.stop();
  14. 15. HornetQ features <ul><li>Very high performance journal </li></ul><ul><li>Support for huge queues and huge messages with small server and client footprint </li></ul><ul><li>Pluggable transport system </li></ul><ul><li>Seamless High Availability (HA) </li></ul><ul><li>Massively flexible clustering </li></ul><ul><li>Extensive management API </li></ul><ul><li>Lots, lots, more, but no time here! See the wiki for a full list: http://www.jboss.org/community/wiki/HornetQFeatures </li></ul>
  15. 16. Ultra high performance journal <ul><li>HornetQ persistence is very fast </li></ul><ul><li>Very fast store using Linux asynchronous IO. </li></ul><ul><li>Up to 100+ MiB/s on a single node! </li></ul><ul><li>JNI interface to aio library (libaio), encapsulated in Java package. </li></ul><ul><li>Automatic switches to Java NIO when not running on Linux </li></ul>
  16. 17. Asynchronous IO on Linux OS Asynch store Client Send 1 Send 2 Send 3 Disc Ack 1 Send 4 Ack 2 Ack 3 Send 5 Time JNI
  17. 18. Huge queues and messages <ul><li>HornetQ supports huge queues – far bigger than can fit in available RAM </li></ul><ul><li>Run Terabyte queues while the server is only running in 50MiB of RAM! </li></ul><ul><li>Send and receive huge multi-gigabyte messages with all the normal transactional semantics </li></ul><ul><li>Effectively, only limit to message size is available disk space. We have tested messages up to 8 GiB in size. </li></ul>
  18. 19. Configurable Transport system <ul><li>Fully pluggable transport </li></ul><ul><li>Ships with default implementation using JBoss Netty http://jboss.org/netty/ </li></ul><ul><li>TCP transport </li></ul><ul><li>SSL transport </li></ul><ul><li>HTTP transport </li></ul><ul><li>Servlet transport </li></ul><ul><li>In-VM transport </li></ul>
  19. 20. HornetQ High Availability <ul><li>Transparent reconnection on failure </li></ul><ul><li>100% guaranteed no loss or duplication of messages </li></ul><ul><li>Fail-over via store on SAN </li></ul><ul><li>Replicated journal (Shared nothing approach) </li></ul>
  20. 21. HornetQ Clusters <ul><li>HornetQ servers can be grouped into clusters </li></ul><ul><li>Clusters are a way of balancing message processing across several nodes. </li></ul><ul><li>Messages arriving on cluster are balanced to different nodes to spread the load – default balancing is round robin. </li></ul><ul><li>Balancing takes into account selectors and consumers on each node </li></ul>
  21. 22. Clusters Messages Node A Node B Node C Messages balanced according to number of matching consumers C C C C C C
  22. 23. HornetQ Core Bridges <ul><li>Core bridges take messages from one queue and forward them to another remote address </li></ul><ul><li>Core bridges can use filters to select only certain messages </li></ul><ul><li>Core bridges can apply transformations </li></ul><ul><li>Core bridges are high performance </li></ul><ul><li>Core bridges can work with unreliable connections </li></ul><ul><li>Core bridges are not JMS bridges </li></ul>
  23. 24. Core bridges Filter messages Send to address Node A Node B messages Internet, WAN, etc Queue Core bridge Queue Queue Queue Divert
  24. 25. HornetQ diverts <ul><li>Diverts are a routing table for messaging </li></ul><ul><li>Diverts take messages destined for one address and divert them to another address </li></ul><ul><li>Diverts can be exclusive or not. Non exclusive diverts copy messages. </li></ul><ul><li>Diverts can use filters to only select certain messages </li></ul><ul><li>Diverts are high performance </li></ul>
  25. 26. Diverts Filter Transform Filter Transform Exclusive diverts can be used to “divert” Non exclusive diverts can be used to “siphon” or “snoop” Queue A Exclusive divert Queue B Queue C Queue D Non exclusive divert Queue F Queue E
  26. 27. Global scale messaging fabric <ul><li>Combine clusters, bridges and diverts and you can create a massively configurable global messaging fabric to run your business. All with zero message loss and zero message duplication guarantee. </li></ul><ul><li>Add HA to provide unbroken up-time. </li></ul><ul><li>Use HornetQ as the messaging fabric together with JBoss ESB, and benefit from all the 3 rd party connectors provided by JBoss ESB. </li></ul>
  27. 28. Going ahead <ul><li>Interoperability – REST, AMQP, STOMP, XMPP, Ajax/Comet </li></ul><ul><li>Server-less mode </li></ul><ul><li>Performance bench-marks </li></ul><ul><li>See the road map here: http://www.jboss.org/community/wiki/Roadmap </li></ul>
  28. 29. Interoperability <ul><li>REST Provide a simple RESTful interface for HornetQ over HTTP. See REST-* project </li></ul><ul><li>AMQP – HornetQ will implement the AMQP protocol </li></ul><ul><li>STOMP Native STOMP support provides access to HornetQ by many STOMP clients written in different languages </li></ul><ul><li>XMPP </li></ul><ul><li>Async web support (Ajax/comet/bayeaux) </li></ul>
  29. 30. Join us! <ul><li>HornetQ is a community project - come and get involved! </li></ul><ul><li>We are always looking for new developers to help out – there is a lot of cool new stuff to implement. </li></ul><ul><li>Find us on irc: irc://freenode.net:6667#hornetq </li></ul>
  30. 31. Check out the HornetQ web site: http://jboss.org/hornetq Follow HornetQ on twitter: http://twitter.com/hornetq Visit the blog: http://hornetq.blogspot.com
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×