The invention aims to provide a technology for processing an event by a website server. The technology comprises the following steps that: operating a main thread, suspending the main thread after the main thread creates a coroutine on the basis of the processing request of the event, and switching to the coroutine; operating the coroutine, creating a communication pipeline by the coroutine, processing the main business logic of the event by a working thread pool, suspending the coroutine, and switching to the main thread; operating the main thread again, continuing an event processing circulation by the main thread until a message that the working thread pool finishes processing is received, suspending the main thread, and switching to the coroutine, wherein the message is sent from the communication pipeline; and operating the coroutine again, processing the secondary business logic of the event by the coroutine, finishing the coroutine after processing is finished, and switching to the main thread. Therefore, other requests, which are subjected to parallel processing, of the main thread can be processed in time, and the average response time of the system is shortened.