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.

Serverless Architectures

426 pointsby nu2ycombinatoralmost 9 years ago

32 comments

stickfigurealmost 9 years ago
By this definition, we&#x27;ve been running &quot;serverless&quot; on Google App Engine for most of a decade.<p>* We don&#x27;t monitor how many instances are running and don&#x27;t really care. Our &quot;functions&quot; are http endpoints. GAE spins up or down instances to meet the load. Our interface with &quot;instances&quot; is just the size of the bill at the end of the month.<p>* Async task processing is also just an http endpoint function. We even have a little bit of syntactic sugar so it looks like we&#x27;re just adding functions to a queue.<p>* We have no ops or devops staff. We just deploy code that implements functions (http endpoints).<p>* Persistence is also scaled by Google; there&#x27;s no database server, just an API to read&#x2F;write data that scales infinitely (or at least, scales with linearly our bill, not limited by the dataset).<p>It sounds to me like the article is trying to distinguish between &quot;serverless&quot; and PaaS by describing PaaS done poorly. For the longest time, GAE didn&#x27;t even expose the # of instances servicing your app. They&#x27;ve exposed a lot more of the underlying constructs since, but you can still ignore them unless you&#x27;re trying to hyperoptimize your bill.
评论 #11923099 未加载
评论 #11923049 未加载
评论 #11923200 未加载
评论 #11927456 未加载
评论 #11923513 未加载
loup-vaillantalmost 9 years ago
What kind of evil genius devised a term that suggests peer-to-peer, to describe something that relies more than ever before on central services and authorities?<p>It feels like &quot;intellectual property&quot; all over again —which suggests the rules used for rival goods can be used for ideas, hence ignoring the difference between moving and copying.
评论 #11923156 未加载
mikegerwitzalmost 9 years ago
There are a number of things I find alarming about this (which is nothing new):<p>Firstly, the author is encouraging the conversion of traditional web pages to single-page web applications, which means that users would now have to download actual software to use the website rather than using the software that they already have and trust: their web browser.<p>Perhaps most alarming is the acknowledgement of this:<p>&gt; One of the main benefits of Serverless FaaS applications is transparent production runtime provisioning, and so open source is not currently as relevant in this world as it is for, say, Docker and containers.<p>This highlights the major issue of SaaSS&#x2F;SaaS, and FaaS takes it to the extreme:<p><a href="https:&#x2F;&#x2F;www.gnu.org&#x2F;philosophy&#x2F;who-does-that-server-really-serve.html" rel="nofollow">https:&#x2F;&#x2F;www.gnu.org&#x2F;philosophy&#x2F;who-does-that-server-really-s...</a><p>Not only does the user not have control (as in the case of SaaS), but in the case of FaaS, the actual author is relinquishing the same control.<p>These suggestions all &quot;make sense&quot; from an architectural perspective (depending on who you ask, and depending on the software being written). But I plead for others to consider whether this is necessary in their particular instance; it&#x27;s the default thinking now-a-days: want to write a program? Want a wide audience? Want it to scale? Put it on the Web, make it a service, store it and all user data on someone else&#x27;s computer, and call it &quot;the cloud&quot;.<p>I expressed my opinions and concerns at LibrePlanet 2016:<p><a href="https:&#x2F;&#x2F;media.libreplanet.org&#x2F;u&#x2F;libreplanet&#x2F;collection&#x2F;restore-online-freedom&#x2F;" rel="nofollow">https:&#x2F;&#x2F;media.libreplanet.org&#x2F;u&#x2F;libreplanet&#x2F;collection&#x2F;resto...</a>
评论 #11922399 未加载
评论 #11922815 未加载
评论 #11922658 未加载
infodroidalmost 9 years ago
It is misleading that the HN title suggests the author is Martin Fowler, but this is not the case for this guest article. The actual author is Mike Roberts, the article is hosted on Fowler&#x27;s site.
评论 #11921976 未加载
评论 #11925816 未加载
gmazzaalmost 9 years ago
Serverless = new name for PaaS.<p>VPS (virtual private servers) were available (and largely ignored) for quite a while before 2006, when AWS came along with the catchy word &quot;cloud&quot;. This single word changed everything. Same technology all of the sudden became cool, and everybody started using it.<p>Maybe now it is the turn of PaaS [1] - call it &quot;serverless&quot; and folks finally start seeing all the benefits (true scalability, efficient resource utilization, timely and painless software upgrades, et c.)?<p>[1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Platform_as_a_service" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Platform_as_a_service</a>
评论 #11921997 未加载
评论 #11921994 未加载
评论 #11924699 未加载
评论 #11922218 未加载
Spearchuckeralmost 9 years ago
The API gateway made me smile. In the 90&#x27;s we had message queues. In the 00&#x27;s we had service busses. Today we have API gateways. All they do is route requests - they&#x27;re all the same thing.<p>There&#x27;s merit in serverless, no doubt. There are many things that worry me. Not owning the infrastructure means I don&#x27;t get the telemetry I&#x27;d like, making triage difficult. Direct access to the database is a good idea said nobody ever. And at what point does my own infrastructure become more cost-effective than cloud?<p>Those concerns don&#x27;t invalidate the applicability or relevance of serverless though. I think its value as a protyping tool, or to validate a proof of concept is huge.
评论 #11922075 未加载
评论 #11921642 未加载
评论 #11922620 未加载
评论 #11921558 未加载
kabesalmost 9 years ago
How did this came to be known as serverless? It just seems to be an extreme case of microservices running on someone else&#x27;s computer?
评论 #11921939 未加载
评论 #11921634 未加载
评论 #11921837 未加载
stephenralmost 9 years ago
Why not MTTaaS - Misleading Technology Terms as a Service.
评论 #11931932 未加载
评论 #11921792 未加载
Mister_Snugglesalmost 9 years ago
The serverless architecture appears to have many servers provided by different people instead of having no servers, as &quot;serverless&quot; leads me to think. Is this just trading wrangling a server farm for wrangling contracts with 3rd party service providers?<p>Am I missing something?
评论 #11922988 未加载
jtwalesonalmost 9 years ago
If your PaaS supports scaling down to zero (Heroku free tier, Cloud Foundry somewhere in the future) and resuming on incoming traffic, it&#x27;s basically a much better version of FaaS. The way you deploy code, the way services are coupled to the app etc is much better.
评论 #11921951 未加载
Animatsalmost 9 years ago
It&#x27;s just outsourcing. It &quot;depends on 3rd party applications &#x2F; services (‘in the cloud’)&quot; It&#x27;s like Salesforce&#x27;s &quot;No Software&quot;.<p>A real serverless architecture would be federated, like BitTorrent or Bitcoin.
TorKlingbergalmost 9 years ago
Is Google App Engine an example of serverless? The user does not really think about servers, and the code is mostly written as event handlers. The abstraction is a bit leaky though, and you can tell that there are instances being spun up and down.
评论 #11921921 未加载
评论 #11921911 未加载
评论 #11923180 未加载
评论 #11922294 未加载
评论 #11921868 未加载
winteriscomingalmost 9 years ago
As someone previously noted about serverless architecture - <a href="https:&#x2F;&#x2F;twitter.com&#x2F;jf&#x2F;status&#x2F;739971456302350336" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;jf&#x2F;status&#x2F;739971456302350336</a>
i_have_to_speakalmost 9 years ago
Ah, the PetStore example brings back memories! Wonder how many people remember it?
评论 #11922317 未加载
jlward4thalmost 9 years ago
In regards to Stateless and 12 Factor...<p>&gt; This has a huge impact on application architecture, albeit not a unique one - the ‘Twelve-Factor App’ concept has precisely the same restriction.<p>While 12 Factor does say that processes should be stateless I&#x27;ve never thought it really meant it. Connection Pools and in-memory caches are pretty typical in 12 Factor (or all non-serverless) apps. And for me that is what makes serverless kinda silly. Some global state is actually pretty useful when you can avoid the overhead of initializing things or going over the network.
评论 #11922293 未加载
评论 #11922312 未加载
ameliusalmost 9 years ago
The article totally skips (serverless) <i>federated</i> architectures, which are more interesting, in my opinion.
评论 #11928055 未加载
评论 #11921889 未加载
Touchealmost 9 years ago
With this type of architecture, aren&#x27;t you creating latency by separating out the &quot;backend&quot; from the database? In the traditional approach the backend server and database are in the same datacenter, but it seems that&#x27;s often not the case in FaaS approach, what are the ramifications of that?
评论 #11922025 未加载
agentgtalmost 9 years ago
We sort of do this for a JVM with the exception that it is the JVM and you really can&#x27;t be rebooting it all the time.<p>What we do is use a message queue and extreme thread isolation. Are internal framework is sort of analogous to an actor framework and&#x2F;or Hystrix but is stateless through out. Messages are basically functions that need to be run.<p>That being said because our whole architecture is message driven and uses a queue with many client implementations we have been experimenting with OCaml Mirage and even some Rust + lightweight container because of the serious limitation of booting up the JVM.
joefkelleyalmost 9 years ago
The one thing I haven&#x27;t seen discussed in the serverless world is state as optimization.<p>For instance, if I have a machine learning application that has to access a very large trained model, I would like to load that model into memory at application startup. Loading from disk at every &quot;function call&quot; would be too slow. So would making RPC calls to some external &quot;model cache&quot; service.<p>Does AWS Lambda &#x2F; similar have some sort of overridable &quot;init&quot;?
评论 #11923787 未加载
krisligalmost 9 years ago
&quot;1. Often require vendor-specific language, or at least vendor-specific frameworks &#x2F; extensions to a language&quot;<p>...<p>&quot;(1) is definitely not a concern for the FaaS implementations I’ve seen so far, so we can scrub that one off the list right away.&quot;<p>That point do not make any sense to me. You have to follow the AWS Lambda programming model which is specific to AWS Lambda, so either way you are tied to some libraries and patterns which are vendor-specific.
ecthienderalmost 9 years ago
I think the word serverless makes more sense in p2p&#x2F;decentralized architectures, than in platforms using pre-built servers.
zippy786almost 9 years ago
<a href="http:&#x2F;&#x2F;martinfowler.com&#x2F;articles&#x2F;serverless&#x2F;sps.svg" rel="nofollow">http:&#x2F;&#x2F;martinfowler.com&#x2F;articles&#x2F;serverless&#x2F;sps.svg</a><p>Is there something wrong that the client browser is connecting directly to the database, so JS -&gt; MySQL direct connection won&#x27;t expose credentials ?
评论 #11922999 未加载
eazel7almost 9 years ago
Wrong. All wrong. Serverless is like what is the server standing on before the server? That is serverless. Peer to peer mesh discovery protocols, for example. Serverless implies no server. Buzzz buzzzzz buzzzz buzzzz. Sexless sex.
MichaelMoser123almost 9 years ago
So the web page now has to contact a lot of servers. That means more round trips and worse security - more endpoints means a bigger surface for attacks. Also you know what data is on what server - you just have to inspect the javascript source code. Is this a good idea?
apialmost 9 years ago
Trouble is most of these are completely single vendor and closed. If you build your app for Lambda, theoretically you&#x27;ve built it to run on <i>one</i> computer: the AWS lambda &quot;main frame.&quot;
评论 #11924292 未加载
findjashuaalmost 9 years ago
s&#x2F;serverless&#x2F;zero-ops&#x2F;g
k__almost 9 years ago
How does this work with WebSockets?<p>Like, a bit more than FaaS, but less than PaaS?
评论 #11925003 未加载
dreamdu5talmost 9 years ago
Serverless now means &quot;servers in the cloud&quot; ? So what do we call apps that don&#x27;t use servers!? I&#x27;m actually writing one right now...
guylepage3almost 9 years ago
I feel blockstack.org offers the best serverless technology.
Aaronikalmost 9 years ago
#content { margin: auto; }<p>y&#x2F;w :D :D
qaqalmost 9 years ago
shared hosting reinvented :) Name is way cooler though
knownalmost 9 years ago
Torrent ?