We're working on a project that requires handling and responding to events. Is there a way to deploy Python functions similar to CloudFlare JavaScript workers? AWS Lambda cold starts are unacceptable to us.
Cloudflare has an example project where you can write a worker in python and have it transpiled to JavaScript, but that feels a little funky. <a href="https://github.com/cloudflare/python-worker-hello-world">https://github.com/cloudflare/python-worker-hello-world</a>
[MORE: cannot edit] We're looking to cut down our Cloud costs, so over provisioning to make up for cold starts is not an option for us. Curious to know how others are in the same situation and how they are handling this?
Cold starts have been optional in lambda for several years now... You can pay to keep it warm. Even before that there were open source projects that poked the lambda on a schedule to keep them warm
Have you considered App Engine?<p>GCP has "cloud functions" but it's just a python cloudrun container behind the scenes, with all the associated issues. We found it's easier to just use cloudrun.
You can use provisioned concurrency w/ Lambda. You still may get "cold starts" when you exceed what you've provisioned, so you'll want to over-provision.