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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

What if serverless meant no backend servers?

120 点作者 runningamok超过 1 年前

40 条评论

jimmar超过 1 年前
I&#x27;m always glad to see people experimenting with different approaches to building and deploying apps. That said, the general idea of this Serverfree approach doesn&#x27;t appeal to me. On any given day, I&#x27;ll use 4 different devices. I need my data to synchronize seamlessly. I wouldn&#x27;t use a program (in-browser or traditionally installed application) unless I can synchronize that data either by storing files in a Dropbox-like program or in the cloud. I don&#x27;t want to have to remember which computer&#x2F;browser combination I was working on.<p>Edit: forgot some words
评论 #39108500 未加载
评论 #39108194 未加载
评论 #39109940 未加载
评论 #39108522 未加载
评论 #39108368 未加载
评论 #39108268 未加载
评论 #39108331 未加载
评论 #39108458 未加载
评论 #39110417 未加载
评论 #39108543 未加载
评论 #39108355 未加载
desmondl超过 1 年前
Looking at this with an open mind, I&#x27;m curious what benefits running SQLite in WebAssembly with a proxied web worker API layer gives compared to using localStorage or something similar.<p>* Using SQL has clear benefits for writing an application. You can use existing stable tools for performing migrations.<p>* Using SQLite in a filesystem offers many advantages w.r.t performance and reliability. Do these advantages translate over when using WebAssembly SQLite over OPFS?<p>* How does SQLite &#x2F; OPFS performance compare to reading &#x2F; writing to localstorage?<p>* From what I know about web workers, the browser thinks it is making http requests to communicate with subzero, while the web worker proxies these requests to a local subzero server. What is the overhead cost with doing this, and what benefits does this give over having the browser communicate directly with SQLite?<p>* I remember seeing a demo of using [SQLite over HTTP](<a href="https:&#x2F;&#x2F;hn.algolia.com&#x2F;?q=sqlite+http" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?q=sqlite+http</a>) a while back. I wonder if that can be implemented with web workers as an even simpler interface between the web and SQLite and how that affects bundle size...
评论 #39110239 未加载
评论 #39110451 未加载
hosh超过 1 年前
I am thinking the Willow Protocol would make a good base for local-first. There would be no privileged “backend”, but some peers can provide automated services.<p><a href="https:&#x2F;&#x2F;willowprotocol.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;willowprotocol.org&#x2F;</a>
jmull超过 1 年前
I believe what is being proposed is a static site where user data is persisted locally using the WASM sqlite + OPFS. I guess it is also organized like a typical web app, but the app logic and database logic run locally.<p>I was expecting something different because it started with phrases like &quot;no servers at all&quot; and &quot;entirely without any servers&quot;, but there&#x27;s a regular web server serving static files.<p>I&#x27;m not a fan of the term &quot;serverfree&quot;, though, since there is a web server. Also, the app and database servers from classic web apps continue to exist, albeit in a logical, local form. If this term somehow catches on for this style of app it will just cause endless confusion. I suppose it isn&#x27;t a lot worse than some existing terms we&#x27;ve gotten used to (like &quot;serverless&quot;), but I&#x27;m always going to advocate to not repeat the mistakes of the past.
评论 #39110085 未加载
samwillis超过 1 年前
These ideas are some of the founding principles of &quot;local-first software&quot;: <a href="https:&#x2F;&#x2F;www.inkandswitch.com&#x2F;local-first&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.inkandswitch.com&#x2F;local-first&#x2F;</a><p>As I like to put it - Local-first is the real serverless. Your user&#x27;s device is the real edge.<p>I think the future of the web needs to be that the server is optional, we need our data (albeit personal or our companies) to be on our own devices.<p>We are all carrying around these massively powerful devices in our pockets, let use that capability rather than offload everything to the cloud.<p>One of the things I find most exciting about local-first (and I&#x27;m very fortunate enough to be working on it full time), is the sync tech thats being developed for it. 2024 is I think going to be the year local-first goes mainstream.
评论 #39109051 未加载
评论 #39108685 未加载
评论 #39109326 未加载
评论 #39109652 未加载
ijhuygft776超过 1 年前
What we need is updates that only include security patches.... FEATURE CHANGES SHOULD BE OPTIONAL. Because all software tend to decrease in quality overtime.
评论 #39108167 未加载
评论 #39108026 未加载
评论 #39108337 未加载
评论 #39108578 未加载
louwrentius超过 1 年前
&gt; One morning, as I was contemplating ways to procrastinate on doing marketing for SubZero without feeling guilty, an idea struck me. &quot;I know, I&#x27;ll engage &gt; in some content marketing... but what do I need for that? Oh, a cool demo &gt; project!&quot; And just like that, I found a way to spend a month doing content &gt; marketing writing code.<p>I absolutely don’t understand the point of this. Just reading the intro, it reads about technology for its own sake, just because you can. But what is the value, what are the downsides?
solatic超过 1 年前
Show me where you store the data.<p>If you store it on your phone, then it&#x27;s not showing up on your other devices. If you lose or break your phone, then your data is gone. There are very few applications for which that&#x27;s acceptable - basically just your calculator app.<p>If you <i>don&#x27;t</i> store it on your phone, then it&#x27;s stored on <i>some kind</i> of server, <i>somewhere</i>. Do you own and control that server, or does someone else? How does the application consume and update the data?
评论 #39109680 未加载
评论 #39114594 未加载
oneplane超过 1 年前
&quot;It depends&quot;.<p>On one hand, if I were to have the goal to make a bunch of money, and software just happens to be the means to an end, making a gated software portal where I control everything would suit me very well. You get nothing until I get the money, and I only maintain what I want to maintain. (pretty much the model every SaaS has)<p>On the other hand, if I know I have a very small customer base, and everyone is making a lot of money or because of my program, and I don&#x27;t really care that much about the money above a certain number, I might as well distribute it as a static&#x2F;stale build. You get a binary, or a virtual machine or something like that, and it just does everything. Maybe if piracy were a concern I would add some sort of hardware dongle, but I would also be aware that it&#x27;s going to get cracked anyway and the only people that are annoyed&#x2F;limited by it would be my actual paying customers.<p>On the other more different hand (third hand?): if my program has requirements about robustness, locality or longevity, I would make sure it depends on as few things as possible, make sure that it&#x27;s documented well enough for future users and administrators to run it on future environments, and perhaps not sell the software in itself as much as I&#x27;d sell support. The risk and downside is that specialised and unique software tends to be quite annoying and costly to create while there isn&#x27;t a lot of telemetry or feedback to figure out what&#x27;s working well and what isn&#x27;t, so that would drive up the price significantly. I&#x27;d say you&#x27;re looking at two orders of magnitude vs. a SaaS thing.
评论 #39108174 未加载
kkfx超过 1 年前
Mh, a small note: in the very past of IT DocUI was the norm. Actually WebUI are a <i>limited</i> and <i>limiting</i> DocUI, limited by the fact the user can&#x27;t easy bend it to his&#x2F;her own needs and desire, limiting because the WebVM underneath, the whole stack is NOT made for end-user programming as classic systems was.<p>Just try to look at a modern Emacs with org-mode and elisp: links. It&#x27;s a DocUI, with some limits, but far more simpler than a WebApp in a local WebVM. And it&#x27;s pretty local with full filesystem access and so on.<p>I&#x27;m curious how many more DECADES will be needed to reinvent the wheel discovering that classic local DocUIs are far superior and can be networked as we with technically. My own local fast GMail is notmuch-emacs, and it&#x27;s not one, it&#x27;s fully integrated and integrable by myself with few SLoC in my desktop. It&#x27;s not so nice for some aspects not because of the model but because the little development base. If we invest a fraction of the effort put in modern web the classic desktop would outshine any other tech.
gvkhna超过 1 年前
I want this too, there isn’t a great FOSS way to currently do this besides supabase or roll your own unfortunately. For PWA local save&#x2F;write, try network update, refresh local upon success is the gold standard for data integrity. And for network reading fallback to local cache upon offline is great for UX. I haven’t found good tooling for this yet and i’ve been looking.
评论 #39109223 未加载
msplurgid超过 1 年前
this is very close to an inventory control app I built at work (with the exception that eventually when the client is online it will sync data to the server).<p>I&#x27;ve often thought, if I had the time and capability ... take it a step further. No server sync at all. Clients form a peer-to-peer network and sync data between themselves. (perhaps bluetooth or something like Apple&#x27;s Bonjour etc)<p>Actually something like that, plus an optional server sync when server is available is really even better. I&#x27;m thinking specifically of a use case in large warehouses that often have no internet connectivity but in which there are multiple users performing inventory who are duplicating work because they don&#x27;t know a peer already inventoried a specific area and neither of them can sync to server because no wi-fi.<p>dang even better. something like a bit-torrent swarm with something like an admin certificate for releasing code patches, and user-level certs for syncing app data.
评论 #39109972 未加载
zubairq超过 1 年前
So is this article advocating storing everything in a browser SQLite database and then the SQLite database syncs with another server somewhere else? But to do that doesn’t it need to call a server somewhere. I’m trying to understand as it seems there are still servers here??
评论 #39110159 未加载
jp57超过 1 年前
I like the idea of a hybrid of client-side software that optionally uses third-party cloud storage for cross-device sync. NetNewsWire, ByWord (markdown editor), and Scrivener are some examples. Older versions of 1Password also had this, but I don&#x27;t know if it still does anymore.<p>Some of these programs managed this better than others. NetnewsWire and 1Password seemed to just work. Byword and Scrivener had occasional sync conflicts that had to be resolved. In general, though, this seems like a nice system: if you (the user) are subscribed to cloud storage, then you get syncing without paying for an extra service. If not, you can still use the software without syncing.
Pxtl超过 1 年前
Imho, good integration with existing file-clouds is a good approach. Then it&#x27;s just serverless but with helpers to say &quot;Store the config on Google Drive&quot;, and you get free sync of your config between devices.
meiraleal超过 1 年前
I like the concept and I&#x27;m building a similar framework but I think you made some confusion in the implementation?<p>Your server.ts (which uses express) runs in Vite or in a worker (which would require a lot of adaptations&#x2F;might not even be possible)? If it runs using vite, that&#x27;s a server. Then the distribution of your app is compromised: or people would run it locally having to start the server or they would need to spin up a server somewhere. How does it become &quot;&quot;serverfree&quot;?
mjburgess超过 1 年前
I go to fairly great lengths to do everything in the browser to avoid having to support any backends (for the tools, etc. I make; &amp; hobby project gamedev). It would be a great thing if (perhaps legislation) could break the app-store model, then fully-fledged apps could be distributed as web sites (with their own localstorage, etc.)<p>I wonder if there&#x27;s some legal way of saying, &quot;the web is critical communication infrastructure and all core comms devices need to support X standards&quot;
评论 #39108996 未加载
评论 #39108052 未加载
david_allison超过 1 年前
Offline-first isn&#x27;t enough.<p>I&#x27;ve done user support with users in the mountains who don&#x27;t have a reliable internet connection.<p>Being able to say &#x27;don&#x27;t worry, the app works offline, you can (optionally) sync when you&#x27;re next in the city&#x27; is extremely rewarding, and vital for software to work for these people.<p>----<p>Offline-only is not enough either. Ideally users should be able to sync between devices when offline, and have the option to sync to the cloud when online
评论 #39109047 未加载
refulgentis超过 1 年前
I&#x27;m lucky enough to have had tons of time to build something with these values.<p>A huge blocker I didn&#x27;t grok at the beginning is API keys. Unless the app interacts with 0 services, at all, you need edge functions that essentially just add an API key header to a request from the client.<p>It offends me because I don&#x27;t want people to have to trust me, but...there isn&#x27;t anyone who will recommend otherwise. :&#x2F;
hrkucuk超过 1 年前
I like the author&#x27;s article but he makes no mention of countless people who tried to popularize similar ideas! Some examples: <a href="https:&#x2F;&#x2F;unhosted.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;unhosted.org&#x2F;</a> <a href="https:&#x2F;&#x2F;nobackend.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;nobackend.org&#x2F;</a>
ugh123超过 1 年前
What about installation and updating&#x2F;patching? Or is the intention here to still serve this package of web code, db, etc over the net (via cdn maybe), and then execute locally?
评论 #39107847 未加载
评论 #39107909 未加载
igammarays超过 1 年前
I was actually thinking of this the other day, but taking it a step further by actually distributing computation such as worker queues in a peer-to-peer fashion.
christkv超过 1 年前
Anybody remember Groove Networks. Lotus notes over p2p then bought and killed by Microsoft?. It was pretty amazing for its time.
评论 #39108752 未加载
Dalewyn超过 1 年前
Between yesterday&#x27;s thread and this thread today, is serverfree going to be the buzzword of the week?
yoav超过 1 年前
Based on severless being a server solution, we should name this client-only solution “clientless”
jkepler超过 1 年前
So is this basiclly a fully peer-to-peer application, like bittorrent clients?<p>Or something like bisq (<a href="https:&#x2F;&#x2F;bisq.network" rel="nofollow">https:&#x2F;&#x2F;bisq.network</a>) when the program runs locally peer to peer and hosts all user data locally, but still pings oracle servers for outside market price data?
parentheses超过 1 年前
One of the best benefits of approaches like this:<p>Upgrades don&#x27;t have to be required. EVER!
pylua超过 1 年前
What if the schema &#x2F; view has breaking changes ?
评论 #39108518 未加载
ironhaven超过 1 年前
I guess the name “serverless” was already taken ;)
chrisweekly超过 1 年前
Cool ideas and nice writeup. Thanks for sharing!
musha68k超过 1 年前
It is the only way to restore the balance.
0xbadcafebee超过 1 年前
I believe what the author is describing is called <i>A Desktop Application</i>. They were these crazy forms of web apps, that ran on a local computer, stored data locally, and didn&#x27;t use a server. Or a web browser. Legend has it that they used little memory, were fast and snappy, and enabled native integration with all of an operating system&#x27;s capabilities, widgets, etc, while still allowing a user to completely control what happens with the data the program used.<p>Porting this type of application could take a lot of work! So at some point, somebody invented a programming language called Java, which used a thing called a Virtual Machine, so that one application could run the same way on any computer that could run the Java Virtual Machine. They called this <i>A Portable Desktop Application</i>.<p>Unfortunately, this obscure language was somewhat difficult to use, so this paradigm was abandoned for simpler languages, and with it, so went the idea of <i>A Portable Desktop Application</i>.<p>Decades later, somebody reinvented the idea. But it required a much more limited application platform, running inside a kind of hacked-together document viewer, with a simplistic programming language designed to control how documents were displayed. It took about 1000x as much memory and CPU, but, with addition of about 50 different frameworks and 30 different new custom APIs, you could finally get close to the same functionality as the first solution.<p>Ah, technological progress...
评论 #39109878 未加载
评论 #39109729 未加载
评论 #39110083 未加载
评论 #39109766 未加载
评论 #39110018 未加载
评论 #39109794 未加载
steelframe超过 1 年前
Once upon a time at a town hall at Google about 7 or 8 years ago where the SVP over GCP was present a man wiser than I asked the question, &quot;In computing the pendulum has already swung a couple of times between client-centric and server-centric. What are we doing to prepare ourselves for the next swing back into client-centric?&quot;<p>The SVP responded as if the guy asking that question had just stepped out of an alien spacecraft from Alpha Centuri. At the time in that room it seemed incomprehensible to most present how anybody could possibly bask in the glory of the Google infrastructure and then want anything other than that.
yellow_lead超过 1 年前
Tldr: Ship the entire app in the browser.<p>This may sound a bit snarky, but here is a serverfree app for your enjoyment as well:<p>&lt;html&gt;&lt;p&gt;serverfree&lt;&#x2F;p&gt;&lt;&#x2F;html&gt;
评论 #39108712 未加载
SnazzyJeff超过 1 年前
&gt; By now, everyone knows that serverless doesn&#x27;t actually mean without servers; it just means using someone else&#x27;s servers.<p>What? Is this some kind of confusing reference to lambda and competing providers? As far as I know most of computing is serverless.
评论 #39108192 未加载
评论 #39108831 未加载
apapapa超过 1 年前
Serverless is a bunch of poop until everything is truly P2P.... But even then, you could still argue that your peers are servers
Izkata超过 1 年前
Is it just me or is this a recreation of Electron, but without the separate browser instance?
ysavir超过 1 年前
Ahh, yes, render side servering.
评论 #39108572 未加载
jmbwell超过 1 年前
Like, just … a program?
评论 #39108623 未加载
评论 #39108100 未加载
评论 #39108105 未加载
评论 #39107954 未加载
ehutch79超过 1 年前
If you&#x27;re accessing a remote host for the DB, there is a backend.
评论 #39108147 未加载