<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>distributed systems on Poeticoding</title><link>https://www.poeticoding.com/tag/distributed-systems/</link><description>Recent content in distributed systems on Poeticoding</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 23 Jun 2019 17:52:32 +0000</lastBuildDate><atom:link href="https://www.poeticoding.com/tag/distributed-systems/index.xml" rel="self" type="application/rss+xml"/><item><title>Connecting Elixir Nodes with libcluster, locally and on Kubernetes</title><link>https://www.poeticoding.com/connecting-elixir-nodes-with-libcluster-locally-and-on-kubernetes/</link><pubDate>Wed, 06 Feb 2019 12:57:02 +0000</pubDate><guid>https://www.poeticoding.com/connecting-elixir-nodes-with-libcluster-locally-and-on-kubernetes/</guid><description>&lt;div class="video">&lt;iframe src="https://www.youtube-nocookie.com/embed/FARtObrKr5I" title="YouTube video" loading="lazy" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen referrerpolicy="strict-origin-when-cross-origin">&lt;/iframe>&lt;/div>

&lt;p>In the last few articles we saw how to make our Phoenix chat app distributed; at the beginning with Redis, and after with distributed Elixir connecting the nodes together.&lt;/p>
&lt;p>We had just one problem; we had to manually connect to the nodes in the IEX console. This is an issue in production. In this video we will see how to automatically cluster the Phoenix chat nodes using the libcluster library locally, and on a Kubernetes cluster with a dynamic number of nodes.&lt;/p></description></item><item><title>Distributed Phoenix Chat with PubSub PG2 adapter</title><link>https://www.poeticoding.com/distributed-phoenix-chat-with-pubsub-pg2-adapter/</link><pubDate>Wed, 30 Jan 2019 16:44:08 +0000</pubDate><guid>https://www.poeticoding.com/distributed-phoenix-chat-with-pubsub-pg2-adapter/</guid><description>&lt;p>In this article we&amp;rsquo;ll see how to cluster the Phoenix Chat nodes, using a really powerful functionality embedded in BEAM (the Elixir/Erlang VM), for easily communicate between Elixir nodes. We&amp;rsquo;ll then see how &lt;code>pg2&lt;/code> works and inspect how Phoenix efficiently broadcasts the messages in a distributed chat app.&lt;/p></description></item></channel></rss>