Alternatively, you could make a Nix flake that can generate an immutable microVM image based on Solo5, running a MirageOS unikernel that implements NAT traversal with UDP hole punching and relay fallback. This image can be deployed to Fly.io as a lightweight, autoscaling Firecracker VM with per-second billing. It boots in milliseconds and costs far less than Lambda. Any reason to use lambda vs this cloud-agnostic app…
Absolutely - there are plenty of more cost-effective, cloud-agnostic ways to build something like this. This is just an experiment to explore Lambda networking and push it beyond its intended use cases.
Re: Show HN: lambda-nat-proxy – Serverless proxy using Lambda and UDP NAT punching
#11Sure, I think it's an awesome effort. Just trying to think of an agnostic approach that's more efficient.