Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Best practices RE: https api calls

Our servers currently make ~900k calls to your api each day.  Yesterday I deployed a code change to switch the protocol to https.  We don't have any errors, but I noticed our throughput fell significantly after the change.  Wireshark shows that we're recreating the SSL connection on each request, which creates significant overhead for your servers and ours.  I imagine this will be magnified in two weeks when you require all clients to use SSL.

 

Does your API support connection reuse?  Should we be using that?

Best Answer
0 Votes
2 REPLIES 2

Yes we do. If you care about the performance, then absolutely you should make use of it. 

Best Answer
0 Votes

Thanks for the quick reply!

 

I can have one of our developers make the change tomorrow.  Do you have example client code using the ruby oauth gem or Faraday?

 

Best Answer
0 Votes