Replies: 1 comment 5 replies
-
Of course I have. Since I don't know the purpose of your yes / no question, I'm trying to give you my opinion: I wouldn't use the std http server in production for my own purposes, though. I think was mainly made for testing the http client. It's far from being proven and battle-tested, and as zig currently still lacks async, the most straight-forward way to use it in a multi-connection ( = realistic) scenario is to use one thread per connection which is not ideal, especially when dealing with thousands of concurrent connections. Facil.io comes with a full-blown async IO reactor framework that supports multiple worker processes and worker threads, among many other things. So, serving HTTP is one thing, but the underlying IO code is another. Now, once Zig reintroduces async, I would hope for (and expect) cool http server frameworks to pop up / be revived. That would be really interesting. Especially, since their most compelling argument to me would be that they'd be written entirely in Zig. But I need something now, that's not a gamble ("battle tested"), is feature-rich, and can handle 10k parallel connections with ease. The author of facil.io is working on a new version that's even more compelling since it will support things like http streaming without blocking a worker thread. I guess, I will incorporate that into zap then - but will also keep an eye on upcoming zig implementations. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Zig 0.11 has been released and according to merged commits it seems to include a basic http server.
Have you seen it?
Beta Was this translation helpful? Give feedback.
All reactions