RozMakc
All work
Engineering demoDemo data

Case study

Integration MonitorAPI integration monitoring

A monitoring system for external API integrations: it shows whether integrations are available, when they last synchronised, which errors occurred and what could not be processed.

Role
Product design, backend, frontend, demo adapters
Status
Live demo

Stack

  • Next.js
  • React
  • TypeScript
  • FastAPI
  • SQLAlchemy 2
  • PostgreSQL
  • HTTPX
  • Docker

Every number and event on this page comes from deterministic demo data. No external API is called.

integration-monitor / demo
Integration Monitor dashboard with statistics, a 14-day chart and recent events
Demo dashboard · desktop

Product experience

Screens captured from the demo

Real screenshots of the running demo, not mockups. Open an image to enlarge it.

Click an image to enlarge

Overview

What it does

The Integration Monitor watches several external APIs from one dashboard. For each integration it records availability checks, synchronisation runs, processed records and failures.

A failed run is kept instead of being overwritten: the error, the attempt number and the affected records stay visible, and a retry creates a new attempt so the history remains honest.

  • Dashboard with integration, health and error counters
  • Availability checks and manual sync runs
  • Per-integration check, sync, error and event history
  • Five deterministic demo scenarios triggered from the UI

Scenarios

Five demo scenarios

Each scenario runs through the same HTTPX request path as a real integration, against a mock transport that returns a controlled response.

  1. 01

    Successful sync

    The demo upstream returns five records; the run completes and the records are stored.

  2. 02

    External API error

    The upstream returns HTTP 503; the run fails, the integration is marked with an error and the failure is logged.

  3. 03

    Timeout

    The request raises a timeout before a response arrives; the error is recorded without hanging the UI.

  4. 04

    Retry

    A failing attempt stays in history, then a new attempt succeeds and processes the records.

  5. 05

    Recovery

    A lost connection is followed by a successful check and sync; the integration returns to a healthy state.

Architecture

How it fits together

A Next.js dashboard calls a FastAPI module through the same-origin /api/* rewrite. The module stores runs and events in PostgreSQL and reaches simulated upstreams through HTTPX adapters.

Demo visitor

browser

HTTPS

Next.js dashboard

client components

same-origin /api/* rewrite

FastAPI module

checks · syncs · stats

SQLAlchemy 2

PostgreSQL 16

im_ tables

HTTPX request

HTTPX demo adapters

mock transport

controlled response

Simulated upstream APIs

success · error · timeout

A retry is a new attempt; the failed run stays in history.

Component map of this repository

Engineering

Technical decisions

The parts that make the demo useful as an engineering example rather than a static mockup.

  1. 01

    Deterministic adapters, real HTTP code

    The demo uses HTTPX with a mock transport. Timeouts, HTTP errors and successful responses follow the same client code path as a real integration, while results stay reproducible and need no API keys.

  2. 02

    The run is the source of truth

    Every sync starts with a persisted run. Records, error details and events are written around it, so the dashboard counters and history are derived from stored data instead of in-memory state.

  3. 03

    Retries never rewrite history

    Retrying creates a new attempt with its own result and event. The original failure remains visible, which makes the recovery scenario and the error counters truthful.

  4. 04

    Demo data can be restored

    The seed is idempotent and a reset endpoint recreates the baseline. The UI labels every view as demo data, so visitors never mistake it for a production monitoring system.

Scope

What this demo does not do

The goal is to show the monitoring mechanics clearly, not to imitate a full observability platform.

  • No real third-party credentials and no live API calls.
  • No background scheduler: checks and syncs are triggered from the demo UI or API.
  • No alerting or notification channels yet.
  • Demo state is shared; anyone using the demo can change it, and reset restores the baseline.

Next step

Need an integration dashboard or a sync pipeline?

I build backends that make integrations observable: retries, error history, idempotency and clear operational views.

Discuss a project