ExternalLocationConfig
Defined in: src/external.ts:71
Configuration for external storage of large batches.
Properties
Section titled “Properties”compression?
Section titled “compression?”optional compression?: object;Defined in: src/external.ts:77
Optional zstd compression for uploaded data.
algorithm
Section titled “algorithm”algorithm: "zstd";Compression algorithm; only "zstd" is currently supported.
level?
Section titled “level?”optional level?: number;zstd compression level. Default: 3.
externalizeThresholdBytes?
Section titled “externalizeThresholdBytes?”optional externalizeThresholdBytes?: number;Defined in: src/external.ts:75
Minimum batch byte size to trigger externalization. Default: 1MB.
fetch?
Section titled “fetch?”optional fetch?: typeof fetch;Defined in: src/external.ts:92
Request implementation for external downloads. Defaults to global fetch.
maxDecompressedBytes?
Section titled “maxDecompressedBytes?”optional maxDecompressedBytes?: number;Defined in: src/external.ts:88
Maximum bytes accepted after decompression. Default: 16 * maxFetchBytes.
maxFetchBytes?
Section titled “maxFetchBytes?”optional maxFetchBytes?: number;Defined in: src/external.ts:86
Maximum compressed/on-wire bytes accepted from one fetch. Default: 256 MiB.
maxRedirects?
Section titled “maxRedirects?”optional maxRedirects?: number;Defined in: src/external.ts:90
Maximum redirects followed while fetching. Each target is revalidated. Default: 5.
storage
Section titled “storage”storage: ExternalStorage;Defined in: src/external.ts:73
Storage backend for uploading.
urlValidator?
Section titled “urlValidator?”optional urlValidator?: ((url) => void) | null;Defined in: src/external.ts:84
URL validator called before fetching. Throw to reject. Default: HTTPS-only.
