<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>otp on Poeticoding</title><link>https://www.poeticoding.com/tag/otp/</link><description>Recent content in otp on Poeticoding</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 22 Feb 2021 11:03:44 +0000</lastBuildDate><atom:link href="https://www.poeticoding.com/tag/otp/index.xml" rel="self" type="application/rss+xml"/><item><title>Realtime Market-Data Updates with WebSocket and Elixir</title><link>https://www.poeticoding.com/realtime-market-data-updates-with-elixir/</link><pubDate>Wed, 19 Dec 2018 14:00:00 +0000</pubDate><guid>https://www.poeticoding.com/realtime-market-data-updates-with-elixir/</guid><description>&lt;p>Cryptocurrency exchanges usually open their realtime feed for free and, like Coinbase Pro, without even having to create an account. This gives us a great way to build an architecture around realtime market data.
In this article we see how to build an Elixir application to get realtime updates from the coinbase websocket feed, handling crashes and disconnections.&lt;/p></description></item><item><title>Running Elixir in Docker Containers</title><link>https://www.poeticoding.com/running-elixir-in-docker-containers/</link><pubDate>Wed, 12 Dec 2018 14:15:00 +0000</pubDate><guid>https://www.poeticoding.com/running-elixir-in-docker-containers/</guid><description>&lt;p>One of the wonderful things about &lt;a href="https://www.docker.com/resources/what-container" target="_blank" rel="noopener">Docker&lt;/a> Containers is that you can easily freeze your environment and application in a Docker Image, and deploy it in production without worrying about installing dependencies on your servers. It just works.
This is also great for debugging. If something doesn&amp;rsquo;t work in production, you can run exactly the same image locally in matter of seconds.
The features and advantages of docker obviously don&amp;rsquo;t stop here.
In this article we see how to use Docker to run our development Elixir environment and to run multiple Elixir Nodes over a Docker bridge network.&lt;/p></description></item><item><title>Build a Simple Persistent Key-Value Store in Elixir, using Logs - Part 2</title><link>https://www.poeticoding.com/build-a-simple-persistent-key-value-store-in-elixir-using-logs-part-2/</link><pubDate>Tue, 04 Dec 2018 16:40:00 +0000</pubDate><guid>https://www.poeticoding.com/build-a-simple-persistent-key-value-store-in-elixir-using-logs-part-2/</guid><description>&lt;p>Published articles in the series:&lt;/p>
&lt;ol>
&lt;li>&lt;a href="https://www.poeticoding.com/build-a-simple-persistent-key-value-store-in-elixir-using-logs-part-1/">Part 1&lt;/a>&lt;/li>
&lt;li>Part 2 (this article)&lt;/li>
&lt;/ol>
&lt;p>In the &lt;a href="https://www.poeticoding.com/build-a-simple-persistent-key-value-store-in-elixir-using-logs-part-1/">part 1&lt;/a>, we&amp;rsquo;ve introduced a simple implementation of a kv-store engine, written in Elixir. We developed three modules: an &lt;em>Index&lt;/em>, a &lt;em>Writer&lt;/em> and a &lt;em>Reader&lt;/em>. The Writer writers the &lt;em>values&lt;/em> in a log-file keeping the keys in a in-memory Index. Since the state of the index is only kept in memory, once the index process fails, or the whole engine crashes, we are not able to distinguish the values &amp;hellip;&lt;/p></description></item></channel></rss>