Sandboxed Script Execution Thread for Responsive UI

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In remote computing environments, ensuring connectivity and operability between geographically dispersed networks and computing resources is challenging, especially as network size and complexity grow, due to frequent connection errors and infrastructure costs.

Innovation Solution

A flexible scripting platform provided by a computing resource service provider enables users to create, modify, and execute scripts for troubleshooting, allowing asynchronous operations and data visualization, with features like sandboxed thread execution and API calls for obtaining information from virtual machine instances, facilitating user interaction and error resolution.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If scripts are executed in the main thread of the application, then the script execution can directly interact with user interface elements, but the user interface becomes unresponsive during script execution

Engineering Contradiction:
Improveuser interface responsivenessVSAvoidscript execution time
Core Design Contradiction:
Ease of operationVSLoss of time

Solution Approach 1:

The patent divides the application into multiple threads: a main thread that handles user interface operations and keeps it responsive, and a separate worker thread that executes scripts asynchronously. This segmentation allows the user interface to remain operational while scripts run in the background without blocking user interactions.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a thread communication mechanism as an intermediary between the worker thread and main thread. The worker thread executes scripts and communicates results back to the main thread through defined communication channels, allowing asynchronous script execution while maintaining UI responsiveness.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Adaptability or versatility

If user-submitted scripts are executed without restrictions, then the scripting platform is highly flexible, but the system becomes vulnerable to malicious code and security breaches

Engineering Contradiction:
Improvescripting flexibilityVSAvoidsystem security
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The patent introduces a sandboxed execution environment as an intermediary layer between the script execution engine and the host system. This sandbox restricts script access to specific APIs and resources while allowing flexible script execution within those boundaries, preventing malicious code from compromising system security.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent implements different execution contexts with varying levels of access permissions. The sandboxed environment provides localized security restrictions specific to script execution, while the rest of the system maintains full functionality. This allows flexible scripting where needed while enforcing security constraints in critical system areas.

Inventive Principle:
Principle #3Local quality

3Difficulty of detecting and measuring

If comprehensive logging and monitoring are implemented for script execution, then troubleshooting capability is improved, but system performance and execution speed decrease

Engineering Contradiction:
Improveerror detection capabilityVSAvoidscript execution speed
Core Design Contradiction:
Difficulty of detecting and measuringVSProductivity

Solution Approach 1:

The patent implements selective logging that captures only relevant execution data and error conditions rather than logging all script operations. This partial monitoring approach provides sufficient troubleshooting information for detecting and diagnosing issues while minimizing the performance overhead associated with comprehensive logging.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS9785489B1Secure script execution using sandboxed environments
Publication Date: 2017.10.10 AMAZON TECH INC
  • US9785489B1 patent drawing
  • US9785489B1 patent drawing
  • US9785489B1 patent drawing

AI summary

A scripting platform may provide an isolated processing environment for executing user generated scripts. The isolated processing environment may be a separate execution thread of an application of the scripting platform. The separate execution thread may be configured to transmit requests over a network in order to obtain information corresponding with the execution of the script. Furthermore, the separate execution thread may be configured to provide the obtained information to a main thread of the application by at least serializing the obtained information.