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.

Writing an API at the Edge with Workers and Cloud Firestore

34 pointsby itcmcgrathabout 6 years ago

2 comments

dgllghrabout 6 years ago
It seems to me that the benefit of Workers is that they run geographically near the user. If the Worker is calling a database that may or not be close to your user, what is the point? You are going to pay the latency cost either from the user to the Worker or the Worker to the DB.<p>I realize that there are some advantages. The network between the Worker and a Google datacenter is probably much faster than the network from the user to the Worker. Also, Firestore in particular can be geographically replicated so that the database is closer to your user. But I&#x27;m not convinced that these benefits outweigh a more traditional (and more flexible) architecture.
评论 #19465104 未加载
评论 #19464910 未加载
评论 #19464825 未加载
评论 #19464859 未加载
评论 #19464868 未加载
sosodevabout 6 years ago
I can&#x27;t wait to try out Workers. I&#x27;ve always found &quot;serverless&quot; interesting in concept but the cold starts and vague pricing keep me away. It&#x27;s pretty cool that Workers actually makes latency better rather than neutral&#x2F;worse.