News for hackers. Stuff that matters.
Re:Kore: a fast web server for writing web apps in C by nomel on Saturday May 16, 2015 @11:32PM (#9558584)
Any non asynchronous application.
Re:Kore: a fast web server for writing web apps in C by dhaivatpandya on Saturday May 16, 2015 @11:52PM (#9558626)
Why would you have a web server that doesn't process requests async?
Re:Kore: a fast web server for writing web apps in C by otterley on Sunday May 17, 2015 @12:50AM (#9558761)
There are a few reasons I can think of.

1) Client libraries you might need to use in your web service might not be available in asynchronous versions.

2) Writing blocking code is much easier to write than asynchronous code.

3) Your server code is CPU bound, so there's no benefit to an asynchronous model.

4) If your web app runs in an asynchronous server and your app crashes, it'll crash the whole server. On the other hand, in a forking model, only the client that the child is serving will be impacted; the other workers will be unaffected.

5) Memory leaks are easier to contain in a forking model, assuming the child can exit or be killed after N requests.