activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r981029 - in /websites/production/activemq/content: async-sends.html cache/main.pageCache
Date Tue, 23 Feb 2016 18:21:51 GMT
Author: buildbot
Date: Tue Feb 23 18:21:50 2016
New Revision: 981029

Log:
Production update by buildbot for activemq

Modified:
    websites/production/activemq/content/async-sends.html
    websites/production/activemq/content/cache/main.pageCache

Modified: websites/production/activemq/content/async-sends.html
==============================================================================
--- websites/production/activemq/content/async-sends.html (original)
+++ websites/production/activemq/content/async-sends.html Tue Feb 23 18:21:50 2016
@@ -81,52 +81,16 @@
   <tbody>
         <tr>
         <td valign="top" width="100%">
-<div class="wiki-content maincontent"><h2 id="AsyncSends-Background">Background</h2>
-
-<p>ActiveMQ supports sending messages to a broker in sync or async mode.  The mode
used has a huge impact in the latency of the send call.  Since latency is typically a huge
factor in the throughput that can achieved by producer, using async sends can increase the
performance of your system dramatically.</p>
-
-<p>The good news is that ActiveMQ sends message in async mode by default in several
cases.  It is only in cases where the JMS specification required the use of sync sending that
we default to sync sending.  The cases that we are forced to send in sync mode are when persistent
messages are being sent outside of a transaction.</p>
-
-<p>If you are not using transactions and are sending persistent messages, then each
send is synch and blocks until the broker has sent back an acknowledgement to the producer
that the message has been safely persisted to disk.  This ack provides that guarantee that
the message will not be lost but it also costs a huge latency penalty since the client is
blocked.</p>
-
-<p>Many high performance applications are designed to be tolerate a small amount of
message loss in failure scenarios.  If your application has been designed in this fashion,
you can enable the use of async sends to increase throughput even when using persistent messages.
</p>
-
-
-<h3 id="AsyncSends-ConfiguringAsyncSendusingaConnectionURI">Configuring Async Send
using a Connection URI</h3>
-
-<p>You can use the <a shape="rect" href="connection-configuration-uri.html">Connection
Configuration URI</a> to configure async sends as follows</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">
-cf = new ActiveMQConnectionFactory("tcp://locahost:61616?jms.useAsyncSend=true");
+<div class="wiki-content maincontent"><h2 id="AsyncSends-Background">Background</h2><p>ActiveMQ
supports sending messages to a broker in sync or async mode. The mode used has a huge impact
in the latency of the send call. Since latency is typically a huge factor in the throughput
that can achieved by producer, using async sends can increase the performance of your system
dramatically.</p><p>The good news is that ActiveMQ sends message in async mode
by default in several cases. It is only in cases where the JMS specification required the
use of sync sending that we default to sync sending. The cases that we are forced to send
in sync mode are when persistent messages are being sent outside of a transaction.</p><p>If
you are not using transactions and are sending persistent messages, then each send is synch
and blocks until the broker has sent back an acknowledgement to the producer that the message
has been safely persisted to disk. This ack provides that guarantee that the message w
 ill not be lost but it also costs a huge latency penalty since the client is blocked.</p><p>Many
high performance applications are designed to be tolerate a small amount of message loss in
failure scenarios. If your application has been designed in this fashion, you can enable the
use of async sends to increase throughput even when using persistent messages.</p><h3
id="AsyncSends-ConfiguringAsyncSendusingaConnectionURI">Configuring Async Send using a
Connection URI</h3><p>You can use the <a shape="rect" href="connection-configuration-uri.html">Connection
Configuration URI</a> to configure async sends as follows</p><div class="code
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">cf
= new ActiveMQConnectionFactory("tcp://locahost:61616?jms.useAsyncSend=true");
 </pre>
-</div></div>
-
-<h3 id="AsyncSends-ConfiguringAsyncSendattheConnectionFactoryLevel">Configuring Async
Send at the ConnectionFactory Level</h3>
-
-<p>You can enable this feature on the <a shape="rect" class="external-link" href="http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apache/activemq/ActiveMQConnectionFactory.html">ActiveMQConnectionFactory
</a> object using the property.</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">
-((ActiveMQConnectionFactory)connectionFactory).setUseAsyncSend(true);
+</div></div><h3 id="AsyncSends-ConfiguringAsyncSendattheConnectionFactoryLevel">Configuring
Async Send at the ConnectionFactory Level</h3><p>You can enable this feature on
the <a shape="rect" class="external-link" href="http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apache/activemq/ActiveMQConnectionFactory.html">ActiveMQConnectionFactory
</a> object using the property.</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
+<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">((ActiveMQConnectionFactory)connectionFactory).setUseAsyncSend(true);
 </pre>
-</div></div>
-
-<h3 id="AsyncSends-ConfiguringAsyncDispatchattheConnectionLevel">Configuring Async
Dispatch at the Connection Level</h3>
-
-<p>Configuring the dispatchAsync setting at this level overrides the settings at the
connection factory level.</p>
-
-<p>You can enable this feature on the <a shape="rect" class="external-link" href="http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apache/activemq/ActiveMQConnection.html">ActiveMQConnection</a>
object using the property.</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
-<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">
-((ActiveMQConnection)connection).setUseAsyncSend(true);
+</div></div><h3 id="AsyncSends-ConfiguringAsyncSendattheConnectionLevel">Configuring
Async Send at the Connection Level</h3><p>Configuring the dispatchAsync setting
at this level overrides the settings at the connection factory level.</p><p>You
can enable this feature on the <a shape="rect" class="external-link" href="http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apache/activemq/ActiveMQConnection.html">ActiveMQConnection</a>
object using the property.</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
+<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">((ActiveMQConnection)connection).setUseAsyncSend(true);
 </pre>
-</div></div>
-
-<h3 id="AsyncSends-Alsosee">Also see</h3>
-
-<ul><li><a shape="rect" href="connection-configuration-uri.html">Connection
Configuration URI</a></li><li><a shape="rect" href="should-i-use-transactions.html">Should
I use transactions</a></li><li><a shape="rect" href="consumer-dispatch-async.html">Consumer
Dispatch Async</a></li></ul></div>
+</div></div><h3 id="AsyncSends-Alsosee">Also see</h3><ul><li><a
shape="rect" href="connection-configuration-uri.html">Connection Configuration URI</a></li><li><a
shape="rect" href="should-i-use-transactions.html">Should I use transactions</a></li><li><a
shape="rect" href="consumer-dispatch-async.html">Consumer Dispatch Async</a></li></ul></div>
         </td>
         <td valign="top">
           <div class="navigation">

Modified: websites/production/activemq/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.



Mime
View raw message