<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Message on Micha Kops&#39; Tech Notes</title>
    <link>https://www.hascode.com/tags/message/</link>
    <description>Recent content in Message on Micha Kops&#39; Tech Notes</description>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>Copyright © 2010 - 2025 Micha Kops. #e9d956c0c0154a221ad83c925346a8fa0e72f866</copyright>
    <lastBuildDate>Mon, 01 Mar 2010 00:00:00 +0100</lastBuildDate>
    <atom:link href="https://www.hascode.com/tags/message/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>AMQP and RabbitMQ Snippets</title>
      <link>https://www.hascode.com/amqp-and-rabbitmq-snippets/</link>
      <pubDate>Mon, 01 Mar 2010 00:00:00 +0100</pubDate>
      <guid>https://www.hascode.com/amqp-and-rabbitmq-snippets/</guid>
      <description>&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_rabbitmqctl&#34;&gt;rabbitmqctl&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;sect2&#34;&gt;
&lt;h3 id=&#34;_create_admin_user_with_full_host_permissions&#34;&gt;Create admin user with full host permissions&lt;/h3&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;highlight&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;# create new user named &amp;#39;theadmin&amp;#39;
rabbitmqctl add_user theadmin thepassword

# make &amp;#39;theadmin&amp;#39; admin
rabbitmqctl set_user_tags theadmin administrator

# give &amp;#39;theadmin&amp;#39; permissions for all hosts
rabbitmqctl set_permissions -p / theadmin &amp;#34;.*&amp;#34; &amp;#34;.*&amp;#34; &amp;#34;.*&amp;#34;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_amqp_exchange_types&#34;&gt;AMQP Exchange Types&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;sect2&#34;&gt;
&lt;h3 id=&#34;_1_fanout_exchange&#34;&gt;1. Fanout Exchange&lt;/h3&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;&lt;strong&gt;Description:&lt;/strong&gt; A fanout exchange routes messages to all of the queues that are bound to it. It doesn’t take the routing key into consideration. Instead, it simply broadcasts the message to all bound queues.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
