3 ms·
Nothing's wrong, it just gives much more than needed to serve a static site! I like the idea to statically pre-generate entire HTTP responses, with all headers
by nine_k 4y ago
Nothing's wrong, it just gives much more than needed to serve a static site!
I like the idea to statically pre-generate entire HTTP responses, with all headers, and just serve a byte stream mindlessly once a URL is mapped. If TLS is handled by a separate proxy (that only does TLS termination), the "web server" becomes as trivial as it gets. Fast, simple, due to the simplicity probably bulletproof.
- chubot 4y agoI don't really follow what you're saying It serves static sites. I upload my files with rsync, scp, or git, and they are served
- Groxx 4y agoThere's still a "web server" in front of those files that speaks HTTP and delivers those files. An extremely simple one, but it still exists. What they're proposing is cutting out the "speaks HTTP" part in favor of entirely pre-recorded responses. Whether you think that's feasible or not depends on where you draw the line in the sand, but it can certainly be easier to implement than nginx.
- bathtub365 4y agoWeb servers exist already. Does what you’re describing exist?
- ciprian_craciun 4y ago[the author here] Well, the article does point in the last section "Putting it in practice" to my own implementation <https://github.com/volution/kawipiko https://github.com/volution/kawipiko>. :)