Finally a website that doesn't crash when it shows up on the front page
Any site with a CDN in front of it can do that. Don’t get me wrong this is an awesome project but if you really care about this kind of thing in a production scenario and you’re serving mostly static content… just use a CDN. It’ll pretty much always outperform just about anything you write. It’s just boring.
Show HN: Hosting my website using my C web server
31–40 of 160 posts
Re: Show HN: Hosting my website using my C web server
#32Finally a website that doesn't crash when it shows up on the front page
Any site with a CDN in front of it can do that. Don’t get me wrong this is an awesome project but if you really care about this kind of thing in a production scenario and you’re serving mostly static content… just use a CDN. It’ll pretty much always outperform just about anything you write. It’s just boring.
(though I confess it's been some years since I've worked in this area)
Re: Show HN: Hosting my website using my C web server
#33Re: Show HN: Hosting my website using my C web server
#34Not to compare but i realice this is something you can do with rust with few lines https://github.com/actix/actix-web/tree/master/actix-http
$ python3 -m http.server
Re: Show HN: Hosting my website using my C web server
#35Finally a website that doesn't crash when it shows up on the front page
Any site with a CDN in front of it can do that. Don’t get me wrong this is an awesome project but if you really care about this kind of thing in a production scenario and you’re serving mostly static content… just use a CDN. It’ll pretty much always outperform just about anything you write. It’s just boring.
Re: Show HN: Hosting my website using my C web server
#36Not to compare but i realice this is something you can do with rust with few lines https://github.com/actix/actix-web/tree/master/actix-http
Re: Show HN: Hosting my website using my C web server
#37Earlier quoted context omitted.
Any site with a CDN in front of it can do that. Don’t get me wrong this is an awesome project but if you really care about this kind of thing in a production scenario and you’re serving mostly static content… just use a CDN. It’ll pretty much always outperform just about anything you write. It’s just boring.
If you're hosting static data, shouldn't HTTP cache flags be enough in most cases? Read-only cacheable data shouldn't be toppling even a modest server. Even without an explicit CDN, various nodes along the chain will be caching it. (though I confess it's been some years since I've worked in this area)
Re: Show HN: Hosting my website using my C web server
#38Only 3.4k of C code for a full http and https server? I honestly thought you would need a lot more for it to be fully compliant with the spec.
$ wc -l *
31 Makefile
910 config.c
314 control.c
34 css.h.in
257 http.h
100 httpd.8
1262 httpd.c
882 httpd.conf.5
843 httpd.h
19 js.h.in
218 log.c
319 logger.c
2563 parse.y
309 patterns.7
713 patterns.c
46 patterns.h
829 proc.c
1484 server.c
849 server_fcgi.c
826 server_file.c
1997 server_http.c
10 toheader.sed
14815 total
[1]: https://man.openbsd.org/httpd.8Re: Show HN: Hosting my website using my C web server
#39Re: Show HN: Hosting my website using my C web server
#40Only 3.4k of C code for a full http and https server? I honestly thought you would need a lot more for it to be fully compliant with the spec.