4 ms·
Can this run on AWS Lambda with a EBS Blockstore? Mentally this is the cheapest w/o all those egress costs, but I'm not sure. Combine that with we don't like m
by irjustin 2y ago
Can this run on AWS Lambda with a EBS Blockstore?
Mentally this is the cheapest w/o all those egress costs, but I'm not sure. Combine that with we don't like managing resources outside AWS unless absolutely forced.
I really wanted this because RDS serverless v1 could do zero compute, but v2 has a minimum compute requirement.
If I can run my Postgres reliably on AWS Lambda, the costs drop to near zero for non production instances, which is where a lot of people play.
- kiwicopple 2y agoSince this is dockerized, the best AWS primitive would be Fargate or ECS As far as I know you can’t mount a file system like EBS to Lambda, and tbh even if you could the implementation of Lambda+Postgres sounds particularly cursed.
- irjustin 2y agoAh sorry I should've said EFS, got my acronyms wrong. That one is mountable to Lambda. But Lambda can't accept multiple connections to the same instance, so it's allowing multiple pg servers connect to the same data source.
- fulafel 2y agoWhy EBS and not the decoupled storage that this does?
- irjustin 2y agoAh sorry I should've said EFS, got my acronyms wrong.
- paulddraper 2y agoWell A. EFS is dogs*** for this B. The EFS protocol is NFS, so that's the question.
- fulafel 2y agoApparently EFS is better for storage latency (no personal experience): https://lumigo.io/blog/unlocking-more-serverless-use-cases-with-efs-and-lambda/ https://lumigo.io/blog/unlocking-more-serverless-use-cases-w... But on the other hand EFS blocks Lambda's JVM fast start mode that is based on Firecracker VM snapshots. Not that it matters for Postgres...