eBPF 脚本化零配置 Web 服务器
值得看指数 57.0 NO. 016 · 2026.06.07
发布2026/06/06Score90Comments21
为什么值得看
zeroserve 是一个零配置 HTTPS 服务器,支持通过 tarball 部署网站并内嵌 eBPF 程序作为沙箱化中间件处理请求。单核性能超越 nginx,适合需要边缘计算和动态请求处理的高性能场景。
编辑判断
传统上要在 Web 服务器层做请求改写或认证,要么用 nginx + Lua/OpenResty(配置复杂、学习曲线陡),要么走 Envoy + WASM(太重)。zeroserve 把 eBPF 塞进 tarball 直接当中间件用,部署模型和 Cloudflare Workers 类似但更简单——不需要平台绑定,一个文件就能跑。
真正值得关注的是它的性能声称:单核压过 nginx 意味着 eBPF 用户态执行的开销控制得很好,不是玩具项目。如果你在跑边缘网关、静态站点 CDN 或者需要轻量 A/B 路由的场景,这个比上 Traefik/Nginx 省一半资源是可能的。
风险点是 eBPF 调试和可观测性 toolchain 还不成熟,写复杂逻辑时出问题不好定位。建议先拿来做简单场景(速率限制、请求头改写),别一上来就替代现有 API 网关。
社区反馈
意见分歧 24 条评论
核心争论:AI辅助开发降低创新门槛,但过度依赖导致信任危机与内容空洞化
Looks good, nice features. But somehow the spark does not ignite on my side because it feels too artificial. I don't know if the metrics are faked, if the convenience functions actually work, if there is any proper hardening. I can accept if stuff is vibe coded and has autogenerated README. But even
Given the benchmarks: Small static file (174 B) - the bread and butter of static sites: server req/s p99 zeroserve 36,681 5.4 ms nginx 31,226 7.8 ms Caddy 12,830 22 ms zeroserve serves small files about 17% faster than nginx on a single core, with a tighter tail. HTML pages, small JSON, CSS - t
The problem with pasting LLM output is that no human with sound mind and body would waste their finite time on this Earth informing you that small static files are "the bread and butter of static sites".