Hello! Have something been changed in terms of re...
# ory-network
f
Hello! Have something been changed in terms of retrieving the login screen (
https://<myproject>.<http://projects.oryapis.com/self-service/login/browser?refresh=true&return_to=|projects.oryapis.com/self-service/login/browser?refresh=true&return_to=><my page>
)? Coming back from vacation (so somewhere in the last 4 weeks) I can see that loading the login screen is significantly slower. It takes between 800-1200ms to respond it seems like. Previously it was less than 200ms.
s
We rolled out multi-region (see #C010F2N7XR9) which raised write latency a bit, but reduced read latency globally. However, 800-1200ms is way too much, we will look into that and optimize the queries! Am I correct that only the "create login flow" request is slow, while the "get login flow" request is fast?
f
I’m not sure tbh, I’ve sent you some info in DM so that you can look for yourself since I’m not sure 😅
Hey, I wonder if you have any update on this? It looks even worse now with latencies of up to 2s to load the login page.
s
I'll take another look, there is a fix planned that should remove ~500ns but it needs a bit more testing, so a few days more
I cannot confirm latency of 2s, in all my experiments it is ~1s, which is also what our monitoring measures
and ~500-600ms is caused by the issue we will fix soon
f
Thanks for the update! I see, I’ll see if our frontend engineers can find something else that is wonky there causing the additional latency.
s
I see that sometimes you do two parallel requests, so it seems kinda racy
but each takes ~1s
two times the same init browser login flow
@fast-eve-41839 the fix is now deployed to production, can you check again what end-to-end latency you get?
f
Thanks @steep-lamp-91158! Looking at roughly 400ms - 500ms which is a lot better!
s
nice 👍 as expected
we'll work on further improvements, but this was the biggest chunk we could get at once
f
Nice to hear! It would be great to get this under the magical 200ms for it to feel instant for the user but I understand that it might be very difficult!