9 ms·
The interesting thing is "serverless" batch processing. Amazon have essentially reinvented the 1970s mainframe batch processing business model, complete with ch
by pjc50 10y ago
The interesting thing is "serverless" batch processing. Amazon have essentially reinvented the 1970s mainframe batch processing business model, complete with charging for CPU usage. And made it fairly readily available for any developer anywhere.
- marktangotango 10y agoAlmost, does lambda track resource usage down to cpu cycles, heap usage, and network bandwidth? I've contemplated adding scripting language support for my BaaS project with this level of accounting, but from what I've determined, it would require creating a new language, or a new runtime for an existing language, or Lua. Lua's is simple and easier to modify from what I can tell. Unfortunately, no ones writing web apps in Lua, aside from the OpenResty guys. The goal being the utility model of computing, pay for exactly the cycles you use, no more, no less. Off premise on demand. Like tap water.
- admiun 10y agoThey do, yes. Rounded up to the nearest 100ms, scaled for chosen RAM capacity: https://aws.amazon.com/lambda/pricing/ https://aws.amazon.com/lambda/pricing/ Note that this doesn't measure actual RAM use, although they do display it after lambda runs. Data traffic is already measured and priced accordingly in AWS so that's not something new for Lambda.
- sokoloff 10y agoThat's not exactly what marktt was asking. For example, calling sleep (explicitly or implicitly while waiting on network input) would not incur much CPU cost under marktt's accounting method but does incur wall clock charge under Lambda. (It's totally understandable and fair that it does; it's just different than what he asked.)
- michaelt 10y agoOne could think of Lambda as charging for (A * network bandwidth + B * RAM usage * wall clock time + C * CPU time + D * Disk IO) where C and D are both zero.
- marktangotango 10y agoFrom a capacity planning perspective, your goal should be 100% cpu utilization per box. Allocating excessive, unutilized wall clock time is wasted capacity. Same applies for ram/heap per call. These are the same considerations that played out in client/server vs mainframes for so many years. Mainframe budgeting of cycles, memory, an IO was highly effective and efficiently utilizing resources. It's a model of computation that has disappeared, but is still relevant. When google app engine first came I had hoped it would utilize this model, but instead went the containerization route.
- sudhirj 10y agoLambda charges by CPU time, not cycles. If you either sleep or make network requests inside a Lambda you're better off with a server.
- ewindisch 10y agoLambda does not bill on these, nor do they provide you with these metrics out of the box. This is something that 3rd-parties can provide, however... it's something that we collect with IOpipe[1] (disclaimer: I'm CTO & founder) [1] https://www.iopipe.com https://www.iopipe.com
- buremba 10y agoimagine a serverless distributed database. fault tolerant, scalable and cheap, that would be great.
- marktangotango 10y agoThat's exactly what we offer [1]. Serverless, in process, hosted Sqlite served by apache and mod_lua. We have application level caching, so for high read, low/medium write applications, scale is no problem, you're mostly served from redis in that case. Applications that do a lot of inserts/updates aren't ideal in our case. Sqlite's WAL can handle a lot, but our service hasn't been stressed that way yet. Why Sqlite? It's really an awesome database, and using it in process from apache, we can achieve truly massive multi-tenancy, and really low cost. We also have static file hosting, we're going for hosting of single page apps, but the database API is available over CORS for any domain. [1] https://www.lite-engine.com https://www.lite-engine.com
- asimuvPR 10y agoThere are no details about pricing in your page.
- marktangotango 10y agoThanks for checking, true no info on pricing. We just launched a few weeks ago and haven't seen much interest yet. We're just offering the rate limited free tier for now. Out of the gate our users get a subdomain on our site. But to serve webapps from a custom domain (ie www.mysite.com), or access the database API from CORS from a different domain, our tentative plan is to charge a small monthly fee (less than $10 a month) and remove the rate limit.
- SmellTheGlove 10y agoDo you allow any other server side scripting? For instance, I'm building something that may fit this pretty well, but I have some PHP to geocode addresses that are submitted without lat/long coordinates before the row is written to the db. And my next step is some backend scripting to get some automated feeds on some interval (likely daily) into the database for the web interface to consume.