Distributed Message Handling via Session State Segmentation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Network providers face challenges in efficiently managing message handling resources due to the need for estimating future demand and investing in dedicated equipment, which is slow and reluctant, and conventional cloud networks often fail to meet execution demands.
Innovation Solution
A distributed message handling system that uses session states to represent session contexts, allowing dynamic allocation of resources based on demand by distributing message handling to multiple state machines, enabling efficient resource allocation and meeting application execution demands.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If dedicated equipment is used to service applications, then reliability is improved, but adaptability deteriorates because resources cannot be dynamically adjusted to changing demand
Solution Approach 1:
The system segments message handling into discrete session states that can be independently managed and distributed across multiple servers. Each session state is a self-contained unit that can be moved, replicated, or scaled independently, enabling both reliability through redundancy and adaptability through flexible resource allocation.
Solution Approach 2:
The session state representation creates a universal data structure that can be handled by any server in the distributed system. This universal format allows any server to process any session state, enabling dynamic load balancing and resource allocation while maintaining service reliability through multiple capable handlers.
2Adaptability or versatility
If conventional cloud networks are used, then adaptability is improved through dynamic resource adjustment, but productivity deteriorates because execution demands are not met
Solution Approach 1:
The system implements dynamic session state migration and load balancing where session states can be moved between servers based on real-time conditions. This dynamic approach maintains adaptability while improving productivity by ensuring session states are always processed by appropriate servers with available resources and correct execution context.
Solution Approach 2:
The session state acts as an intermediary that carries all necessary execution context between servers. This intermediary mechanism enables seamless transfer of session handling between different cloud resources, maintaining both adaptability for resource allocation and productivity by preserving execution state and avoiding restart overhead.
3Reliability
If dedicated equipment is purchased in advance, then reliability is improved, but loss of time occurs because demand estimation and equipment provisioning take months
Solution Approach 1:
The system performs preliminary actions by pre-defining session state structures and server capabilities, but delays actual resource provisioning until needed. Session states are created on-demand with all necessary execution context, eliminating months-long provisioning delays while maintaining reliability through immediate availability of required resources.
Solution Approach 2:
The distributed message handling system enables self-service provisioning where servers automatically accept and process session states as they arrive. No manual equipment provisioning or configuration is needed - the system self-organizes to handle incoming session states using available resources, eliminating provisioning time while maintaining service reliability.
4Adaptability or versatility
If session states are distributed across multiple servers, then adaptability is improved through dynamic resource allocation, but device complexity increases
Solution Approach 1:
The system uses copying of session states between servers rather than complex distributed data structures. Each session state is a self-contained copy that can be independently handled by any server. This simple copying mechanism achieves high adaptability for resource allocation while minimizing system complexity by avoiding sophisticated distributed consensus or synchronization protocols.
Data Source
Figure 1
Figure 2
Figure 3
AI summary
The distributed message handling system is created by using session states to represent the plurality of session contexts in the message handling system. The session states are flat representations of the session context which completely describe the session. Utilizing the session states to handle system message requests allows the message handling system to distribute the handling of the message requests to a plurality of state machines. Advantageously, the distributed messaging system allows the message handling system to dynamically allocate message handling resources to application instances based on demand. Such dynamic allocation allows providers to efficiently allocate resources to meet demand while meeting application execution demands.