MetaCredo.Check.Warning.BlockingInPlug (MetaCredo v0.1.0)

View Source

Detects blocking operations (HTTP calls, long DB queries, file I/O) inside Plug middleware functions (call/2, init/1) or Phoenix controller plugs. Blocking in the request pipeline degrades throughput for all concurrent requests.

Move blocking work to a cached value, background task, or async middleware pattern.

Category: Warning / Priority: high