<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.haidhi.my.id/wiki/index.php?action=history&amp;feed=atom&amp;title=RabbitMQ%3A_Hello_World</id>
	<title>RabbitMQ: Hello World - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.haidhi.my.id/wiki/index.php?action=history&amp;feed=atom&amp;title=RabbitMQ%3A_Hello_World"/>
	<link rel="alternate" type="text/html" href="https://wiki.haidhi.my.id/wiki/index.php?title=RabbitMQ:_Hello_World&amp;action=history"/>
	<updated>2026-11-01T22:43:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.haidhi.my.id/wiki/index.php?title=RabbitMQ:_Hello_World&amp;diff=518&amp;oldid=prev</id>
		<title>SanzSkuy at 01:09, 21 December 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.haidhi.my.id/wiki/index.php?title=RabbitMQ:_Hello_World&amp;diff=518&amp;oldid=prev"/>
		<updated>2025-12-21T01:09:19Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:09, 21 December 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l16&quot;&gt;Line 16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 16:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;connection.close()&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;connection.close()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;receive&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;receive&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.py&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=python&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=python&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;import pika, sys, os&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;import pika, sys, os&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>SanzSkuy</name></author>
	</entry>
	<entry>
		<id>https://wiki.haidhi.my.id/wiki/index.php?title=RabbitMQ:_Hello_World&amp;diff=517&amp;oldid=prev</id>
		<title>SanzSkuy: Created page with &quot;send.py &lt;syntaxhighlight lang=python&gt; import pika  connection = pika.BlockingConnection(pika.ConnectionParameters(&#039;localhost&#039;)) channel = connection.channel()  channel.queue_declare(queue=&#039;hello&#039;) channel.basic_publish(     exchange=&#039;&#039;,     routing_key=&#039;hello&#039;,     body=&#039;Hello 1&#039; )  print(&quot; [x] Sent &#039;Hello World!&#039;&quot;) connection.close() &lt;/syntaxhighlight&gt; receive &lt;syntaxhighlight lang=python&gt; import pika, sys, os  def main():     connection = pika.BlockingConnection(pika.C...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.haidhi.my.id/wiki/index.php?title=RabbitMQ:_Hello_World&amp;diff=517&amp;oldid=prev"/>
		<updated>2025-12-21T01:09:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;send.py &amp;lt;syntaxhighlight lang=python&amp;gt; import pika  connection = pika.BlockingConnection(pika.ConnectionParameters(&amp;#039;localhost&amp;#039;)) channel = connection.channel()  channel.queue_declare(queue=&amp;#039;hello&amp;#039;) channel.basic_publish(     exchange=&amp;#039;&amp;#039;,     routing_key=&amp;#039;hello&amp;#039;,     body=&amp;#039;Hello 1&amp;#039; )  print(&amp;quot; [x] Sent &amp;#039;Hello World!&amp;#039;&amp;quot;) connection.close() &amp;lt;/syntaxhighlight&amp;gt; receive &amp;lt;syntaxhighlight lang=python&amp;gt; import pika, sys, os  def main():     connection = pika.BlockingConnection(pika.C...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;send.py&lt;br /&gt;
&amp;lt;syntaxhighlight lang=python&amp;gt;&lt;br /&gt;
import pika&lt;br /&gt;
&lt;br /&gt;
connection = pika.BlockingConnection(pika.ConnectionParameters(&amp;#039;localhost&amp;#039;))&lt;br /&gt;
channel = connection.channel()&lt;br /&gt;
&lt;br /&gt;
channel.queue_declare(queue=&amp;#039;hello&amp;#039;)&lt;br /&gt;
channel.basic_publish(&lt;br /&gt;
    exchange=&amp;#039;&amp;#039;,&lt;br /&gt;
    routing_key=&amp;#039;hello&amp;#039;,&lt;br /&gt;
    body=&amp;#039;Hello 1&amp;#039;&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
print(&amp;quot; [x] Sent &amp;#039;Hello World!&amp;#039;&amp;quot;)&lt;br /&gt;
connection.close()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
receive&lt;br /&gt;
&amp;lt;syntaxhighlight lang=python&amp;gt;&lt;br /&gt;
import pika, sys, os&lt;br /&gt;
&lt;br /&gt;
def main():&lt;br /&gt;
    connection = pika.BlockingConnection(pika.ConnectionParameters(host=&amp;#039;localhost&amp;#039;))&lt;br /&gt;
    channel = connection.channel()&lt;br /&gt;
&lt;br /&gt;
    channel.queue_declare(queue=&amp;#039;hello&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
    def callback(ch, method, properties, body):&lt;br /&gt;
        print(f&amp;quot; [x] Received {body}&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
    channel.basic_consume(queue=&amp;#039;hello&amp;#039;, on_message_callback=callback, auto_ack=True)&lt;br /&gt;
&lt;br /&gt;
    print(&amp;#039; [*] Waiting for messages. To exit press CTRL+C&amp;#039;)&lt;br /&gt;
    channel.start_consuming()&lt;br /&gt;
&lt;br /&gt;
if __name__ == &amp;#039;__main__&amp;#039;:&lt;br /&gt;
    try:&lt;br /&gt;
        main()&lt;br /&gt;
    except KeyboardInterrupt:&lt;br /&gt;
        print(&amp;#039;Interrupted&amp;#039;)&lt;br /&gt;
        try:&lt;br /&gt;
            sys.exit(0)&lt;br /&gt;
        except SystemExit:&lt;br /&gt;
            os._exit(0)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>SanzSkuy</name></author>
	</entry>
</feed>