Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

performance.io

Avoid sync filesystem calls in request paths

Synchronous filesystem calls on request paths block the event loop and degrade latency.

#Metadata

Rule ID
ts.performance.no-sync-fs-in-request-path
Severity
high
Confidence
0.8
Languages
javascript, typescript
Presets
recommended, strict
Stability
stable
Applies to
block
Tags
performance, rules-catalog

#Why it matters

Synchronous filesystem calls on request paths block the event loop and degrade latency.

#Remediation

Refactor this path to avoid repeated work in hot execution paths.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.performance.no-sync-fs-in-request-path.rule.yaml.