Observability and Operational Architecture

Watching technical and business health: logs, metrics and traces, a business dashboard, meaningful alerts and operational runbooks.

  • Intermediate to advanced
  • About 15 minutes
  • Includes an exercise and a knowledge check

The concept How will Apex know the system is working?

A platform can return successful responses and still be failing the business. Ingestion works, messages enter the queue, workers process them, but settlement records are not arriving. The application looks healthy while the business process is broken. Observability must cover both technical health and business health.

At the top, a wide photo of a mission control room with consoles facing large wall screens. Below, two dashboards for the same morning, with example values. Technical health, all green: API latency normal, error rate low, workers all healthy, queue depth normal. Business health, red: payments received today normal, but the settlement file due at 6:00 a.m. not received, payments awaiting settlement rising and exceptions older than two days growing. Every server can be healthy while the business process is failing.
Mission control watches the machines and the mission. So must the Apex operations team.

Three signals Logs, metrics and traces

SignalExplainsApex examples
LogsWhat happenedNotification received, validation failed, duplicate detected, reconciliation attempt completed, exception created. Structured, with no sensitive data.
Technical metricsHow the machines behave over timeRequest latency, error rate, queue depth, consumer lag, database connections, CPU and memory, retry count
Business metricsHow the business process behavesPayments received and reconciled, unmatched transactions, settlement delay, exceptions waiting, average resolution time
TracesHow one request moves through componentsAPI gateway, payment ingestion, outbox publisher, queue, reconciliation worker, database
A distributed trace for one payment, correlation ID CORR-20001, drawn as a waterfall with example durations. API Gateway 900 ms; Payment Ingestion 780 ms with a 480 ms database transaction; the provider gets ACCEPTED at about 900 ms. Later, the Outbox Publisher 200 ms, the queue wait 2900 ms, the Reconciliation Worker 1200 ms with a 250 ms database write. The longest bar is the queue wait. The same correlation ID goes on every log line, metric label and span.
A trace follows one payment through every component. Example durations, for teaching.

For finance Business observability

A finance dashboard shows total payments received today, payments awaiting settlement, payments reconciled, unmatched payments, exceptions needing investigation, processing delay and exception aging. These tell business teams whether the platform is doing its job, not just whether it is running.

Wake people up wisely Alerts

  • Queue depth exceeds an agreed threshold.
  • Processing delay exceeds the business target.
  • Settlement ingestion has not completed by the expected time.
  • The reconciliation error rate rises unexpectedly.
  • The dead-letter queue contains messages.
  • Database storage or connections approach a limit.
  • A privileged manual adjustment occurs.

Be ready Operational runbooks

A runbook helps an operator respond to a known condition. Scenario: the reconciliation queue is growing.

  1. Check queue depth and message age.
  2. Check worker health.
  3. Review processing error metrics.
  4. Inspect representative failed messages.
  5. Check database availability and connection usage.
  6. Decide whether the issue is temporary or persistent.
  7. Scale or restore processing capacity where appropriate.
  8. Replay eligible messages under the approved procedure.
  9. Confirm the queue returns to its normal range.
  10. Record the incident and its customer impact.

Practice Design the operations

Practical exercise

Exercise 09: observability and operations design

Write the operational architecture for Apex.

  1. A logging strategy and a metrics catalogue.
  2. A distributed tracing plan and business dashboards.
  3. Alert definitions, each with an owner.
  4. Three runbooks and an incident escalation model.
Show a sample alert and runbook title
  • Alert: settlement file not received by the agreed time; owner, platform on-call; severity, high; first step, check the file transfer log, then contact the bank.
  • Alert: dead-letter queue not empty; owner, application team; first step, inspect one message and classify the failure.
  • Runbooks: reconciliation queue growing; settlement file late; dead-letter messages present.

3 questions

Check your understanding

1. Which is an example of business observability?
2. What connects the logs, metrics and spans of one payment?
3. What should every alert have?
Answer every question to submit.

What you can do now

  • Plan logs, technical and business metrics, and traces.
  • Design a finance dashboard that shows business health.
  • Define owned, meaningful alerts.
  • Write an operational runbook.