Back

Creating email session takes 1-3 seconds

  • 0
  • Users
  • REST API
  • Cloud
Drake
27 Nov, 2023, 19:19

710ms:

TL;DR
Issue: Creating email session takes 1-3 seconds. Potential Solutions: - Check the internet connection for any drops or latency using <https://speed.cloudflare.com/>. - Test with a different project if the issue persists. - Investigate if there are any network or routing issues causing the latency. - Try sending requests through Insomnia to see if the problem persists. - Review the code for any potential slowdowns or inefficiencies. - Consider optimizing the code to reduce the elapsed time, possibly by using a different method or approach.
Drake
27 Nov, 2023, 19:20

1100ms is a little slow:

makeshyft_tom
27 Nov, 2023, 20:58

I am taking the current time, and then deducting that from the time the post command finishes.

makeshyft_tom
27 Nov, 2023, 20:59

last test was better just over 1100

Drake
27 Nov, 2023, 21:04

whats the code?

makeshyft_tom
27 Nov, 2023, 21:37

it won't mean a whole lot to you its not a well known platform,

put the milliseconds into tStartTime put tsNetPostSync(tFinalURL, tRequestHeaders, tData, tResultHeaders,tResult["data"],tBytes) into tResult["data"] put the milliseconds - tStartTime into tFinalTime

Drake
27 Nov, 2023, 21:45

and what is tsNetPostSync?

makeshyft_tom
27 Nov, 2023, 21:48

its a function that sends the post request with the headers and request body. The sessin is correctly created so my parameters are good...and the final url is .... https://cloud.appwrite.io/v1/account/sessions

Drake
27 Nov, 2023, 22:17

im just worried there's extra thing being done that can make the elapsed time bigger

makeshyft_tom
27 Nov, 2023, 22:18

no, there isnt, not that i know of.... i will do a test using insomnia and i'll come back to report the time

makeshyft_tom
28 Nov, 2023, 04:14

I'm sorry to report ... sending requests through insomnia is just as slow. 😦

Drake
28 Nov, 2023, 16:33

Creating email session takes 1-2 seconds

Drake
28 Nov, 2023, 16:34

any better? maybe 1s instead of 3?

Drake
28 Nov, 2023, 16:34

Creating email session takes 1-3 seconds

makeshyft_tom
28 Nov, 2023, 18:59

yes its better.... last 3 tests were under 1s

makeshyft_tom
28 Nov, 2023, 19:00

but the 4th test took 3s again

D5
28 Nov, 2023, 20:53

This looks like a network or routing issue

makeshyft_tom
29 Nov, 2023, 03:59

How could I test where this latency is occuring?

D5
29 Nov, 2023, 10:25

Check your connection with: https://speed.cloudflare.com/ Do you see any drops in speed or increments in the latency during the test?

makeshyft_tom
29 Nov, 2023, 22:47
makeshyft_tom
29 Nov, 2023, 22:47

still slow getting results from appwrite cloud

D5
29 Nov, 2023, 23:10

That looks ok

D5
29 Nov, 2023, 23:10

I suggest trying with a different project if you didn't tried yet

makeshyft_tom
30 Nov, 2023, 22:46

This project is empty except for 1 user

Drake
1 Dec, 2023, 02:27

we made some changes. how are things now?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more