|
|
|
|
|
by tln
1812 days ago
|
|
Thanks for posting! Have you worked on optimizing DNS and TLS negotiation at all? Just now on my laptop, the first request took 1.9 seconds! $ time curl -v https://link.warpurl.com/DrMbLW
...
real 0m1.936s
$ time curl -v https://link.warpurl.com/DrMbLW
...
real 0m0.079s
What did you use to check the latency worldwide? I've got a quickly hacked shortener running on CF workers, curious how it stacks up :)PS. there is a small typo on homepage... "and the number of changes you" |
|
The first hit any user from your country/city navigating the URL will be slow aka normal URL Shortener speed. There after it is cached in that region/city/CDN POP. That is why the second curl was so fast. If you ask a friend living in close proximity to you (same region or city) to also navigate it, they should see the fast time.
I wrote more about the logic behind it in this blog post: https://link.warpurl.com/x4BSyC I also delve into the architecture a bit. Spoiler alert, it is 100% serverless!