Click here to Skip to main content
11,928,985 members (54,821 online)
Click here to Skip to main content
Add your own
alternative version


3 bookmarked

Google Web Engine API Channel vs. (comparing performance)

, 2 Apr 2013 CPOL
Rate this:
Please Sign up or sign in to vote.
Comparing performance channel api and on example of multiuser whiteboard


My purpose is to implement a mutliuser shared whiteboard for my university project. Such a type of application needs to communicate extensively with the server, so AJAX is not fast enough.  

The possibilities which I have found on the web were:

This small article is going to be about comparing the performance of  Channel API and 

Using the code 

I am not going to explain how the code is working, as it's pretty much explained in the Resources which I have used (see below).

If you would like to run the Google app engine implementation you would have to use the Google app engine (see their documentation here:

If you would like to run the implementation, you would need to use some hosting for it. I used free amazon's hosting for that (here is the explanation on how to configure your amazon instance for using node.js

The source code is attached to the article in zip archives. 


So, the code which I wrote for the Python+Channel API (hosted on google app engine) is almost the same as the one which I wrote for (hosten on Amazon micro instance), but performance of is better than performance Channel API. I suppose the reasons for that are the following:

  • Channel API supports only server->client communication. To send messages from client to server I had to use usual http requests through ajax. Meanwhile, supports two-way communication. 
  • Channel API doesn't  support broadcasting of messages (sending them to all clients). So I had to track current connected clients and send them the messages. 
One more thing which I have noticed:

It seems that if you send many messages through Channel API they don't always arrive in the order in which they hsd been generated. I am not sure about that, but the code, which I wrote using Channel API behaves a little bit buggy: instead of ending a line and starting a new line, it can connect the end of the first line with the beginning of the second line (this can happen especially if you draw quickly). Although, I don't have that problem with that same code while using 

Here is the link to demostration of the application's performance: 

As you will see, my the application is pretty slow and there is a lot to be done, but it's enough for comparison of Channel API and 

Resources used  


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Ievgen Ragulin
Czech Republic Czech Republic
No Biography provided

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.151126.1 | Last Updated 3 Apr 2013
Article Copyright 2013 by Ievgen Ragulin
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid