You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by li...@apache.org on 2017/06/08 05:10:05 UTC
[4/8] incubator-rocketmq-site git commit: Polish web site pages
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/5b69a90f/content/docs/simple-example/index.html
----------------------------------------------------------------------
diff --git a/content/docs/simple-example/index.html b/content/docs/simple-example/index.html
index 05f8d01..16a7cb8 100644
--- a/content/docs/simple-example/index.html
+++ b/content/docs/simple-example/index.html
@@ -57,7 +57,7 @@
<meta property="og:type" content="article">
- <meta property="article:published_time" content="2017-06-08T11:24:44+08:00">
+ <meta property="article:published_time" content="2017-06-08T13:09:18+08:00">
@@ -241,6 +241,14 @@
<li><a href="/docs/filter-by-sql92-example/" class="">Filter Example</a></li>
+
+
+
+
+
+
+ <li><a href="/docs/faq/" class="">FAQ</a></li>
+
</ul>
</li>
@@ -303,7 +311,7 @@
- <li><a href="/docs/pull-request/" class="">Pull Request</a></li>
+ <li><a href="/docs/pull-request/" class="">Manage Pull Request</a></li>
@@ -408,17 +416,6 @@
</li>
- <li>
-
-
-
-
- <a href="/docs/faq/"><span class="nav__sub-title">FAQ</span></a>
-
-
-
- </li>
-
</ul>
</nav>
@@ -457,11 +454,10 @@
<p>Use RocketMQ to send messages in three ways: reliable synchronous, reliable
asynchronous, and one-way transmission.</p>
-<p>This page introduces:
-the use cases, similarities and differences between the three implementations,
-and a code example for reference.</p>
+<p>This page exemplifies these three message-sending ways. Checkout the notes along with the example to figure out which
+way to use for your specific use case.</p>
-<h3 id="reliable-synchronous-transmission">Reliable synchronous transmission</h3>
+<h4 id="reliable-synchronous-transmission">Reliable synchronous transmission</h4>
<p>Application: Reliable synchronous transmission is used in extensive scenes, such as
important notification messages, SMS notification, SMS marketing system, etc..</p>
@@ -491,15 +487,14 @@ important notification messages, SMS notification, SMS marketing system, etc..</
</code></pre>
</div>
-<h3 id="reliable-asynchronous-transmission">Reliable asynchronous transmission</h3>
+<h4 id="reliable-asynchronous-transmission">Reliable asynchronous transmission</h4>
-<p>Application: asynchronous transmission is generally used to link time-consuming,
-response time sensitive business scenarios.</p>
+<p>Application: asynchronous transmission is generally used in response time sensitive business scenarios.</p>
<div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="nc">AsyncProducer</span> <span class="o">{</span>
<span class="kd">public</span> <span class="kd">static</span> <span class="kt">void</span> <span class="nf">main</span><span class="o">(</span><span class="n">String</span><span class="o">[]</span> <span class="n">args</span><span class="o">)</span> <span class="kd">throws</span> <span class="n">Exception</span> <span class="o">{</span>
<span class="c1">//Instantiate with a producer group name.</span>
- <span class="n">DefaultMQProducer</span> <span class="n">producer</span> <span class="o">=</span> <span class="k">new</span> <span class="n">DefaultMQProducer</span><span class="o">(</span><span class="s">"Jodie_Daily_test"</span><span class="o">);</span>
+ <span class="n">DefaultMQProducer</span> <span class="n">producer</span> <span class="o">=</span> <span class="k">new</span> <span class="n">DefaultMQProducer</span><span class="o">(</span><span class="s">"ExampleProducerGroup"</span><span class="o">);</span>
<span class="c1">//Launch the instance.</span>
<span class="n">producer</span><span class="o">.</span><span class="na">start</span><span class="o">();</span>
<span class="n">producer</span><span class="o">.</span><span class="na">setRetryTimesWhenSendAsyncFailed</span><span class="o">(</span><span class="mi">0</span><span class="o">);</span>
@@ -530,7 +525,7 @@ response time sensitive business scenarios.</p>
</code></pre>
</div>
-<h3 id="one-way-transmission">One-way transmission</h3>
+<h4 id="one-way-transmission">One-way transmission</h4>
<p>Application: One-way transmission is used for cases requiring moderate reliability,
such as log collection.</p>
@@ -538,7 +533,7 @@ such as log collection.</p>
<div class="language-java highlighter-rouge"><pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="nc">OnewayProducer</span> <span class="o">{</span>
<span class="kd">public</span> <span class="kd">static</span> <span class="kt">void</span> <span class="nf">main</span><span class="o">(</span><span class="n">String</span><span class="o">[]</span> <span class="n">args</span><span class="o">)</span> <span class="kd">throws</span> <span class="n">Exception</span><span class="o">{</span>
<span class="c1">//Instantiate with a producer group name.</span>
- <span class="n">DefaultMQProducer</span> <span class="n">producer</span> <span class="o">=</span> <span class="k">new</span> <span class="n">DefaultMQProducer</span><span class="o">(</span><span class="s">"example_group_name"</span><span class="o">);</span>
+ <span class="n">DefaultMQProducer</span> <span class="n">producer</span> <span class="o">=</span> <span class="k">new</span> <span class="n">DefaultMQProducer</span><span class="o">(</span><span class="s">"ExampleProducerGroup"</span><span class="o">);</span>
<span class="c1">//Launch the instance.</span>
<span class="n">producer</span><span class="o">.</span><span class="na">start</span><span class="o">();</span>
<span class="k">for</span> <span class="o">(</span><span class="kt">int</span> <span class="n">i</span> <span class="o">=</span> <span class="mi">0</span><span class="o">;</span> <span class="n">i</span> <span class="o"><</span> <span class="mi">100</span><span class="o">;</span> <span class="n">i</span><span class="o">++)</span> <span class="o">{</span>
@@ -550,7 +545,7 @@ such as log collection.</p>
<span class="o">);</span>
<span class="c1">//Call send message to deliver message to one of brokers.</span>
<span class="n">producer</span><span class="o">.</span><span class="na">sendOneway</span><span class="o">(</span><span class="n">msg</span><span class="o">);</span>
-
+
<span class="o">}</span>
<span class="c1">//Shut down once the producer instance is not longer in use.</span>
<span class="n">producer</span><span class="o">.</span><span class="na">shutdown</span><span class="o">();</span>
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/5b69a90f/content/dowloading/releases/index.html
----------------------------------------------------------------------
diff --git a/content/dowloading/releases/index.html b/content/dowloading/releases/index.html
index 498e8be..4c867a1 100644
--- a/content/dowloading/releases/index.html
+++ b/content/dowloading/releases/index.html
@@ -57,7 +57,7 @@
<meta property="og:type" content="article">
- <meta property="article:published_time" content="2017-06-08T11:24:44+08:00">
+ <meta property="article:published_time" content="2017-06-08T13:09:18+08:00">
@@ -241,6 +241,14 @@
<li><a href="/docs/filter-by-sql92-example/" class="">Filter Example</a></li>
+
+
+
+
+
+
+ <li><a href="/docs/faq/" class="">FAQ</a></li>
+
</ul>
</li>
@@ -303,7 +311,7 @@
- <li><a href="/docs/pull-request/" class="">Pull Request</a></li>
+ <li><a href="/docs/pull-request/" class="">Manage Pull Request</a></li>
@@ -408,17 +416,6 @@
</li>
- <li>
-
-
-
-
- <a href="/docs/faq/"><span class="nav__sub-title">FAQ</span></a>
-
-
-
- </li>
-
</ul>
</nav>
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/5b69a90f/content/feed.xml
----------------------------------------------------------------------
diff --git a/content/feed.xml b/content/feed.xml
index de93222..3ac9dd4 100644
--- a/content/feed.xml
+++ b/content/feed.xml
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.4.3">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2017-06-08T11:24:44+08:00</updated><id>/</id><title type="html">Apache RocketMQ</title><subtitle>The homepage of RocketMQ.</subtitle><author><name>{"name"=>nil, "avatar"=>"/assets/images/rmq-logo.png", "bio"=>"A fast, low latency, reliable, scalable, distributed MOM.", "location"=>"Hangzhou, China", "email"=>"dev@rocketmq.incubator.apache.org", "uri"=>"http://incubator.staging.apache.org/projects/rocketmq.html", "bitbucket"=>nil, "codepen"=>nil, "dribbble"=>nil, "flickr"=>nil, "facebook"=>nil, "foursquare"=>n
il, "github"=>"apache/incubator-rocketmq", "google_plus"=>nil, "keybase"=>nil, "instagram"=>nil, "lastfm"=>nil, "linkedin"=>nil, "pinterest"=>nil, "soundcloud"=>nil, "stackoverflow"=>"questions/tagged/rocketmq", "steam"=>nil, "tumblr"=>nil, "twitter"=>"ApacheRocketMQ", "vine"=>nil, "weibo"=>nil, "xing"=>nil, "youtube"=>nil, "quora"=>"topic/RocketMQ"}</name><email>dev@rocketmq.incubator.apache.org</email><uri>http://incubator.staging.apache.org/projects/rocketmq.html</uri></author><entry><title type="html">Release Notes - Apache RocketMQ - Version 4.1.0-incubating</title><link href="/release-notes-4.1.0-incubating/" rel="alternate" type="text/html" title="Release Notes - Apache RocketMQ - Version 4.1.0-incubating" /><published>
2017-06-02T00:00:00+08:00</published><updated>2017-06-02T00:00:00+08:00</updated><id>/release-notes-4.1.0-incubating</id><content type="html" xml:base="/release-notes-4.1.0-incubating/"><p>Release Notes - Apache RocketMQ - Version 4.1.0-incubating</p>
+<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.4.3">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2017-06-08T13:09:18+08:00</updated><id>/</id><title type="html">Apache RocketMQ</title><subtitle>The homepage of RocketMQ.</subtitle><author><name>{"name"=>nil, "avatar"=>"/assets/images/rmq-logo.png", "bio"=>"A fast, low latency, reliable, scalable, distributed MOM.", "location"=>"Hangzhou, China", "email"=>"dev@rocketmq.incubator.apache.org", "uri"=>"http://incubator.staging.apache.org/projects/rocketmq.html", "bitbucket"=>nil, "codepen"=>nil, "dribbble"=>nil, "flickr"=>nil, "facebook"=>nil, "foursquare"=>n
il, "github"=>"apache/incubator-rocketmq", "google_plus"=>nil, "keybase"=>nil, "instagram"=>nil, "lastfm"=>nil, "linkedin"=>nil, "pinterest"=>nil, "soundcloud"=>nil, "stackoverflow"=>"questions/tagged/rocketmq", "steam"=>nil, "tumblr"=>nil, "twitter"=>"ApacheRocketMQ", "vine"=>nil, "weibo"=>nil, "xing"=>nil, "youtube"=>nil, "quora"=>"topic/RocketMQ"}</name><email>dev@rocketmq.incubator.apache.org</email><uri>http://incubator.staging.apache.org/projects/rocketmq.html</uri></author><entry><title type="html">Release Notes - Apache RocketMQ - Version 4.1.0-incubating</title><link href="/release-notes-4.1.0-incubating/" rel="alternate" type="text/html" title="Release Notes - Apache RocketMQ - Version 4.1.0-incubating" /><published>
2017-06-02T00:00:00+08:00</published><updated>2017-06-02T00:00:00+08:00</updated><id>/release-notes-4.1.0-incubating</id><content type="html" xml:base="/release-notes-4.1.0-incubating/"><p>Release Notes - Apache RocketMQ - Version 4.1.0-incubating</p>
<h2 id="new-feature">New Feature</h2>
http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/5b69a90f/content/sitemap.xml
----------------------------------------------------------------------
diff --git a/content/sitemap.xml b/content/sitemap.xml
index 9edb2ec..9ee04fb 100644
--- a/content/sitemap.xml
+++ b/content/sitemap.xml
@@ -2,111 +2,115 @@
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>/about/team/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/about/contact/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/about/rewards/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/quick-start/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/motivation/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/core-concept/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/cli-admin-tool/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/cluster-deployment/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/pull-request/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/code-guidelines/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/documentation/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/faq/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/release-manual</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/dowloading/releases/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/roadmap/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/batch-example/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/broadcast-example/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/rmq-deployment/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/order-example/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/rmq-arc/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/schedule-example/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/simple-example/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/filter-by-sql92-example/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/best-practice-broker/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/best-practice-consumer/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
+</url>
+<url>
+<loc>/docs/create-pull-request/</loc>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/best-practice-namesvr/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/docs/best-practice-producer/</loc>
-<lastmod>2017-06-08T11:24:44+08:00</lastmod>
+<lastmod>2017-06-08T13:09:18+08:00</lastmod>
</url>
<url>
<loc>/rocketmq/how-to-support-more-queues-in-rocketmq/</loc>
@@ -226,6 +230,9 @@
<loc>/docs/best-practice-consumer/</loc>
</url>
<url>
+<loc>/docs/create-pull-request/</loc>
+</url>
+<url>
<loc>/docs/best-practice-namesvr/</loc>
</url>
<url>