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.

Rethinking of CGI as a selfhosted lambda server

121 pointsby reddecalmost 5 years ago

13 comments

rossmohaxalmost 5 years ago
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-axalmost 5 years ago
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 未加载
floatingatollalmost 5 years ago
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 未加载
HelloNursealmost 5 years ago
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 未加载
foucalmost 5 years ago
Nice idea, bring back the old Common Gateway Interface for web development.
评论 #23375966 未加载
评论 #23375618 未加载
评论 #23378717 未加载
评论 #23375597 未加载
adnanhalmost 5 years ago
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 未加载
readamsalmost 5 years ago
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 未加载
gavinrayalmost 5 years ago
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>
exabrialalmost 5 years ago
&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.
estalmost 5 years ago
inetd was like what, eBPF hacks and sidecars?
tuukkahalmost 5 years ago
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-xyzalmost 5 years ago
We have gone full circle c:
评论 #23375804 未加载
_bxg1almost 5 years ago
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 未加载