Skip to main content

FHIR_CONNECTIONS_URL_POOL_SIZE

Applies to

  • Community v3.1.0+
  • Enterprise v3.1.0+

Default

10

Examples

# Keep up to 10 URL/config combinations cached
FHIR_CONNECTIONS_URL_POOL_SIZE=10

# Increase when many dynamic URL targets are used
FHIR_CONNECTIONS_URL_POOL_SIZE=25

Purpose

Sets the maximum number of URL-based FHIR client instances retained in the LRU pool used by $useFhirServer("https://...", config?) calls.

Notes

  • The pool key includes the URL plus the effective inline config: auth mode, credentials, FHIR version, and timeout.
  • Different credentials, FHIR versions, or timeouts for the same URL use separate cache entries.
  • Lower values reduce memory use but can increase client recreation.
  • Higher values reduce recreation for varied URL/config traffic but increase memory use.
  • For behavior details and usage patterns, see Named FHIR Connections.