<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Are there any best practices on using Redis with structured streaming  (for data enrichment) ? in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/are-there-any-best-practices-on-using-redis-with-structured/m-p/23109#M110</link>
    <description>&lt;P&gt;What would be the volume of data in Redis ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 1: Read &lt;A href="https://github.com/RedisLabs/spark-redis/blob/master/doc/dataframe.md#reading-redis-hashes" alt="https://github.com/RedisLabs/spark-redis/blob/master/doc/dataframe.md#reading-redis-hashes" target="_blank"&gt;redis data into a dataframe &lt;/A&gt;and do a stream/static join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 2: Inside foreachBatch&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Get redis connection&lt;UL&gt;&lt;LI&gt;fetch lookup data by keys&lt;/LI&gt;&lt;LI&gt;perform the enrichment&lt;/LI&gt;&lt;LI&gt;close connection&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jun 2021 06:33:34 GMT</pubDate>
    <dc:creator>sajith_appukutt</dc:creator>
    <dc:date>2021-06-23T06:33:34Z</dc:date>
    <item>
      <title>Are there any best practices on using Redis with structured streaming  (for data enrichment) ?</title>
      <link>https://community.databricks.com/t5/administration-architecture/are-there-any-best-practices-on-using-redis-with-structured/m-p/23108#M109</link>
      <description />
      <pubDate>Tue, 18 Mar 2025 16:51:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/are-there-any-best-practices-on-using-redis-with-structured/m-p/23108#M109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-03-18T16:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Are there any best practices on using Redis with structured streaming  (for data enrichment) ?</title>
      <link>https://community.databricks.com/t5/administration-architecture/are-there-any-best-practices-on-using-redis-with-structured/m-p/23109#M110</link>
      <description>&lt;P&gt;What would be the volume of data in Redis ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 1: Read &lt;A href="https://github.com/RedisLabs/spark-redis/blob/master/doc/dataframe.md#reading-redis-hashes" alt="https://github.com/RedisLabs/spark-redis/blob/master/doc/dataframe.md#reading-redis-hashes" target="_blank"&gt;redis data into a dataframe &lt;/A&gt;and do a stream/static join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 2: Inside foreachBatch&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Get redis connection&lt;UL&gt;&lt;LI&gt;fetch lookup data by keys&lt;/LI&gt;&lt;LI&gt;perform the enrichment&lt;/LI&gt;&lt;LI&gt;close connection&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 06:33:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/are-there-any-best-practices-on-using-redis-with-structured/m-p/23109#M110</guid>
      <dc:creator>sajith_appukutt</dc:creator>
      <dc:date>2021-06-23T06:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Are there any best practices on using Redis with structured streaming  (for data enrichment) ?</title>
      <link>https://community.databricks.com/t5/administration-architecture/are-there-any-best-practices-on-using-redis-with-structured/m-p/36162#M209</link>
      <description>&lt;P&gt;Redis offers various data structures such as strings, lists, sets, and hashes. Depending on your use case, select the appropriate data structure for storing the &lt;A href="https://www.globaldatabase.com/empower-your-business-growth-with-b2b-data-enrichment-a-comprehensive-guide" target="_self"&gt;&lt;SPAN&gt;crm enrich&lt;/SPAN&gt;&lt;/A&gt; data. For example, if you need to store key-value pairs, Redis hashes (HSET, HGET) can be a good choice. Define a consistent schema for the data stored in Redis. This helps in ensuring that the data retrieved from Redis aligns with the expected structure during enrichment. Consistency in data schema simplifies downstream processing. When retrieving data from Redis during structured streaming, avoid making individual requests for each record. Instead, consider using pipeline operations to send multiple commands in a batch. This can significantly reduce network round-trips and improve performance.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 13:42:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/are-there-any-best-practices-on-using-redis-with-structured/m-p/36162#M209</guid>
      <dc:creator>Joe_Suarez</dc:creator>
      <dc:date>2023-06-29T13:42:09Z</dc:date>
    </item>
  </channel>
</rss>

