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.

The Future of the Web Is on the Edge

230 pointsby 0xedbover 2 years ago

39 comments

pier25over 2 years ago
As much as I love Deno, I think this is the wrong way to frame it. For a number of reasons.<p>1) Sure, big web apps for a global audience would benefit from a distributed application and distributed data. But, honestly, most web apps I&#x27;ve worked in my 20+ years in web dev have been for an audience in a single country or even city.<p>2) It&#x27;s easy for Deno to say &quot;get a distributed app running at the edge!&quot; when the hard part is having distributed data which they don&#x27;t solve. If you don&#x27;t need distributed consistent data then you&#x27;re probably more than fine with a monolith with a CDN.<p>3) Those latency numbers don&#x27;t seem right to me. My production server in AMS returns a response in 200ms to here (central Mexico).<p>4) Performance evangelists and salesmen will try to convince everyone they need to get a response in 50ms, but for most use cases that&#x27;s just ridiculous. Most people are fine getting a response in under a second. Just use a CDN for your static assets and your monolith will be fine.<p>The edge is cool, but it&#x27;s not &quot;the future&quot;. It&#x27;s just another tool with pros and cons.
评论 #33114662 未加载
评论 #33113963 未加载
评论 #33115220 未加载
评论 #33113731 未加载
评论 #33115026 未加载
评论 #33116657 未加载
评论 #33117950 未加载
评论 #33116290 未加载
评论 #33142019 未加载
评论 #33114805 未加载
评论 #33114738 未加载
评论 #33117927 未加载
评论 #33116204 未加载
评论 #33114060 未加载
jensneuseover 2 years ago
Instead of &quot;edge&quot;, a lot of websites should just have 3 locations (us,eu,apac) with a non geo replicated Serverless database in each region. At least that&#x27;s what we&#x27;re building at WunderGraph (<a href="https:&#x2F;&#x2F;wundergraph.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;wundergraph.com&#x2F;</a>). Edge sounds super cool, but if you take state and consistency into consideration, you just can&#x27;t have servers across the globe that also replicate their state consistently with low latency. TTFB doesn&#x27;t matter as much as correctness. And if stale content is acceptable, then we can also just push it to a CDN. Most importantly, you&#x27;d want to have low latency between server and storage. So if your servers are on the &quot;edge&quot;, they are close to the user, but (randomly) further away from the database. Durable objcets might solve this, but they are nowhere near a postgres database. I think the &quot;edge&quot; is good for some stateless use cases, like validating auth and inputs, etc., but it won&#x27;t make &quot;boring&quot; services, even serverless in &quot;non-edge&quot; Locations obsolete. You can see this on Vercel. Serverless for functions, server side rendering, etc. and cloudflare workers for edge middleware. But they explicitly say that your serverless functions should be close to a database if you&#x27;re using one.
评论 #33111830 未加载
评论 #33112751 未加载
评论 #33112021 未加载
liftyover 2 years ago
Wait till we get to the final stage, where we install apps on people&#x27;s computers directly. That way, we get ZERO latency. Can&#x27;t wait! What should we call it?
评论 #33115017 未加载
评论 #33114859 未加载
评论 #33114295 未加载
评论 #33113993 未加载
评论 #33118215 未加载
评论 #33113895 未加载
评论 #33117768 未加载
评论 #33116108 未加载
评论 #33113266 未加载
评论 #33114124 未加载
评论 #33114153 未加载
jmullover 2 years ago
IDK, I think this is getting overstated.<p>Don&#x27;t forget - there&#x27;s very typically a runtime environment available that&#x27;s a lot closer to the user... their browser.<p>The edge, as a place to run code, is a bit of a tweener... farther from the user than the browser, farther from the data than the database environment.<p>If the data the edge needs is <i>also</i> on or near the edge, you can really start to do something with it. But that means your data is distributed. You want to have a really solid plan on how your edge data is kept valid.<p>That&#x27;s not so hard with static assets but edge processing on static assets seems like a relatively narrow case, because it needs to make more sense than pre-computing all the cases and just having a more static files.<p>Edge processing on dynamic data is pretty interesting, but having coherent distributed dynamic data tends to be app specific and hard to get right and keep right. There are certainly cases, but I don&#x27;t think they usually tend to comprise the whole app. I think it will usually be a partial solution and add a bunch of complexity, so apps will want to use it sparingly, where it&#x27;s really needed.<p>I think this will be more of a tool in the toolbox, not the general future of the web.
recursivedoubtsover 2 years ago
OK, but what about data synchronization?<p>One of the tremendously simplifying aspects of traditional web applications was that they were, to a first order of approximation, stateless. The state lived on the server in a centralized location. When an update occurred, it was done via an HTTP request that failed or succeeded.<p>If shared state between users is stored on the edge it needs to be synchronized between edge nodes, leading to collisions that may appear at a point significantly after a user has &quot;clicked save&quot;. I can imagine this becoming a nightmare as a user accretes dependent local changes, all of which eventually have to be rolled back as edge data stores synchronize with one another.<p>Now, there are advanced technologies for this sort of thing, but they are relatively complex, hard to program against and often don&#x27;t and can&#x27;t offer great end user experience.<p>I am not saying that the edge isn&#x27;t going to be useful for some applications, but it is throwing out one of the main simplifications that the original, REST-ful model of the web gave us.
评论 #33112004 未加载
uncertainrhymesover 2 years ago
I like deno.com, but I am deeply suspicious of their speed test methodology. I hope I am wrong, but it really looks like they are comparing time-to-first-byte (TTFB) including TLS, i.e. a &#x27;cold start&#x27;. It should not be almost 400 ms from Amsterdam to Virginia on an existing connection.<p>If your app makes one and only one connection, then fair enough, that is a real penalty. Otherwise, this is just the benefit of literally every single CDN. With enough traffic, their edge servers will keep connections open to origin.<p>For serverless, there is no origin -- even better for performance, assuming it has no need for a common data store.
评论 #33112564 未加载
评论 #33113427 未加载
horsawlarwayover 2 years ago
Frankly - who cares unless there&#x27;s a persistence mechanism to go with this?<p>The devil isn&#x27;t in getting a static resource close to users (we&#x27;ve been able to do this for decades with CDNs)<p>The devil is in getting application state pushed close to those users.<p>&quot;Eventually consistent&quot; is a real bitch of a thing to deal with.
评论 #33112943 未加载
tommek4077over 2 years ago
&gt; When people say “the edge,” they mean that your site or app is going to be hosted simultaneously on multiple servers around the globe, always close to a user.<p>This is the first time I see such a simple description of this. Often you&#x27;ve got the feeling of &quot;magicians&quot; using technobabble to let things look much more difficult or new than they are.
评论 #33112916 未加载
评论 #33111932 未加载
asimover 2 years ago
Right. I think we did global deployment, multi-region with geo based DNS and anycast like 10 years ago. I guess the difference here, it&#x27;s now a product. I&#x27;m still not convinced. Why 3 years ago I started building it as a product and you know it just didn&#x27;t matter. It makes a cool story and blog post but the technical details just don&#x27;t matter. Tell me you can deliv er sub 100ms response times globally and give me a framework to build for that but the rest is details I just don&#x27;t care about. I used to care, I used to think developers should know these details, the reality is it&#x27;s not important. Delivering developer experience means the user not having to care about those details.<p>Delivering sub 100ms definitely important but mostly if it&#x27;s just static pages and there&#x27;s no database IO or calling of external third party APIs during that process then it&#x27;s not relevant. The large majority of software is now not just serving a static assets but a lot of complex logic which ends up dictating a lot of the page load times, not the traversal of light across the globe.
55555over 2 years ago
Can someone explain how this can actually work for a medium sized CRUD app? I’m a dev and don’t understand. I get hosting static or cached files at the edge and serving them. And I get how you could run PHP or another server-side language on edge servers too. But you want a single source of truth and if there’s a database involved, you still need to host that somewhere and the true latency will be at this step.<p>Are there simple modern solutions for maintaining the same database on servers all over? (This doesn’t even sound like a good idea, or at least like it would either be impossible or would have tradeoffs, and sounds like a minor optimization anyway)<p>Or are Deno etc only used for database-less sites?<p>Or is everyone just obsessed with TTFP (screen painting) load times because users hate waiting but like pretty loading spinner gifs?
评论 #33116643 未加载
paxysover 2 years ago
I&#x27;m yet to come across a non-trivial website or web app that runs on the edge in the way they have described. While it may or may not be the future, as it is commonly touted as, who exactly is testing edge computing in the real world today? What database are they using? How are they synchronizing application state across all these regions?<p>From practical industry experience I can say that deploying to 1-3 data centers is still the way to go, and that isn&#x27;t going to change for the ~50-100ms of latency this approach will save.
ludwigvanover 2 years ago
For which type of web sites would this make a difference? I think for this to matter, the audience should be almost global, in which case it will cater to a small percentage.<p>Some examples: - News sites: These heavily use CDN&#x27;s and caching, wouldn&#x27;t make much difference. - Most CRUD apps which target a small number of users? Probably no significant difference being on the edge would bring. - Games: this is one area this might make a difference due to latency advantage.<p>Could someone give some real examples from the net that would make switching to this edge architecture a difference? For example, something like, it would be good if HackerNews&#x2F;CNN&#x2F;Intuit did this so that...?
评论 #33114634 未加载
评论 #33115175 未加载
评论 #33115349 未加载
cheriotover 2 years ago
&gt; The benefits of serverless are two-fold: &gt; You only pay for what you use—just those 10 seconds if that’s all that’s happening on your app. &gt; You don’t have to worry about all the DevOps side of servers. No planning, no management, no maintenance.<p>The second benefit can be had without serverless. Anything that runs containers offers that. The first one is a nice to have for side projects, but pretty irrelevant in the cost of a business building and shipping a product. If they&#x27;re referring to autoscaling then, again, anything running containers can do that.<p>And no mention of where the data is? As far as I can tell, this is buzzword soup with no broadly applicable use case.
Karellenover 2 years ago
Curse you Title Case!!<p>With the convention that articles and prepositions are not capitalised, if you have a title that is mostly articles and prepositions, then the remaining few words which are capitalised can easily be confused with proper nouns, especially if those nouns are relevant to the title&#x27;s subject. e.g.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Microsoft_Edge" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Microsoft_Edge</a><p>I thought that the article was going to be about how the author thought Edge was going to (somehow) dominate the browser space sometime in the forseeable future.
评论 #33111741 未加载
评论 #33112999 未加载
Kass-yover 2 years ago
944.14ms - that&#x27;s the worst case stated on the time to first byte for conventional architecture. That&#x27;s not bad. Will your user notice it? Probably not for most applications and the ones that they do you can probably cache that locally.<p>There are performance limited applications - e.g. stock trading - but in those you&#x27;re talking about choosing specific processors and disabling certain caching approaches to increase the performance that you want, choosing certain network switches, using microwave transmitters where existing physical infrastructure doesn&#x27;t serve your needs... like fast is _fast_... and people pay for that in expertise and infrastructure.<p>Will your users pay for cutting your response time from 944.14ms to 45ms? And the additional complexity that comes with?<p>In some cases the answer is, in all honesty, yes - yes they will. And they&#x27;ll pay you for every additional fraction of a second it takes light to go from the top of the Empire State building to the bottom, if it gets their trade in first.<p>More generally, however, your users probably aren&#x27;t interested in delays measured in less than the time it takes them to blink. How fast is your ballpoint pen? Do you care? To your user&#x27;s use case, it&#x27;s all either categorised as instant or something you have to wait for.
评论 #33115173 未加载
eddiehover 2 years ago
Seems like we’re headed full circle. At some point in the future someone will rediscover the insanely overpowered machines in everyone’s home and hand with almost no latency.
评论 #33112688 未加载
deckard1over 2 years ago
The Future of the Web is Peddling Endless Amounts of Cloud Frameworks<p>The number of web sites that need global edge computing is vanishingly small. More realistically you need a 20+ year old technology called a CDN to run your mostly static site.<p>Edge computing doesn&#x27;t even solve any of your real problems here. I18n, l10n, international taxation&#x2F;currency&#x2F;payments, data-at-rest&#x2F;GDPR&#x2F;privacy laws. And then it introduces new problems, such as data partitioning. Are you going to partition at the edge and deal with tricky sync issues (CAP, anyone??) or are you just going to call back to your centralized DB server a thousand miles away from that edge? You know what&#x27;s even faster than running that code on an edge device? Running that code on the user&#x27;s phone or laptop. And you can get there. With a CDN.
评论 #33114499 未加载
dingosityover 2 years ago
Meh. My future is a linux laptop with emacs and ssh.<p>But yeah. I feel you. The Edge is where all the cool kids are hanging out.<p>And as much as it sounds like a buzzword, terminating TLS at the edge is and calling back to central services via a proxy w&#x2F; warm connections to the backend is pretty easy to deploy and does wonders for perceived latency.
评论 #33111994 未加载
stevageover 2 years ago
Yet another web dev article assuming that every web app is massive scale, for a global audience of consumers that have alternative choices.<p>I have worked on dozens of web sites for paying clients, and none were in that category.<p>Also, mostly I just want to know, why is Singapore&#x27;s connectivity so slow? Some sort of filter?
solaticover 2 years ago
The first deeper problem is state. Other commenters have talked about distributed databases. But the second deeper problem is data sovereignty. In, what I would argue is <i>most</i> cases, you don&#x27;t <i>want</i> your data to be replicated around the globe. Local laws forbid it, and the marginal utility of having better latency when your customer goes on vacation somewhere that needed a 12 hour flight is pretty close to zero anyway. So why play with fire?<p>99% of the time that you want geo-distributed databases, I&#x27;d argue that building out a directory kind of service, where you use something like Cloudflare Workers KV to map the customer&#x27;s ID to find which regional API endpoint to use (US&#x2F;EU&#x2F;APAC), is what you actually want.
jmcantrellover 2 years ago
The curl command mentioned in the article that&#x27;s supposed to show the region being used for a request `curl -ls <a href="https:&#x2F;&#x2F;deno.land" rel="nofollow">https:&#x2F;&#x2F;deno.land</a>` doesn&#x27;t seem to work as described. Does anyone know if this is a typo?
评论 #33112881 未加载
评论 #33112819 未加载
Thaxllover 2 years ago
At the edge, so your app is at the edge but the DB is 80ms away. Too much focus on latency, trying to fix a non existing problem.
superkuhover 2 years ago
The future of the money-web is on the edge. But the money web is for corporate persons, not human persons. Humans will continue to use a single server somewhere on earth. Let&#x27;s not get cargo-cult&#x27;y here.
评论 #33120074 未加载
quechimbaover 2 years ago
I&#x27;m working on a framework in Ruby that&#x27;s designed to be deployed on the edge. It&#x27;s got a Virtual DOM on the server and it streams updates to the browser, so having low latency is very important. It doesn&#x27;t matter if the database is far away, its fine if it takes time to load data as long as the UI is fast.<p>I&#x27;m running the example app on fly.io, and if each instance can have 30 concurrent sessions, that means I can have 90 concurrent sessions on their free plan. 30 more sessions for another $1.94... I haven&#x27;t done any benchmarks yet, but it will be interesting to check the performance on different instance types.<p>Deploying apps like this will certainly reduce costs, because you can deploy your app to where your users are. If you have a lot of users during daytime and few users at night time, you only pay for the users you got during daytime. You could have more servers in regions with active users during daytime and less servers in regions where users are sleeping...
ehntoover 2 years ago
If we push everything to the edge we might end up with an ecosystem where it&#x27;s not affordable to run your own VM, and we&#x27;ll be stuck building only on the technologies offered by edge providers. Even if it&#x27;s not literally the case, for the working dev it might end up being the practical reality if edge hosting ends up being the trendy default. The equivalent to &quot;no one got fired for buying IBM&quot; and now &quot;no one got fired for choosing React&quot;<p>Cloud functions are cool, when you need them, and when you want them. But if they were the only option I would go do something else for a living.<p>I am already imagining the day where some young developer comes to the bold new idea that we could write better software, if only we hosted our own runtimes! Much like frontend architecture broke new exciting ground when they recognized they could compile their pages on the server before sending them. Wow!
tonymetover 2 years ago
This vision will become real when we can distribute indexes &amp; query engines to the edge. A simplified model would be a lightweight CDN deployment of sqlite with distributed updates.<p>Querying large indexes is the most common use case that needs code to run. Sqlite would standardize storage &amp; query implementation
zitterbewegungover 2 years ago
The future of the web could also be back to the browser. Python can run in the browser with SQLite. I have had ideas of taking Django or fastapi and then either using the browser or put it in an app which runs it in WebKit or blink and syncing to the servers if that is even needed for the app.
评论 #33112302 未加载
评论 #33113129 未加载
ThinkBeatover 2 years ago
Or just drastically shrink how much data has to be pushed. Static content can be hosted via a CDN to get it close.<p>Serverless workers distributed on a global basis running nanoservices backed by Sqlite on the edge that gets way complicated.<p>My favorite sanity test is &quot;distributed transactions&quot;. Do you need them? If so how complicated will it be to synchronize all edges when changes comes in from all edges.<p>The usual answer is &quot;we will build that ourselves&quot;, then over time the team discovers why it is definite hard problem to solve.<p>You end up reimplementing parts of a database server with added level of complexity.<p>Most architecture should start with<p>&quot;Distributed transactions&quot;.<p>Do we need them If so how will we do it.<p>That is just my obsession.
andirkover 2 years ago
Is our current DNS on the edge? Decentralized all the way down to one&#x27;s host file. Fully centralized all the way up to the 13 DNS servers. It has the issue of keeping up with state yet almost the entire internet rests on its shoulders and it works.
vcryanover 2 years ago
Companies that are banking on edge computing definitely seem to agree with this headline :)
xwowsersxover 2 years ago
I have been trying to find what algorithms or techniques are used to actually accomplish the routing whereby the edge server closest to the user is chosen. Is this accomplished by pinging multiple servers and choosing the one with the lowest TTFB?
评论 #33114343 未加载
scarmigover 2 years ago
Are there any relational systems which store persistent shared state at the edge, with some kind of automatic geopartitioning?
评论 #33112056 未加载
评论 #33111767 未加载
评论 #33111799 未加载
评论 #33111885 未加载
hbrnover 2 years ago
&gt; Better developer experience<p>That&#x27;s some wishful thinking right there.<p>Though author admits that DX is worse <i>right now</i>. But then there are frameworks that abstract edge overhead.<p>Ok, but abstracted overhead is still worse than no overhead.<p>And then there&#x27;s modeling your data without a centralized database. There&#x27;s no world where it leads to better DX.
mwcampbellover 2 years ago
HN itself is hosted on a single US-based server. Does this actually bother people outside the US?
评论 #33115479 未加载
评论 #33115913 未加载
johnnyAghandsover 2 years ago
Wow that really fell apart in the last couple paragraphs.<p>Just glides over important topics like security and completely avoids others like data and application design. This hurts them and the edge space imo.<p>This is just a paper ad for Deno Deploy.
Existenceblinksover 2 years ago
The future of the web and the only way it&#x27;s growing in healthy way is, we, having vm that can runs many languages .. not thing that runs a single language .. everywhere.
评论 #33113332 未加载
jgalt212over 2 years ago
I&#x27;m looking for a blog post the combines the best elements of the future of the web with the future of work.
qprofyehover 2 years ago
Are there other frameworks designed with edge deployment in mind?
评论 #33113864 未加载
评论 #33112149 未加载
nnxover 2 years ago
How does Fresh compare to SvelteKit?