News for hackers. Stuff that matters.
Re:The Architecture of Open Source Applications: Nginx by losvedir on Tuesday November 24, 2015 @12:40AM (#10619306)
Does anyone know how this architecture compares to cowboy? I know erlang is known for concurrency, but I'm assuming erlang isn't as fast as the custom-tailored C here. OTOH, I feel slightly less concerned about security issues with erlang.
Re:The Architecture of Open Source Applications: Nginx by rdtsc on Tuesday November 24, 2015 @02:27AM (#10619575)
Well cowboy is an application library. So it is a bit in a different league. With cowboy you can start writing your business logic or application code directly and go to work. Nginx can do some of that with Lua integration but it is nice for serving static files and proxying to back-ends.

I could see for example nginx in front of cowboy. It would strip away ssl, serve static pages, maybe authorization/authentication and then proxy connections to cowboy servers in the backend for application logic.

Re:The Architecture of Open Source Applications: Nginx by biokoda on Tuesday November 24, 2015 @02:41AM (#10619610)
What's common is both are based on kqueue/epoll. Erlang then provides a very elegant interface on top of it.