TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Rethinking of CGI as a selfhosted lambda server

121 点作者 reddec大约 5 年前

13 条评论

rossmohax大约 5 年前
nginx unit (<a href="https:&#x2F;&#x2F;unit.nginx.org&#x2F;configuration&#x2F;#process-management" rel="nofollow">https:&#x2F;&#x2F;unit.nginx.org&#x2F;configuration&#x2F;#process-management</a>) does something very similar. with `spare = 0` config option it will start app process lazily and shutdown when idle.<p>There is support for Ruby, Python, PHP, Java, Node, Go runtimes.
评论 #23378094 未加载
评论 #23377858 未加载
michael-ax大约 5 年前
When I published webhub @ href.com in 1995 we called these &#x27;custom runners&#x27;. Looks like you&#x27;d have approved of that concept :)
评论 #23376385 未加载
floatingatoll大约 5 年前
OP, your site is unusable on mobile. I wasn’t able to read about your project as scrolling causes it to force half the text and diagrams out of frame.
评论 #23376184 未加载
HelloNurse大约 5 年前
Having first met Apache when Perl CGI scripts were bleeding edge fancy &quot;web app&quot; technology, I hoped to read a satirical article, but it&#x27;s actually an earnest suggestion to go full circle.<p>It does less than proper CGI, due to giving up HTTP (particularly response headers, status codes and content types) in order to process constrained JSON, and it does it in a more complicated way (UI? Scheduler? Git repositories?), but it&#x27;s still better than other options.
评论 #23377950 未加载
fouc大约 5 年前
Nice idea, bring back the old Common Gateway Interface for web development.
评论 #23375966 未加载
评论 #23375618 未加载
评论 #23378717 未加载
评论 #23375597 未加载
adnanh大约 5 年前
I did something very similar for handling webhooks (but can also be used for anything else), check it out at <a href="https:&#x2F;&#x2F;github.com&#x2F;adnanh&#x2F;webhook" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;adnanh&#x2F;webhook</a><p>People have used it in various segments, from actual deployments on push, to home automation, someone even wrote a guide on how to control the Xiaomi Robot Vacuum using the Amazon Dash button :-)
评论 #23376138 未加载
readams大约 5 年前
Losing the ability to stream the request and response is a big downgrade from normal CGI. I&#x27;m struggling to see how this improves at all on it.
评论 #23378940 未加载
评论 #23381037 未加载
gavinray大约 5 年前
Isn&#x27;t this just OpenFaaS?<p>OpenFaaS has a single-binary distributable that doesn&#x27;t require Docker&#x2F;k8s they released called faasd:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;openfaas&#x2F;faasd" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;openfaas&#x2F;faasd</a>
exabrial大约 5 年前
&gt; I also tried self-hosted solutions based on k3s but it too heavy for 1GB server (yep, it is, don’t believe in marketing).<p>ow.
est大约 5 年前
inetd was like what, eBPF hacks and sidecars?
tuukkah大约 5 年前
Is this compatible with AWS Lambdas on some level? Could it be? What about FastCGI&#x2F;WSGI&#x2F;... compatibility? I&#x27;m thinking it could be really nice for hobby projects and for developing on a laptop.
评论 #23379707 未加载
评论 #23375773 未加载
kalium-xyz大约 5 年前
We have gone full circle c:
评论 #23375804 未加载
_bxg1大约 5 年前
a) This site is very hard to navigate; on mobile the text jumps around whenever you touch and it&#x27;s usually cut off past the edge of the screen<p>b) I couldn&#x27;t figure out what this is. At first I thought it was computer graphics rendering (what &quot;CGI&quot; usually means), but after skimming several paragraphs I don&#x27;t think that&#x27;s what it is? But I&#x27;m still not sure.<p>c) Clicking the github link tries to download a .zip, which beyond making it harder to figure out what this is, was mildly distressing.<p>Edit: re: the downvotes, presumably the author would want to know that their site is broken on mobile and that the content is inaccessible to the average reader who might be curious to learn about it, in ways that could be easily remedied.
评论 #23375784 未加载
评论 #23375517 未加载