LESSON 18 / 22·2 min readIntermediate

What should I check for slow APIs, memory growth or intermittent 500s?

Try code in the playground
01 Understand02 Recall03 Prepare

Understand the concept

Slow responses, growing memory and 500 errors are symptoms, not root causes. A useful investigation connects each symptom to a specific route, instance, input or dependency. Comparing healthy and unhealthy requests often narrows the problem faster than changing settings blindly.

Important ideas

  • Slow API: separate app time, pool wait, DB time and external API time.

  • Memory growth: compare heap snapshots; inspect caches, listeners and large payloads.

  • 500s: group errors by route, app instance and deployment; use request IDs to trace failures.

  • Check release timing and resource saturation, but keep multiple hypotheses until measurements distinguish them.

PAUSE & RECALL

Can you explain it without the notes?

What should I check for slow APIs, memory growth or intermittent 500s?

Use your own words. Explain an example and one limitation before checking the explanation.

Check your explanation

Slow responses, growing memory and 500 errors are symptoms, not root causes. A useful investigation connects each symptom to a specific route, instance, input or dependency. Comparing healthy and unhealthy requests often narrows the problem faster than changing settings blindly.

CONNECT IT TO YOUR INTERVIEW

Turn this concept into a clear answer.

  • State what evidence would confirm or reject your first hypothesis, then verify the fix with the same measurement.
Practice this concept
YOUR NEXT STEP

Keep connecting the ideas.

Next lesson: What if the event loop, DB pool or third-party API is stuck?

Adapted from 02_NODE_EXPRESS_HTTP.md · “What should I check for slow APIs, memory growth or intermittent 500s?”. Examples are study fragments; framework behavior can depend on your version.