<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>quoll00</author_name>
  <author_url>https://blog.hatena.ne.jp/quoll00/</author_url>
  <blog_title>Carpe Diem</blog_title>
  <blog_url>https://christina04.hatenablog.com/</blog_url>
  <categories>
    <anon>Redis</anon>
  </categories>
  <description>概要 タスクキューを操作する時に、特定の処理が他の処理よりも先に実行できるよう優先順位を付けたいケースがあります。 RedisのBLPOPは複数のリストを処理してくれるのでそれを実現できます。 前提 以下の優先度を決めたキューがあるとします。 キュー名 優先度 入ってるタスク queue:high 高 ht1, ht2, ht3 queue:middle 中 mt1, mt2, mt3 queue:low 低 lt1, lt2, lt3</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchristina04.hatenablog.com%2Fentry%2F2018%2F01%2F18%2F013213&quot; title=&quot;BLPOPで優先順位を付けてタスクキューを実行 - Carpe Diem&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-01-18 01:32:13</published>
  <title>BLPOPで優先順位を付けてタスクキューを実行</title>
  <type>rich</type>
  <url>https://christina04.hatenablog.com/entry/2018/01/18/013213</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
