Where does Nitrogen get the best performance - yaws, mochiweb, or inets?
Asked Answered
H

3

6

The Nitrogen project web page declares equal support for yaws, mochiweb, and inets, but with which of these web servers is it going to perform the best? I.e. for a large scale application with mostly dynamic content with nitrogen + a web server which combination will be able to handle the most user load?

Hopkins answered 9/12, 2009 at 22:24 Comment(0)
N
7

A question like this is highly dependent on the application. Any answer would have to be taken with a grain of salt and is definitely not a substitute for doing your own system tests. However, with all of that said, I believe the yaws and mochiweb are fairly similar in performance. yaws is the older project and may be more stable as a result but not neccessarily. I've almost no experience with inets so I'm not going to comment on it.

Your best bet is to run a set of benchmark tests for your app with each one and see what you get. It's so easy to switch between them in nitrogen that you can run tests with the same app and draw your own conclusions.

Normanormal answered 10/12, 2009 at 4:56 Comment(1)
Agreed - for a real answer benchmarking would have to be done. I was looking for a general answer and it looks like I got it. Really just trying to flush out if there was some glaring difference between them that I was missing.Hopkins
G
2

Yeah I believe they are similar in performance. The major difference is that Mochiweb is faster and nimbler while Yaws handles more concurrent connections.

Inets is only for local testing however. I wouldn't bother checking it out.

Glyoxaline answered 10/12, 2009 at 8:37 Comment(2)
The next version of the Erlang.org site (demo.erlang.org) is hosted on inets. It can't be that bad.Earthshine
Yeah but thats a demo. They will probably move to another server for launch. At least I would think so. It's not really "bad" though. Didn't mean it like that. It's small, convenient and built in. But it's just not nearly as good as the other two.Glyoxaline
S
1

Mochiweb is the fastest because Bob Ippolito wrote it. :)

I have benchmarked it and My memory tell me it was much better then the rest of them. What I can remember it was stable and did not explode in error messages under heavy load. But don't trust me. Test it your self.

Saloon answered 28/12, 2009 at 15:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.