Author Topic: API Latency  (Read 4317 times)

dompazz

  • Full Member
  • ***
  • Posts: 224
    • View Profile
API Latency
« on: March 27, 2016, 06:40:17 PM »
This has been mentioned recently, but I feel it deserves its own topic. 

Latency in the API around the note releases has become appalling.  I'm seeing 10-20+ second times to request new loans.  Orders are taking more than 5-15 seconds to process and confirm.  What times are you seeing?

I wrote a note to LC earlier in the week and got this reply Friday afternoon:

Quote
Thank you for your email.

We apologize for any inconvenience that this issue may have caused and we appreciate you taking the time to reach out to us.

Please know that we are aware of this API issue and we have escalated this issue to the appropriate team. We hope to have a resolution as soon as possible and we appreciate your patience.

If you have any additional questions, please feel free to let us know.

Best Regards,
Olivia


Fred93

  • Hero Member
  • *****
  • Posts: 2245
    • View Profile
Re: API Latency
« Reply #1 on: March 27, 2016, 07:13:50 PM »
Thank you for hitting them. 

I see same.  Some commands >20 seconds.   

I will note that the long delays are only near feeding times.  The problem is therefore some sort of server congestion at feeding time.  Maybe somebody missed a schedule date to upgrade some piece of the server network?  As volumes grow, they have to keep upgrading.

Commands have always been slower at feeding times, but not this slow.  Also in the past, the slowdown was only within a few seconds of feeding time.  Now its slow within the minute around feeding time.

dompazz

  • Full Member
  • ***
  • Posts: 224
    • View Profile
Re: API Latency
« Reply #2 on: March 27, 2016, 07:33:12 PM »
Thank you for hitting them. 
...
I will note that the long delays are only near feeding times. 
...
Commands have always been slower at feeding times, but not this slow.  Also in the past, the slowdown was only within a few seconds of feeding time.  Now its slow within the minute around feeding time.
n/p

I mentioned that in my email to them, just forgot to mention it fully here.  It is a good point.

I've only been using the API for a few months, so that's is good information.

The suddenness of this change in the latency sounds like a bad upgrade to me.   

MarinBB

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
Re: API Latency
« Reply #3 on: March 28, 2016, 07:54:57 AM »
I'm seeing 10-20+ second times to request new loans.  Orders are taking more than 5-15 seconds to process and confirm. 

Same here, >1sec latency was rare for me even during posting periods but now I'm closer to 6-7 sec at the median. I also emailed them but not have yet received a substantive reply. At this level of latency, it would be faster to use the website to place bids.

Also, did you notice that as part of Sunday's 8pm posting run, ~400 listings showed up that have a listing date (listD) of 3/22? My guess is that these are former Whole loans that failed to fill as Whole loans and are now entering the Fractional loan pool.

RaymondG

  • Full Member
  • ***
  • Posts: 247
    • View Profile
    • Email
Re: API Latency
« Reply #4 on: March 28, 2016, 09:24:09 AM »
At this level of latency, it would be faster to use the website to place bids.
Browse Notes page on LC website has the same latency change.

MarinBB

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
Re: API Latency
« Reply #5 on: March 28, 2016, 10:02:11 AM »
Anyone else notice that the physical location of the API's IP address changed to a data center in Las Vegas? The main site still seems to be somewhere around Santa Monica. Maybe they moved some of their systems to a different data center and introduced some latency in the process.

I used https://www.iplocation.net/ to check api.lendingclub.com and www.lendingclub.com.

dompazz

  • Full Member
  • ***
  • Posts: 224
    • View Profile
Re: API Latency
« Reply #6 on: March 28, 2016, 12:02:32 PM »
I'm seeing 10-20+ second times to request new loans.  Orders are taking more than 5-15 seconds to process and confirm. 

Same here, >1sec latency was rare for me even during posting periods but now I'm closer to 6-7 sec at the median. I also emailed them but not have yet received a substantive reply. At this level of latency, it would be faster to use the website to place bids.

Also, did you notice that as part of Sunday's 8pm posting run, ~400 listings showed up that have a listing date (listD) of 3/22? My guess is that these are former Whole loans that failed to fill as Whole loans and are now entering the Fractional loan pool.
Where is your server located that you get much lower times than me??? :)

I noticed the huge number but didnt look at them. Family holiday.

RaymondG

  • Full Member
  • ***
  • Posts: 247
    • View Profile
    • Email
Re: API Latency
« Reply #7 on: April 01, 2016, 09:58:39 PM »
It looks like that the speed of Browse Notes page on LC web site was back to normal at feeding times since at least yesterday.

Fred93

  • Hero Member
  • *****
  • Posts: 2245
    • View Profile
Re: API Latency
« Reply #8 on: April 01, 2016, 10:31:11 PM »
API behavior is back to normal also.

MarinBB

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
Re: API Latency
« Reply #9 on: April 05, 2016, 09:09:57 PM »

Where is your server located that you get much lower times than me??? :)

I'm also in California. Either way, the API seems to have normalized. There are still some outliers, but it's in much better shape than it was a week ago. LC never replied to me as to what might have been going on.

dms

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: API Latency
« Reply #10 on: April 08, 2016, 12:41:40 AM »
Slightly off topic, but is there a secret handshake or undocumented documentation for using the LC API?

I'm a new LC investor and am having problems with getting the API to work as documented. I suspect that I'm passing my credentials in the HTTP header properly because when I don't pass them (or deliberately typo) I get a 401 not authorized. With it, I get a 404 not found. I'm using the investor id given off the account summary page as documented and v1 of the api. (account number changed to protect the innocent) Any suggestions from people who are successfully using the API?

I would expect this to return 200, but I get 404 instead -

https://api.lendingclub.com/api/investor/v1/accounts/12345678/summary

dms

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: API Latency
« Reply #11 on: April 08, 2016, 01:01:35 AM »
nm, figured it out. WCF5.5/OData3 != json.

Fred93

  • Hero Member
  • *****
  • Posts: 2245
    • View Profile
Re: API Latency
« Reply #12 on: April 08, 2016, 01:07:21 AM »
I remember lots of trial and error when I went thru this, not just with LC, but every damn web API I've ever used.  What you've written looks correct, so the error is not immediately obvious to me.