<div dir="ltr">Neil,<div><br></div><div>> ... that will equate to a large number of api hits per install so could mount up.<br></div><div><br></div><div>Arnold's response about the multi ASN query is worth doing.</div><div><br></div><div>I would also point out that there's always other options.</div><div><br></div><div>1) Do a "sync" and have a local copy of the database to query (we do this at Cloudflare for our peering tools and I know that others do the same).</div><div><br></div><div>2) Keep a cached copy of the data for any object so that if you see the same ASN more than once you will have what you already need. Note that keeping data cached for X days is pretty safe; where X is your choosing. </div><div><br></div><div>3) Throw caution to the wind and simply say "If we are a legit user of the data; then PDB should be built with the capability to handle the populace of users in the world". </div><div><br></div><div>I actually like #3 as this sounds like a pretty legit user of the data; plus I know a pretty cool CDN that could help PDB handle the added load! :)</div><div><br></div><div>Martin</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 14, 2017 at 5:01 PM, Arnold Nipper <span dir="ltr"><<a href="mailto:arnold@nipper.de" target="_blank">arnold@nipper.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 14.03.2017 23:43, Neil Lathwood wrote:<br>
> PDB is built to be used. Go call the /asn/nnnn endpoint to get the<br>
> name. BTW: Keep in mind that the name of a network may not be the<br>
> same on PDB as it is via whois on an RIR (or RADB). The name of a<br>
> network used for peering is sometimes "unique".<br>
><br>
><br>
> Thanks for the reply Martin, this would involve a call for every peer on<br>
> an Exchange - that will equate to a large number of api hits per install<br>
> so could mount up.<br>
><br>
<br>
</span>If you are worried about the number of api calls try this. Build a list<br>
of peers asn1, asn2, ... asnn and then call<br>
<br>
/net?asn__in=asn1,asn2,...asnn<br>
<br>
That way it's only one call. Or simply do<br>
<br>
/net<br>
<br>
and look for the (asn,name) pair in the answer.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Arnold<br>
<br>
</font></span><br>______________________________<wbr>_________________<br>
Pdb-tech mailing list<br>
<a href="mailto:Pdb-tech@lists.peeringdb.com">Pdb-tech@lists.peeringdb.com</a><br>
<a href="http://lists.peeringdb.com/cgi-bin/mailman/listinfo/pdb-tech" rel="noreferrer" target="_blank">http://lists.peeringdb.com/<wbr>cgi-bin/mailman/listinfo/pdb-<wbr>tech</a><br>
<br></blockquote></div><br></div></div>