TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Python Serverless Functions?

5 pointsby riyakhanna1983almost 2 years ago
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.

9 comments

gyanreyeralmost 2 years ago
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:&#x2F;&#x2F;github.com&#x2F;cloudflare&#x2F;python-worker-hello-world">https:&#x2F;&#x2F;github.com&#x2F;cloudflare&#x2F;python-worker-hello-world</a>
riyakhanna1983almost 2 years ago
[MORE: cannot edit] We&#x27;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?
killingtime74almost 2 years ago
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
jcz_nzalmost 2 years ago
Have you considered App Engine?<p>GCP has &quot;cloud functions&quot; but it&#x27;s just a python cloudrun container behind the scenes, with all the associated issues. We found it&#x27;s easier to just use cloudrun.
评论 #36318287 未加载
icedchaialmost 2 years ago
You can use provisioned concurrency w&#x2F; Lambda. You still may get &quot;cold starts&quot; when you exceed what you&#x27;ve provisioned, so you&#x27;ll want to over-provision.
lerosalmost 2 years ago
You can compile your Python to WebAssembly and run the WebAssembly in Cloudflare workers.
abyesilyurtalmost 2 years ago
How about Cloud Run with minimum instances?
nathantsalmost 2 years ago
for lambda, use zip not container, much faster cold starts.
ruskyhackeralmost 2 years ago
Azure function apps