1. A method of handling events received at sockets in a computer server configured to serve clients, the method comprising: executing a polling module configured to poll server sockets to detect events received at said sockets; registering a first plurality of sockets with said polling module, wherein each of said sockets in said first plurality of sockets is associated with an event consumer; notifying a first event consumer associated with a first socket in said first plurality of sockets when a first event is received at said first socket; and invoking a task configured to facilitate handling of said first event; wherein a first processor thread is shared among said first plurality of sockets for said polling; and wherein one or more processor threads are allocated to the execution of tasks invoked by said event consumers.