TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How do I approach improving website latency?

1 点作者 cactus22大约 5 年前
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 条评论

itqwertz大约 5 年前
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.
PaulHoule大约 5 年前
I think you are making hard for yourself. Try Azure.
评论 #22419731 未加载