Open urbien opened 3 years ago
if you're ok with having the VM always running, you could put some code in the VM that just sleeps your app until it gets a request.
Otherwise this gets a lot harder to do in a stable way, I assume it takes 10+sec for the VM to launch, so all your initial traffic is going to time out by time the VM is up and running.
would it still timeout with Firecracker's MicroVM startup time of 125ms?
even better, may it is possible to get IP of the newly launched MicroVM and tell wireguard client to re-connect directly to the wireguard running in MicroVM, bypassing a shared wireguard instance. Could this work?
@pirate thank you for your guide!! I am trying to figure out the following scenario, which Fly.io describes, but never described in a way that can be implemented:
Why Boringtun? Because Windscribe released changes to add a script on client connect: https://blog.windscribe.com/introducing-wireguard-76a1670700a6 https://github.com/Windscribe/boringtun