#eschweinsberg-api-latency

1 messages · Page 1 of 1 (latest)

tidal escarp
#

Hi there 👋 7 seconds sounds a bit high. Some operations, like creating subscriptions, do take a little while due to the number of underlying operations. Do you have a request ID that you could share where you saw this timing?

sonic thorn
#

Whoops, actually the request was updating the metadata on an invoice, not finalizing it. Here's the request ID: req_91QPrhaHCaZD9b

tidal escarp
#

Thanks for that! Our logs are showing that request executed end-to-end in under 1.5 seconds though.

sonic thorn
#

Hmm okay, that's odd. My request tracing and the stripe-go library are reporting 7 seconds. Maybe something is wrong with my instrumentation.

cyan elbow
#

it's also possible that there's some networking wonkiness happening between your server & stripe

#

are you seeing this persistently, or sporadically?

sonic thorn
#

I'm seeing it persistently, although not quite as bad as the original request I reported. For example, req_2TrLKhXvAcN0qY is showing 4.6 seconds on my end

#

Would it matter that this is in the test environment?

tidal escarp
#

Hm, that one is showing that it did take about 4.5 seconds to complete.

sonic thorn
#

Oh I may have given you the wrong ID before, is this one showing around 7? req_K9Zn688gZz1myF

cyan elbow
#

req_2TrLKhXvAcN0qY looks to be slow b/c of lock contention - you have (at least) two API requests in flight. the one you linked is trying to update the invoice, and another is trying to update the customer. both need an exclusive lock on the customer to run, so one queues behind the other

sonic thorn
#

ahh okay. that makes sense

cyan elbow
#

req_K9Zn688gZz1myF seems to have similar lock problems