Skip to content

Program 02 · Module 07 of 9

Module 07: Performance and Reliability Investigation

Investigate slow or fragile behaviour with measurements. You profile before optimising, read logs and metrics, reason about failure modes and make targeted improvements with proof.

Suggested study time
6 hours
Prerequisites
Modules 1 to 5.; A running system or a realistic local environment.

Sign in to track your progress. Every lesson stays free to read without an account.

Learning outcomes

By the end of this module you will be able to:

  • Define a measurable symptom and a target before changing anything.
  • Profile and read logs and metrics to locate the cost.
  • Identify failure modes such as timeouts, retries and missing idempotency.
  • Make a targeted change and show before and after measurements.

Lessons

  1. 7.1

    Measuring Before Optimising

    Define the symptom and gather a baseline before any change.

    40 min
  2. 7.2

    Profiling and Reading the Evidence

    Find where time and resources go with profilers, logs and metrics.

    45 min
  3. 7.3

    Database and Query Problems

    Spot repeated queries, missing indexes and heavy reads, and confirm them with query plans.

    45 min
  4. 7.4

    Failure Modes, Timeouts and Retries

    Reason about what happens when a dependency is slow or down.

    40 min
  5. 7.5

    Proving an Improvement

    Show that a change helped, with measurements you can repeat.

    35 min

About 3 h 25 min of lessons in total.

Practical assignment

Investigate one bottleneck

Find one slow or fragile path in your repository or a sample application. Measure it, explain the cost, and improve it.

Deliverables

  • A symptom statement with a baseline measurement and method.
  • Evidence locating the cost, such as a profile or query plan.
  • A targeted change with tests.
  • Before and after measurements and a note on what you did not measure.

Validation checklist

Use this to check your assignment before you move on.

Knowledge check

  1. 1.An assistant suggests adding caching to speed up a page. What should come first?
    Show the answer and explanation

    Answer: B. Without a measurement you may cache the wrong thing and add staleness for no gain. Trying it first is the tempting route, and it cannot show where the cost is.

  2. 2.Why does a retry need care in a payment-style operation?
    Show the answer and explanation

    Answer: A. Without idempotency, a retried request can duplicate its effect. The other options are not generally true.

PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.