4 ms·
Serverless environments are a matter of fact. They exist, they are super convenient, and people want to use Postgres in them. This is a bridge for such people.
by nikita 4y ago
Serverless environments are a matter of fact. They exist, they are super convenient, and people want to use Postgres in them. This is a bridge for such people. Yes, it requires some sophisticated engineering, but it also enables to have less boilerplate code for a lot of people.
- Cthulhu_ 4y agoI think if this particular logic is hidden away behind a server, it doesn't really matter - people want convenience, and for someone else to hide the complexity. Serverless postgres-as-a-service isn't a stretch at all. This thread does remind me of a previous thread, I believe it was something like optimizing a basic string operation (concatenation?) by going down to assembly and SIMD. Few people have a need to know the details of that particular implementation, and mere mortals cannot comprehend the wizardry going on there either, but that's just fine because if it gets incorporated into standard libraries or the underlying implementations that said standard libraries use, everybody benefits without ever having to understand the inner workings.
- interstice 4y agoUnless it breaks one day and no one knows why
- hot_gril 4y agoSomeone knows why, but that someone is not me. And if it had to be me, I'd go figure it out given some time. Point is, I don't need SIMD knowledge hot-loaded in my head.
- manigandham 4y agoAlso known as layers of abstractions. The entirety of (software) technology is built on that concept.
- hot_gril 4y agoSure, you want the easiest thing possible that fulfills the common use cases. But right now serverless isn't there quite yet. Having persistent Postgres connections is a really basic requirement that the serverless platforms should've implemented already. Heroku and similar things are the sweet spot right now for me. I don't have to deal with much, and I get exactly the amount of flexibility that I need. Sure it'd be a little nicer not to deal with Express on my own in a NodeJS environment, but right now it's easier to deal with than it is to avoid. Some day I'll happily go serverless.
- jrsj 4y agoThings are getting more serverlesss too. With Deno Deploy, Cloudflare Workers, etc I see myself eventually wanting to run most of my application on platforms like this, and a serverless & distributed database makes that much easier and I expect it’ll probably perform better in many cases too.
- nikita 4y ago100%
- agrippanux 4y agoDeno Deploy doesn’t yet support npm (it’s coming), which I found out the hard way last week. Overall tho I agree with your statement, and I now build most of my apps using serverless and databases like Neon.
- stickfigure 4y agoI've been doing "serverless" on app engine for more than a decade and it handles postgres connections fine without any heroics. There's always instances with state somewhere; it's just a question of how smart your serverless infrastructure is about pooling the instances.
- jeremyjacob 4y agoThe “serverless” being referred to in the article is run using V8 isolates, whereas app engine runs full Node.js processes. Although they have limitations like not supporting raw TCP, isolates can start within a couple milliseconds and are much more CPU efficient than standalone processes.