Sunteți pe pagina 1din 11

Comet is a web application model in which a long-poll HTTP request allows a web server to push data to a browser without

the browser explicitly requesting it. Comet can be used to create real time webapplications

A system built on top of V8

V8 is Google's open source, high performance JavaScript engine. It is written in C++ and is used in Google Chrome, Google's open source browser. V8 compiles and executes JavaScript source code, handles memory allocation for objects, and garbage collects objects it no longer needs. V8 team is led by Lars Bak, one of the leading VM engineers in the world with 20 years of experience in building VMs

Introduces:

Non-blocking IO ( non-blocking can handle more request per second and use a lot less memory ) Ability to do system calls Javascript libraries Module system Can handle thousands of simultaneous connections per second.

Implementing comet:

Long polling works for most parts. is more expensive and problematic than streaming Streaming without WebSockets: Very problematic due to proxies and firewalls Streaming with WebSockets (HTML5): Makes comet trivial on both client and server side

The non-blocking nature makes node.js a good fit for comet and next generation realtime webapplications It fits our project requests.

Q&A

S-ar putea să vă placă și