Stateless Application Session Management for Cloud Scalability

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Stateful computer applications face inefficiencies in cloud computing and software-as-a-service environments due to memory constraints and unpredictable user loads, leading to performance issues and resource congestion.

Innovation Solution

A method to transform stateful applications into stateless applications by generating a session identification, retrieving and restoring user-specific session variables from storage, and using functional computing logic to manage state, allowing for efficient resource utilization and scalability.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If stateful applications maintain user session state in main memory, then performance is excellent for predictable user loads, but memory constraints and resource congestion occur with unpredictable large numbers of concurrent users

Engineering Contradiction:
Improveapplication performanceVSAvoidmemory resource usage
Core Design Contradiction:
ProductivityVSQuantity of substance

Solution Approach 1:

The patent extracts the session state management from main memory to external storage systems. Session data is persisted in databases or file systems rather than being held in application server memory, allowing the application to scale to handle unpredictable numbers of concurrent users without memory constraints.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent introduces session management components and persistence layers as intermediaries between the application logic and user sessions. These components handle state retrieval and storage, decoupling the application from direct memory management and enabling scalable session handling.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If stateful applications allocate dedicated main memory for user sessions, then session state is maintained efficiently, but computing resources remain unutilized during long think times between requests

Engineering Contradiction:
Improvesession state maintenanceVSAvoidcomputing resource utilization
Core Design Contradiction:
ReliabilityVSLoss of energy

Solution Approach 1:

The patent implements a session state model where memory resources are released after each request is processed. Session data is persisted to external storage, allowing the application to discard in-memory state and recover resources for other users, eliminating the waste of dedicated memory during think times.

Inventive Principle:
Principle #34Discarding and recovering

Solution Approach 2:

The patent adopts a request-response cycle where session state is loaded from persistence, processed, saved back, and then released. This periodic pattern of state management ensures resources are only consumed during active request processing rather than being continuously allocated.

Inventive Principle:
Principle #19Periodic action

3Productivity

If stateful applications are used in cloud computing environments, then excellent performance is achieved for known user numbers, but scalability is limited due to memory constraints

Engineering Contradiction:
Improveapplication performanceVSAvoidscalability to concurrent users
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent creates a universal session management architecture that works for any number of concurrent users through external persistence. The same application code can serve from a few to many users by relying on the persistent storage layer rather than application-specific memory allocation, enabling true scalability in cloud environments.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent moves session state management from the vertical dimension (application server memory) to the horizontal dimension (external storage systems). This dimensional shift allows the application to scale horizontally across multiple servers rather than being constrained by vertical memory limits of individual servers.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

Data Source

PatentUS8751469B2System and method for scaling for a large number of concurrent users
Publication Date: 2014.06.10 SAP SE
  • US8751469B2 patent drawing
  • US8751469B2 patent drawing
  • US8751469B2 patent drawing

AI summary

A computer-implemented method for providing a stateful computer application to a multitude of users. The method may comprise generating a session identification (e.g., a primary key) for a user session for one user and retrieving a state representation using the session identification. The state of the stateful computer application may be described by a set of user-specific session variables that may be reconstructed from information contained in the state representation. The method may further comprise restoring the set of user-specific session variables using the retrieved state representation and calling functional computing logic based thereon. The functional computing logic may comprise the code of the stateful computer application and the call may provide an updated set of user-specific session variables. Upon completion of functions performed by the called functional computing logic, an updated state representation may be assembled from the updated set of user-specific session variables and stored.