Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook graph api and keep alive connections

We want to reduce the https connect latency to facebook graph servers. We have configured our servers to do a http keep alive. However, it looks like the connection gets closed after every call (from traffic server logs...).

Is there a way to deterministically see that keep_alive connections are honored or not by graph.facebook.com? ..or for that matter any server in general?

like image 645
janar Avatar asked Dec 01 '25 14:12

janar


1 Answers

Based on Facebook's attitude towards efficient queries, I would not expect them to honor any type of persistent connection. Especially since your request is going to end up in a performance hit on their servers.

You should look at fetching as much data as you can in one go by combining your queries into a single batch request.

like image 189
cpilko Avatar answered Dec 03 '25 14:12

cpilko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!