<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: nik</title>
    <description>The latest articles on DEV Community by nik (@subpod).</description>
    <link>https://dev.to/subpod</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1420686%2Fb6c6c54b-3032-4b5c-9257-67aa7dc87cdd.png</url>
      <title>DEV Community: nik</title>
      <link>https://dev.to/subpod</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/subpod"/>
    <language>en</language>
    <item>
      <title>node js client hangs on connection to redis cluster when master changes</title>
      <dc:creator>nik</dc:creator>
      <pubDate>Fri, 12 Apr 2024 09:06:43 +0000</pubDate>
      <link>https://dev.to/subpod/node-js-client-hangs-on-connection-to-redis-cluster-when-master-changes-437d</link>
      <guid>https://dev.to/subpod/node-js-client-hangs-on-connection-to-redis-cluster-when-master-changes-437d</guid>
      <description>&lt;p&gt;Hi All! I have a Redis Cluster with three master shards. Each Master Shard node has one replica. The client on node.js connects to the cluster and sends requests at 500 requests per second.&lt;br&gt;
When one Master fails and the Master on the replica changes, i.e. the structure of the classer changes, the node.js client stops and hangs endlessly without any error messages.&lt;br&gt;
If I stop the node.js client and start it again, it reads the changed cluster structure and works fine.&lt;br&gt;
My question is what needs to be added to the node.js client code (timeout or something else) so that when the cluster structure changes, node.js client itself reconnects to the cluster without restarting. Thanks in advance.&lt;/p&gt;

</description>
      <category>node</category>
      <category>redis</category>
    </item>
    <item>
      <title>Клієнт node js зависає під час підключення до кластера redis, коли змінюється майстер</title>
      <dc:creator>nik</dc:creator>
      <pubDate>Fri, 12 Apr 2024 09:02:56 +0000</pubDate>
      <link>https://dev.to/subpod/kliient-node-js-zavisaie-pid-chas-pidkliuchiennia-do-klastiera-redis-koli-zminiuietsia-maistier-3am4</link>
      <guid>https://dev.to/subpod/kliient-node-js-zavisaie-pid-chas-pidkliuchiennia-do-klastiera-redis-koli-zminiuietsia-maistier-3am4</guid>
      <description>&lt;p&gt;Всім привіт! У мене є кластер Redis із трьома майстер шардами. Кожен вузол Master Shard має одну репліку. Клієнт на node.js підключається до кластера та надсилає запити зі швидкістю 500 запитів на секунду.&lt;br&gt;
Коли один майстер дає збій і репліка підвищується до майстра, тобто змінюється структура кластера, клієнт node.js зупиняється і зависає нескінченно без будь-яких повідомлень про помилки.&lt;br&gt;
Якщо я зупиняю клієнт node.js і запускаю його знову, він читає змінену структуру кластера та працює нормально.&lt;br&gt;
Моє запитання полягає в тому, що потрібно додати до коду клієнта node.js (тайм-аут чи щось інше), щоб при зміні структури кластера клієнт node.js сам повторно підключався до кластера без перезапуску клієнта. Дякую заздалегідь.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>node js client hangs on connection to redis cluster when master changes</title>
      <dc:creator>nik</dc:creator>
      <pubDate>Fri, 12 Apr 2024 08:48:21 +0000</pubDate>
      <link>https://dev.to/subpod/node-js-client-hangs-on-connection-to-redis-cluster-when-master-changes-bli</link>
      <guid>https://dev.to/subpod/node-js-client-hangs-on-connection-to-redis-cluster-when-master-changes-bli</guid>
      <description>&lt;p&gt;Hi All! I have a Redis Cluster with three master shards. Each Master Shard node has one replica. The client on node.js connects to the cluster and sends requests at 500 requests per second.&lt;br&gt;
When one Master fails and the Master on the replica changes, i.e. the structure of the classer changes, the node.js client stops and hangs endlessly without any error messages.&lt;br&gt;
If I stop the node.js client and start it again, it reads the changed cluster structure and works fine.&lt;br&gt;
My question is what needs to be added to the node.js client code (timeout or something else) so that when the cluster structure changes, node.js client itself reconnects to the cluster without restarting. Thanks in advance.&lt;/p&gt;

</description>
      <category>redis</category>
      <category>node</category>
    </item>
  </channel>
</rss>
