<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>async on Poeticoding</title><link>https://www.poeticoding.com/tag/async/</link><description>Recent content in async on Poeticoding</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 04 May 2019 19:09:56 +0000</lastBuildDate><atom:link href="https://www.poeticoding.com/tag/async/index.xml" rel="self" type="application/rss+xml"/><item><title>Elixir Streams to process large HTTP responses on the fly</title><link>https://www.poeticoding.com/elixir-streams-to-process-large-http-responses-on-the-fly/</link><pubDate>Wed, 27 Mar 2019 16:48:21 +0000</pubDate><guid>https://www.poeticoding.com/elixir-streams-to-process-large-http-responses-on-the-fly/</guid><description>&lt;ul>
&lt;li>Part 1 - &lt;em>this article&lt;/em>&lt;/li>
&lt;li>Part 2 - &lt;a href="https://www.poeticoding.com/elixir-stream-and-large-http-responses-processing-text/">Elixir Stream and large HTTP responses: processing text&lt;/a>&lt;/li>
&lt;/ul>
&lt;p>This is the first of a two-part article where we see a handy way of handling async HTTP responses.\&lt;/p>
&lt;ul>
&lt;li>In &lt;strong>this&lt;/strong> &lt;strong>first part&lt;/strong> we see how make an Elixir Stream out of a large HTTP response.&lt;/li>
&lt;li>In the &lt;strong>second part&lt;/strong> we will extend the implementation so we can download a large text file, processing lines on the fly.&lt;/li>
&lt;/ul>
&lt;h2 id="first-and-foremost--why">First and foremost &amp;hellip; WHY?&lt;/h2>
&lt;p>Why should we handle HTTP responses with Streams, when we can just simply use something like &lt;code>HTTPoison.get&lt;/code> to receive a response with the data we need?&lt;/p></description></item></channel></rss>