Session Pooling for Message Context Reuse

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In computer networks handling large quantities of messages, the overhead of creating and managing sessions for each message response leads to slowed processing times due to resource allocation and context initialization, especially in stateless applications where context information is not retained.

Innovation Solution

Implementing a session pooling mechanism where application contexts are saved and reused, reducing the need for repeated resource allocation and initialization by maintaining device and user-specific information in a pool for subsequent messages.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of time

If a new session is created for each message response, then session management is simple and stateless, but message processing time increases due to repeated context initialization

Engineering Contradiction:
Improvemessage processing timeVSAvoidsession management complexity
Core Design Contradiction:
Loss of timeVSDevice complexity

Solution Approach 1:

The patent applies preliminary action by pre-initializing application contexts and storing them in a pool before messages arrive. When a message is received, the system retrieves a pre-initialized context from the pool rather than creating a new one, thereby performing the context initialization action in advance to reduce processing time.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements universality by creating a shared context pool that serves multiple messages and multiple clients. A single initialized context can be reused across different messages from the same device type, making the context initialization process universal rather than message-specific, thus reducing repeated work.

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

2Productivity

If application contexts are cached and reused for subsequent messages, then message processing speed improves, but memory resource consumption increases

Engineering Contradiction:
Improvemessage processing throughputVSAvoidmemory resource consumption
Core Design Contradiction:
ProductivityVSQuantity of substance

Solution Approach 1:

The patent applies local quality by organizing the context pool according to device types rather than creating a single universal pool or individual contexts for each message.contexts are grouped and managed locally by device type, allowing efficient retrieval and reuse while controlling memory usage through targeted caching.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent uses parameter changes by dynamically adjusting the pooling behavior based on device types and message patterns. The system changes the state of context management from individual-per-message to pooled-per-device-type, optimizing the balance between processing speed and memory consumption based on specific operational parameters.

Inventive Principle:
Principle #35Parameter changes

3Loss of time

If context information is retained between messages, then repeated context initialization is avoided, but stateless application architecture is compromised

Engineering Contradiction:
Improvecontext initialization timeVSAvoidstateless application flexibility
Core Design Contradiction:
Loss of timeVSAdaptability or versatility

Solution Approach 1:

The patent applies segmentation by dividing the application context into message-independent portions (stored in the pool) and message-specific portions (created fresh for each message). This segmentation allows retention of stable context elements while maintaining stateless processing for each individual message, preserving architectural flexibility.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The context pool acts as an intermediary between the stateless message processing architecture and the need for context retention. The pool mediates by providing pre-initialized contexts without requiring the application itself to maintain state, thus preserving the stateless architecture while enabling context reuse.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS9838505B2Application based context pooling
Publication Date: 2017.12.05 SAP SE
  • US9838505B2 patent drawing
  • US9838505B2 patent drawing
  • US9838505B2 patent drawing

AI summary

A method may receive a message from a first client associated with a first device type. A first application context associated with a session may be prepared for a response to the message based on the first device type. The response to the message may be prepared and the response may be transmitted to the first client via the session. The first application context associated with the session may be cleansed. Furthermore, the first application context associated with the session may be stored in a pool.