News for hackers. Stuff that matters.
Re:How to get C like performance in Java by wladimir on Thursday July 21, 2011 @05:42AM (#2788961)
I also found that particular sentence really strange. "How to get C-like performance in java? Buy more servers!". Yeah, sure, but that approach will work for any language. With async you could handle even more connections with that larger amount of servers...
Re:How to get C like performance in Java by pkl on Thursday July 21, 2011 @12:30PM (#2790142)
You can handle a much larger number of connections provided they don't do anything useful. However if you expect to do anything useful, you are likely to need some horizontal scalability once you have thousands of connections.

AdWords charge about $1 per click. Lets say your hardware budget is only $1 per connection. With 10K connections you still have enough money for 10 servers if you wanted.

Re:How to get C like performance in Java by jshen on Sunday July 24, 2011 @12:06AM (#2798592)
"You can handle a much larger number of connections provided they don't do anything useful."

Define useful? I think you mean, computationally complex, but that isn't the same thing as useful. At my last job I worked on a web crawler, and fetching a page, then persisting it in our grid, was useful work. It was useful to have more than 10k connections in that context.

One of my pet peeves is this idea of throwing servers at problems. We currently have enormous problems with power and heat dissipation in data centers. At my last job, where I did the web crawler, we couldn't put any more servers in our data center because we didn't have enough power. Doing more, with fewer servers can be very important.

I also wonder how much larger the carbon footprint of computing is because of such philosophies.