---
title: ReusableSandboxOptions
url: https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/experimental/interface.ReusableSandboxOptions/
---

**Kind:** Interface  
**Module:** [experimental](https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/experimental/)  
**Package:** @fastly/js-compute 4.0.1  
**Since:** 3.40.0  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/experimental.d.ts#L116

## Properties

### maxRequests

**Type:** `number`  
**Flags:** optional  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/experimental.d.ts#L121

The maximum number of requests to handle with a single sandbox instance
before it is recycled. Default is 1. A value of 0 means no maximum.

### betweenRequestTimeoutMs

**Type:** `number`  
**Flags:** optional  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/experimental.d.ts#L126

The maximum time in milliseconds to wait for the next request before
recycling the sandbox. Default is up to the platform.

### maxMemoryMiB

**Type:** `number`  
**Flags:** optional  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/experimental.d.ts#L132

The maximum memory in MiB that the sandbox is allowed to use. If
exceeded, the sandbox will be recycled before the next request.
Default is no limit.

### sandboxTimeoutMs

**Type:** `number`  
**Flags:** optional  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/experimental.d.ts#L138

The maximum time in milliseconds that a sandbox is allowed to run
before it is recycled after handling the current request. Default is
no timeout.
