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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Nginx C function

137 点作者 ScottWRobinson超过 6 年前

10 条评论

drenvuk超过 6 年前
There is something that should be said about nginx&#x27;s third party modules. There are many and they add quite a bit of functionality, especially when they&#x27;re upstream modules.<p><a href="https:&#x2F;&#x2F;www.nginx.com&#x2F;resources&#x2F;wiki&#x2F;modules&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.nginx.com&#x2F;resources&#x2F;wiki&#x2F;modules&#x2F;</a><p>It&#x27;s great because you don&#x27;t even need a web framework, really. If you&#x27;re comfortable and confident in nginx you can get quite a bit of performance out of the server while adding your application logic to it. I&#x27;m not sure why more people don&#x27;t and just use it as a reverse proxy.
评论 #18211637 未加载
评论 #18213268 未加载
fcambus超过 6 年前
For a more mature implementation of this concept, I would highly recommend having a look at Kore: <a href="https:&#x2F;&#x2F;kore.io" rel="nofollow">https:&#x2F;&#x2F;kore.io</a><p>It has a sane architecture, and is fully privilege separated by default, with private keys isolated in a separate process. I&#x27;ve been using it lately to write REST APIs in C, and the experience has been awesome, it has great APIs to parse requests and easily construct responses.
评论 #18211742 未加载
评论 #18217368 未加载
chx超过 6 年前
Could someone explain to me why would I choose this over <a href="https:&#x2F;&#x2F;github.com&#x2F;openresty&#x2F;lua-nginx-module" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;openresty&#x2F;lua-nginx-module</a> ? It supports LuaJIT and while I suppose it is possible to write faster C code by hand than JIT translated Lua it&#x27;d be hard and I&#x27;d fear the maintainability of hand optimized C code.
评论 #18211396 未加载
评论 #18211324 未加载
评论 #18211261 未加载
评论 #18217117 未加载
评论 #18212145 未加载
writepub超过 6 年前
We&#x27;re huge fans of C interfaces on the sever side. <a href="https:&#x2F;&#x2F;kore.io" rel="nofollow">https:&#x2F;&#x2F;kore.io</a> is our preferred stack.<p>It&#x27;s primary interface is C. In our opinion, it&#x27;s lighter weight, and simpler to integrate with your app.
noway421超过 6 年前
Is the function blocking or asynchronous? Cant quite find it in the README.
评论 #18211488 未加载
评论 #18217353 未加载
annchin_peh超过 6 年前
Can anyone explain to me what is the different between<p>ngx_http_c_func_call &quot;my_app_simple_get_greeting&quot;;<p>vs<p>ngx_http_c_func_call &quot;my_app_simple_get_greeting&quot; respTo=myResponseVariable;<p>I didn&#x27;t see any different, just create a variable.
评论 #18217095 未加载
kyberias超过 6 年前
cgi-bin all over again?
评论 #18212110 未加载
andyhoang超过 6 年前
Is this like lambda(aws) for C?
评论 #18211588 未加载
评论 #18211695 未加载
评论 #18211519 未加载
another-cuppa超过 6 年前
Why does it keep mentioning .so? Nobody refers to it like that. Just say dynamically link.
rntksi超过 6 年前
Any idea why sharing this link to Pocket on Android 9 does not work? (&quot;this webpage does not contain a valid link&quot;)
评论 #18212599 未加载
评论 #18212605 未加载