Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the main differences between APE and Node.js?

Could anyone that has used both share his/her experience? What are the main differences and which one do you prefer? Thank you.

like image 864
mario.tco Avatar asked Jun 28 '11 21:06

mario.tco


2 Answers

Having spent some time developing with Node.js, I can't say that APE appears to be better than node. Based on sheer popularity, it seems that Node.js is probably the developer's choice -- and node.js appears to be more versatile as well.

Node essentially is you making a full on HTTP or TCP/IP. So, all of the mime type handling, data buffering, response headers, and server side routing are all things you'll have to do with your code. Node does streaming as well. I'm not sure about whether this is considered less problematic than normal ajax long polling at this point.

After googling around, I've found that people consider APE to be more of just a plain ol' push server, in which comet functionality is already there to be consumed, rather than Node, which would have you write your own. Don't be afraid of the prospect of writing things out with node though, they've got a very thorough documentation, and their methods are very easy to learn. I had some serious functionality written out in minutes.

Check this out also: http://groups.google.com/group/nodejs/browse_thread/thread/9d9b301479851b1f?pli=1

like image 40
Kristian Avatar answered Oct 12 '22 23:10

Kristian


Different socket.io vs APE:

  • socket.io is coded in javascript(node.js) while APE is coded in C. I believe that is a big difference when you want to contribute. Maybe because you like the project or maybe because you want some more functionality. I think it will be easier to contribute Socket.io because you program Javascript, which is easier to grasp according to a lot of people(I Agree, although C is also very cool language).
  • I believe socket.io supports a lot more browsers/transport compared to APE, but I am not sure. Socket.io information vs information from APE page:

APE Server is an Comet server implementing the POST and GET methods of the HTTP protocol. It does not replace a regular Web Server (such as Apache, Lighttpd or Nginx), however, the APE Server is only used for AJAX Push.

So I guess APE supports less transports then socket.io.


Like Raynos said it is difficult to compare those two products and I believe you should play with them both and then decide which one you like more.

Same Socket.io/APE:

  • You can both code in Javascript to communicate with the server. I think you will have more freedom using socket.io because everything is exposed via Javascript.

Experience:

I only have experience with socket.io and I like it a lot.

like image 162
Alfred Avatar answered Oct 12 '22 22:10

Alfred