Resource-Type Mix and Its FHIR Capacity Implications

Two FHIR deployments with the same total RPS can size wildly differently, and the reason is almost always the resource-type mix. A workload dominated by Patient reads runs on modest hardware and stays cheerful. A workload dominated by Observation searches saturates the same hardware at half the volume. Naming the mix explicitly is what turns capacity sizing from guesswork into decision.

The trick is to treat the mix as a first-class input. For related walkthroughs, more on FHIR for healthcare teams collects the surrounding material.

Not All Reads Are Equal

Patient reads are cheap. The resource is small, cache hit rates are high, and the query path is short. Observation reads are more expensive because the response can carry hundreds of resources per call and the search often involves date ranges that fall through the index.

Encounter reads sit somewhere in the middle. MedicationRequest and Condition reads behave like Observations at scale. The mix ratios among these resource types determine the shape of the load, not the total RPS. A pass through the site's FHIR node planner brackets CPU and memory by resource-type mix, which is what actual capacity planning needs.

Writes Follow Different Rules

Writes carry per-resource-type cost signatures too. A Patient write is expensive because it triggers subscription cascades to every downstream system that watches the patient identity. An Observation write is comparatively cheap because it fires fewer downstream events.

Bundle writes explode into per-entry writes plus their cascades. The mix of resource types inside typical Bundles matters for sizing the write path. For the wider dimension question, storage, CPU, memory: which dimension you actually run out of first covers the failure signature by dimension.

Reference Fan-Out Is a Mix Signal

Some resource types carry heavy internal references. QuestionnaireResponse points at the Questionnaire, at the Patient, at the Encounter, and often at a set of Observations. Each reference is a potential extra call in a chatty client, or a _include cost in a batched one.

The mix should account for the fan-out. Resource types with heavier fan-out cost more per request than their raw size suggests.

Caching Efficiency by Type

Reference resources (CodeSystems, ValueSets, StructureDefinitions) cache well: they change slowly and are read constantly. Patient-scoped resources cache poorly because most reads happen once per patient per session and eviction is fast.

A workload dominated by reference reads is close to free on the backend. A workload dominated by patient-scoped reads is expensive per request. For the input list that drives the ratio calculation, capacity planning for a FHIR server: the inputs nobody documents covers the source of the mix numbers.

Documenting the Mix Explicitly

The single move that shifts sizing conversations is to write the mix into the capacity plan by percentage. Patient thirty percent, Observation twenty-five percent, Encounter fifteen percent, MedicationRequest ten percent, others twenty percent. The specific numbers do not need to be exact; naming them makes the plan defensible.

Mix numbers change over time as workflows onboard. The disciplined pattern is to review the mix quarterly against actual telemetry.

Staging Should Mirror the Mix

Staging environments that use synthetic traffic with a uniform mix stop predicting production. Every load test in staging should replay a realistic mix, not an average. For the specific staging-versus-prod alignment, sizing a staging environment that predicts prod behavior covers the operational method.

Resource-type mix is the most under-documented input in FHIR capacity planning. Deployments that name it explicitly plan capacity that survives. Deployments that treat all requests as equal keep discovering that they are not.

Op-art-moire diagram of a resource-type mix pie divided into wedges labelled Patient, Observation, Encounter, MedicationRequest, Bundle, with magenta dot-grid annotations naming CPU-heavy versus memory-heavy segments on a stark white background

Sources