Request Filter for Event-Driven Web Server Load Reduction
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current web server technologies, such as AJAX and Comet frameworks, face inefficiencies in managing asynchronous requests and event-driven content delivery, particularly when dealing with large numbers of clients, leading to increased memory and processing demands.
Innovation Solution
A method and system for processing requests using a request filter that specifies criteria and conditions for modifications in a shared context, along with a connection pool management system to optimize the transmission of modifications to clients, allowing for efficient event-driven content delivery without unnecessary resource usage.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If the Comet framework is used to enable event-driven content delivery to multiple clients, then the ability to push events to clients is improved, but the memory and processing power requirements of the web server increase significantly
Solution Approach 1:
The patent segments the event distribution process by introducing request filters that selectively filter and route event notifications to specific clients based on criteria. Instead of broadcasting events to all clients, the system divides the distribution into targeted segments, reducing the overall processing load while maintaining event-driven capabilities for interested clients.
Solution Approach 2:
The patent introduces request filters as intermediary components between the event source and clients. These filters act as mediators that process and evaluate events before they reach clients, determining which clients should receive which events. This intermediary layer reduces server processing requirements by preventing unnecessary event transmissions to clients that don't meet filter criteria.
2Adaptability or versatility
If polling is used to enable clients to request content modifications, then the ability to update web content is improved, but the efficiency decreases due to unnecessary requests when no modifications have been made
Solution Approach 1:
The patent implements a feedback mechanism where the server pushes event notifications to clients when modifications occur, eliminating the need for continuous polling. Clients receive feedback about content changes through the event-driven system, allowing them to update only when necessary rather than continuously requesting changes.
Solution Approach 2:
The patent prepares the system in advance by establishing event listeners and request filters before content modifications occur. When changes happen, the pre-configured filters immediately process and route notifications to appropriate clients, eliminating the delay and inefficiency of polling-based updates.
3Speed
If the web server pushes messages to all clients simultaneously through unbroken connections, then real-time communication is improved, but the server load increases when handling large numbers of clients
Solution Approach 1:
The patent segments the client base into different groups based on request filter criteria. Instead of broadcasting to all clients simultaneously, the system divides the message distribution into targeted segments, pushing messages only to clients who match the filter criteria. This segmentation maintains real-time delivery speed for relevant clients while significantly reducing overall server processing power requirements.
Data Source
AI summary
The invention relates to a method for request processing. The method includes receiving an asynchronous request for a shared context from a first client, where a second client is subscribed to the shared context. The method further includes receiving a modification of the shared context from the second client and, determining, in response to receiving the modification, that the modification matches a criteria specified in a first request filter, where the first request filter is one of a number of request filters associated with the shared context. The method further includes obtaining the first request filter and after determining that a first condition specified in the first request filter is satisfied, initiating the transmission of the modification to the first client, where the modification is displayed at the first client.


