User-Based Service Isolation via Container Segmentation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing systems face issues with untimely user handover, leading to functional faults due to incorrect user data processing, as service instances are global and delayed in updating user settings, causing errors in data display and processing.
Innovation Solution
Implementing user-based service isolation by constructing a user object and service container upon login, binding the user object to the container, and creating a service instance for each user, which is destroyed upon logout, thereby isolating data processing and preventing incorrect user data access.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Device complexity
If global service instances are used for user data processing, then system complexity is reduced, but functional faults occur due to untimely user handover and incorrect user data processing
Solution Approach 1:
The patent segments the global service instance into user-specific service instances, where each user has their own isolated service instance that processes only their data. This segmentation eliminates the functional faults caused by global instances while managing user-specific state independently.
Solution Approach 2:
The patent introduces a service instance factory as an intermediary that creates and manages user-specific service instances. This factory acts as a mediator between the user and the service instances, ensuring proper initialization and cleanup of user-specific resources.
2Reliability
If user-specific service instances are created for each user, then functional faults are eliminated, but system complexity increases
Solution Approach 1:
The patent creates a universal service instance factory that handles multiple users through a standardized interface. This factory can create, manage, and clean up service instances for any user following the same pattern, reducing complexity through reuse rather than creating separate management logic for each user.
Solution Approach 2:
Each user-specific service instance is self-contained and manages its own state and resources independently. The service instances automatically clean up their own resources when the user logs out, reducing the need for complex external management mechanisms.
3Use of energy by moving object
If service instances are maintained globally, then resource utilization is high, but user data isolation is compromised leading to security risks
Solution Approach 1:
The patent segments the shared service instance into isolated user-specific instances, where each instance can only access and process its own user's data. This segmentation provides automatic data isolation and security while allowing efficient resource usage within each user's context.
Solution Approach 2:
Each service instance is configured with local quality specific to its user, including user-specific settings, preferences, and data access permissions. This local configuration ensures that each instance operates with the appropriate user context while maintaining resource efficiency.
Data Source
AI summary
Embodiments of the present disclosure provides a user-based service isolation method and apparatus, a device and a medium. One specific implementation of the method includes: in response to login of a target user, constructing a user object corresponding to the target user, constructing a service container, binding the user object to the service container, and creating, in the service container, a service instance corresponding to the target user; and in response to logout of the target user, destroying the user object and the service container. By means of the method, the problem of a functional fault resulting from untimely user handover can be solved.


