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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Should I choose NJS or Lua to extend Nginx

1 点作者 mitjafelicijan将近 4 年前
I am working on a simple key value store for a project. I want to avoid messing with python server like uwsgi and having a reverse proxy and would like to take this opportunity to work with nginx.<p>I noticed that they added NJS, and they are heavily promoting that. Which one should I use? I will be saving and retrieving files from a disk (cca 200mb per file).

3 条评论

mitjafelicijan将近 4 年前
I know about the ngx_http_keyval_module. I, however, would need to make this distributable with something like Raft consensus protocol. Or something similar to that, and I would like to avoid coding this in C if possible.<p>Maybe the solution could be something hybrid between already existing plugins and then do only the distribution part of the thing.
smt88将近 4 年前
Nginx does that natively. The key is the file name and the store is the disk. You can transform URLs using config files, if needed.
phillipseamore将近 4 年前
There are nginx modules for interacting with Redis and memcached.