TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How do I approach improving website latency?

1 pointsby cactus22over 5 years ago
Hello,<p>I recently put together a side project using GCP on a MEAN stack. It involves a load-balancer performing ssl-termination, then routing to a small instance, which then returns static assets. Once the static assets are received, the browser will render the html and make another call to the backend, which then loads some data from a managed mongoDB stack and returns that data to be rendered as well.<p>The load time for the website is ~15 seconds total, the first half of which being for the initial call involving only static assets. I am trying to figure out why it is so slow but am having trouble doing so.<p>The instance is in Iowa (us-central1) while I am in Seattle. I tried only serving plain html&#x2F;css in the initial call, but load time was still terrible.<p>I am not sure where I should focus my investigation, or if this is to be expected for an instance so far away, and if I just need to have an instance closer to me. Let me know what you think

2 comments

itqwertzover 5 years ago
You should start by looking into the network requests. Most developer tools show you metrics on load time.<p>Do you have a link? I’m sure we could get to the root of your issue quickly.
PaulHouleover 5 years ago
I think you are making hard for yourself. Try Azure.
评论 #22419731 未加载