<?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>Rabbitmq on Murat Useinov</title>
    <link>https://useinov.com/tags/rabbitmq/</link>
    <description>Recent content in Rabbitmq on Murat Useinov</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 20 Aug 2021 22:05:00 +0300</lastBuildDate>
    <atom:link href="https://useinov.com/tags/rabbitmq/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Redis Streams is a log, not a better queue</title>
      <link>https://useinov.com/posts/2021/redis-streams-log/</link>
      <pubDate>Fri, 20 Aug 2021 22:05:00 +0300</pubDate>
      <guid>https://useinov.com/posts/2021/redis-streams-log/</guid>
      <description>&lt;p&gt;&amp;ldquo;Should we move the queue to Streams? They are the proper way now.&amp;rdquo; A colleague, this week, about our Redis list queue. Wrong question. Streams are not a newer version of the same thing.&lt;/p&gt;
&lt;p&gt;A list queue is a hand-off. LPUSH on one side, BRPOP on the other, and once a consumer takes the message, it is gone. Crash after the pop and the message died with you, unless you built the pending-list dance yourself. No history, no second reader. For &amp;ldquo;send this email eventually&amp;rdquo; it is honestly enough.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The outbox table</title>
      <link>https://useinov.com/posts/2021/outbox-table/</link>
      <pubDate>Tue, 23 Mar 2021 15:30:00 +0300</pubDate>
      <guid>https://useinov.com/posts/2021/outbox-table/</guid>
      <description>&lt;p&gt;About once a month an order existed and nobody heard about it. The order service saved the order, then published &lt;code&gt;order.created&lt;/code&gt; to RabbitMQ, and once a month the process died between the two. Rare enough to be mysterious. Frequent enough to ruin a weekend.&lt;/p&gt;
&lt;p&gt;Two operations, two systems, no common transaction. Whatever order you do them in, you lose. Commit first, then publish: the order exists, the event never leaves. Publish first, then commit: the commit fails, consumers are already busy with an order that does not exist. We had the first variant in production.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
