Skip to content

Commit 718bea8

Browse files
authored
feat: Add ability to disable connection-pooling behavior for Dynamic Backends (#574)
1 parent c0c4378 commit 718bea8

File tree

15 files changed

+538
-260
lines changed

15 files changed

+538
-260
lines changed

documentation/docs/fastly:backend/Backend/Backend.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ new Backend(backendConfiguration)
6363
- Throws a [`RangeError`](../../globals/RangeError/RangeError.mdx) if the value is negative or greater than or equal to 2^32
6464
- `useSSL` _: boolean_ _**optional**_
6565
- Whether or not to require TLS for connections to this backend.
66+
- `dontPool` _: boolean_ _**optional**_
67+
- Determine whether or not connections to the same backend should be pooled across different sessions.
68+
- Fastly considers two backends “the same” if they're registered with the same name and the exact same settings.
69+
- In those cases, when pooling is enabled, if Session 1 opens a connection to this backend it will be left open, and can be re-used by Session 2.
70+
- This can help improve backend latency, by removing the need for the initial network / TLS handshake(s).
71+
- By default, pooling is enabled for dynamic backends.
6672
- `tlsMinVersion` _: 1 | 1.1 | 1.2 | 1.3_ _**optional**_
6773
- Minimum allowed TLS version on SSL connections to this backend.
6874
- If the backend server is not able to negotiate a connection meeting this constraint, a 503 response will be presented instead.

integration-tests/js-compute/fixtures/dynamic-backend/bin/index.js

Lines changed: 131 additions & 110 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)