camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (Confluence)" <conflue...@apache.org>
Subject [CONF] Apache Camel > Asynchronous Routing Engine
Date Wed, 07 Aug 2013 15:13:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/en/2176/1/1/_/styles/combined.css?spaceKey=CAMEL&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/CAMEL/Asynchronous+Routing+Engine">Asynchronous
Routing Engine</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~davsclaus">Claus
Ibsen</a>
    </h4>
        <br/>
                         <h4>Changes (1)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >- [Restlet] *Camel 2.8:* (only producer)
<br>- -[SEDA] (both consumer and producer)- SEDA was mistakenly in this list until November
3rd 2012. As of Camel 2.10.x, it still does not leverage the Async Routing Engine, but support
is planned for [Camel 3.0|http://camel.apache.org/camel-30-roadmap.html#Camel3.0-Roadmap-SEDA%2FVMcomponentstoleverageasyncroutingengine].
<br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">*
[Timer] *Camel 2.12:* (only consumer) <br></td></tr>
            <tr><td class="diff-unchanged" > <br>When we say a component
is supported, that means, the component is leveraging the asynchronous model. For example
[Jetty] uses continuations and the async http client to be fully asynchronous and non blocked.
That means no threads will ever be blocked while waiting for a reply. <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h2><a name="AsynchronousRoutingEngine-AsynchronousRoutingEngine"></a>Asynchronous
Routing Engine</h2>
<p><b>Available as of Camel 2.4</b></p>

<p>As of Camel 2.4 the asynchronous routing engine is back and kicking.<br/>
All the <a href="/confluence/display/CAMEL/Enterprise+Integration+Patterns" title="Enterprise
Integration Patterns">Enterprise Integration Patterns</a> are supported as well a
selected number of <a href="/confluence/display/CAMEL/Components" title="Components">Components</a>:</p>
<ul class="alternate" type="square">
	<li><a href="/confluence/display/CAMEL/AHC" title="AHC">AHC</a> <b>Camel
2.8:</b> (only producer)</li>
	<li><a href="/confluence/display/CAMEL/AWS" title="AWS">AWS</a> <b>Camel
2.11:</b> (only consumer) for S3 and SNS.</li>
	<li><a href="/confluence/display/CAMEL/avro" title="avro">Avro</a> <b>Camel
2.10:</b> (only producer)</li>
	<li><a href="/confluence/display/CAMEL/CXF" title="CXF">CXF</a> <b>Camel
2.5:</b> (both consumer and producer)</li>
	<li><a href="/confluence/display/CAMEL/CXFRS" title="CXFRS">CXFRS</a> <b>Camel
2.5:</b> (only consumer)</li>
	<li><a href="/confluence/display/CAMEL/Direct-VM" title="Direct-VM">Direct&#45;VM</a>
<b>Camel 2.10.5/2.11.0:</b> (both consumer and producer)</li>
	<li><a href="/confluence/display/CAMEL/Guava+EventBus" title="Guava EventBus">Guava
EventBus</a> <b>Camel 2.10:</b> (only consumer)</li>
	<li><a href="/confluence/display/CAMEL/JBI" title="JBI">JBI</a> (both consumer
and producer)</li>
	<li><a href="/confluence/display/CAMEL/Jetty" title="Jetty">Jetty</a> (both
consumer and producer)</li>
	<li><a href="/confluence/display/CAMEL/JGroups" title="JGroups">JGroups</a>
<b>Camel 2.10:</b> (only consumer)</li>
	<li><a href="/confluence/display/CAMEL/JMS" title="JMS">JMS</a> <b>Camel
2.5:</b> (only producer for <a href="/confluence/display/CAMEL/Request+Reply" title="Request
Reply">Request Reply</a> messaging over JMS). <b>Camel 2.9:</b> (consumer,
if option <tt>asyncConsumer=true</tt> is used).</li>
	<li><a href="/confluence/display/CAMEL/JMS" title="JMS">JMS</a> <b>Camel
2.9:</b> (also consumer)</li>
	<li><a href="/confluence/display/CAMEL/MQTT" title="MQTT">MQTT</a> <b>Camel
2.10.2:</b> (only producer)</li>
	<li><a href="/confluence/display/CAMEL/NMR" title="NMR">NMR</a> (both consumer
and producer)</li>
	<li><a href="/confluence/display/CAMEL/Netty" title="Netty">Netty</a> only
producer (<b>Camel 2.10:</b> also consumer)</li>
	<li><a href="/confluence/display/CAMEL/Restlet" title="Restlet">Restlet</a>
<b>Camel 2.8:</b> (only producer)</li>
	<li><del><a href="/confluence/display/CAMEL/SEDA" title="SEDA">SEDA</a>
(both consumer and producer)</del> SEDA was mistakenly in this list until November 3rd
2012. As of Camel 2.10.x, it still does not leverage the Async Routing Engine, but support
is planned for <a href="http://camel.apache.org/camel-30-roadmap.html#Camel3.0-Roadmap-SEDA%2FVMcomponentstoleverageasyncroutingengine"
class="external-link" rel="nofollow">Camel 3.0</a>.</li>
</ul>
<ul>
	<li><a href="/confluence/display/CAMEL/Timer" title="Timer">Timer</a> <b>Camel
2.12:</b> (only consumer)</li>
</ul>


<p>When we say a component is supported, that means, the component is leveraging the
asynchronous model. For example <a href="/confluence/display/CAMEL/Jetty" title="Jetty">Jetty</a>
uses continuations and the async http client to be fully asynchronous and non blocked. That
means no threads will ever be blocked while waiting for a reply.</p>

<p>In the future additional <a href="/confluence/display/CAMEL/Components" title="Components">Components</a>
will be supported as well where it's applicable.</p>

<h3><a name="AsynchronousRoutingEngine-Forcingtousesynchronousprocessing"></a>Forcing
to use synchronous processing</h3>

<p>You can configure the endpoints with the option <tt>synchronous=true</tt>
to force using synchronous processing. For example when sending a web service request using
<a href="/confluence/display/CAMEL/CXF" title="CXF">CXF</a>, the caller will wait
for the reply if <tt>synchronous=true</tt> was configured. Currently this option
is supported by the all the producers. If you don't want to let the <a href="/confluence/display/CAMEL/CXF"
title="CXF">CXF</a> consumer leverage the CXF continuation API to use the asynchronous
processing, you can also use this option <tt>synchronous=true</tt> to disable
it. The <a href="/confluence/display/CAMEL/JBI" title="JBI">JBI</a> and <a
href="/confluence/display/CAMEL/NMR" title="NMR">NMR</a> component are always asynchronous
and doesn't support this option.</p>

<h2><a name="AsynchronousRoutingEngine-Backgroundinformation"></a>Background
information</h2>

<p>See <a href="/confluence/display/CAMEL/Asynchronous+Processing" title="Asynchronous
Processing">Asynchronous Processing</a> for additional information and the concepts
behind the asynchronous model.</p>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;" class="grey">
                        <a href="https://cwiki.apache.org/confluence/users/removespacenotification.action?spaceKey=CAMEL">Stop
watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://cwiki.apache.org/confluence/users/editmyemailsettings.action">Change
email notification preferences</a>
</div>
        <a href="https://cwiki.apache.org/confluence/display/CAMEL/Asynchronous+Routing+Engine">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=23332229&revisedVersion=22&originalVersion=21">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/CAMEL/Asynchronous+Routing+Engine?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message