<div dir="ltr"><div><div><div><div><div>I understand, and have faced such problems myself - there's an inherent reliability issue. <br></div><div><br></div>But it can be worked around in multiple ways:<br></div>- by having your own HTTP(S) mirror (which is possible since 1.0.0)<br></div>- by loading the database from the file system (which is possible since 1.3.0, from March 2018)<br></div>- and starting now, by fetching the data however you see fit, through callbacks<br><br></div><div>As for the issue of picking a HTTP client in particular, I've so far avoided it by sticking with the stdlib's httpc.<br><br>But CA validation is still required for HTTPS (or rather, **strongly** recommended), and so there's a dependency there (and one that requires regular updates.)<br></div><div><div><div><br><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 30 Aug 2021 at 16:31, Max Lapshin <<a href="mailto:max.lapshin@gmail.com">max.lapshin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This is a well known problem with such libraries.<br>
<br>
Without proper updating data it is not 100% useable as it can be, but<br>
library that goes itself somewhere into the internet is not very easy<br>
to integrate.<br>
<br>
Especially when we do not have standard http client in erlang (and in elixir).<br>
<br>
On Mon, Aug 30, 2021 at 6:24 PM Guilherme Andrade <<a href="mailto:g@gandrade.net" target="_blank">g@gandrade.net</a>> wrote:<br>
><br>
> Hello Max,<br>
><br>
> Yes it does - although now you have a choice, as there's a new API[*] for unpacking the database from a binary and using the result as see fit, which allows for new use cases.<br>
><br>
> [*]: <a href="https://hexdocs.pm/locus/2.0.0/locus_mmdb.html#unpack_database-1" rel="noreferrer" target="_blank">https://hexdocs.pm/locus/2.0.0/locus_mmdb.html#unpack_database-1</a><br>
><br>
> On Mon, 30 Aug 2021 at 06:15, Max Lapshin <<a href="mailto:max.lapshin@gmail.com" target="_blank">max.lapshin@gmail.com</a>> wrote:<br>
>><br>
>> Does it still tries to download database itself?<br>
</blockquote></div>