Re:Mint, a new HTTP library for Elixir
by Dirlewanger on Monday February 25, 2019 @01:51PM
(#19248245)
What does Mint provide over, say, HTTPoison? Still can't quite grok what it's offers.
[ Parent
| on HN ]
Re:Mint, a new HTTP library for Elixir
by supernintendo on Monday February 25, 2019 @04:25PM
(#19249594)
Requests made with HTTPoison are passed to the library’s own connection pool whereas requests made with Mint are handled in the same process. While HTTPoison is great for most use cases, Mint is a promising solution for anyone who has specific control flow requirements.
I’m interested in this for some of the uglier API integrations I maintain where an ordered chain of requests must be made with no guarantee of delivery and responses that involve a considerable amount of in-memory processing (large XML bodies to be exact). Having control over my process architecture is preferable to leaving it up to the HTTP library’s connection pool in these cases.
Re:Mint, a new HTTP library for Elixir
by 0xADEADBEE on Tuesday February 26, 2019 @01:58AM
(#19252502)
Thank you so much for a concise answer to the exact question I had.
Re:Mint, a new HTTP library for Elixir
by whatyouhide on Monday February 25, 2019 @01:59PM
(#19248319)
The main thing is a processless architecture that lets you easily build architectures that are fine-tailored for your use case. You might build a process that holds many connection structs, or a use the connections directly in say a GenStage producer/consumer, or things like those. The idea is that you now have the building blocks to build whatever fits your thing :)