GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ldmrtnll-arch/distributed-order-platform-qa: QA portfolio project for testing a distributed order platform with microservices, PostgreSQL, RabbitMQ, Playwright and TypeScript.

BranchesTags
Open more actions menu

Latest commit

 

History

83 Commits
83 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
contracts/events
contracts/events
 
 
docs
docs
 
 
infrastructure
infrastructure
 
 
packages
packages
 
 
performance
performance
 
 
scripts
scripts
 
 
services
services
 
 
tests
tests
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
compose.yaml
compose.yaml
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.base.json
tsconfig.base.json
 
 

Repository files navigation

Distributed Order Platform — QA Portfolio Project

CI

Overview

Portfolio laboratory for testing a distributed order-processing platform. It demonstrates practical Quality Engineering across REST APIs, independent databases, synchronous microservice integration, asynchronous events, controlled failures, performance, and CI/CD.

QA focus: API Testing · Integration Testing · Database Testing · Event-Driven Testing · Resilience Testing · Performance Testing · CI/CD

The badge reflects GitHub's live result. The workflow was validated successfully on the final project pull request.

Architecture

The client calls Order, which synchronously reserves Inventory and processes Payment. Every terminal Order transition creates an event in a transactional Outbox. A background publisher sends it through RabbitMQ and Notification validates and persists it idempotently.

Synchronous request flow
Client -> Order -> Inventory -> inventory_db
                -> Payment   -> payments_db

Asynchronous terminal-event flow
Order transaction -> orders_db + Transactional Outbox
                  -> RabbitMQ -> Notification -> notifications_db

The main path is POST /orders → Inventory reservation → Payment → CONFIRMED → Outbox → RabbitMQ → Notification. Inventory rejection ends as INVENTORY_REJECTED; Payment decline releases Inventory and ends as PAYMENT_DECLINED; a release failure ends as COMPENSATION_FAILED.

See System Architecture for state transitions, delivery semantics, topology, and trade-offs.

Quality scope

  • API contracts, validation, error safety, headers, and status codes;
  • PostgreSQL constraints and cross-database consistency;
  • idempotent replay and concurrent requests;
  • Inventory rejection, Payment decline, and compensation;
  • JSON Schema event contracts and correlation IDs;
  • Transactional Outbox, at-least-once delivery, duplicate consumption, ACK/NACK, and DLQ;
  • database, dependency, consumer, and RabbitMQ resilience;
  • K6 smoke, moderate load, and concurrency/idempotency performance;
  • GitHub Actions quality, functional, event, resilience, and performance pipelines.

Why these tests matter

  • Idempotency and concurrency checks prove that retries and simultaneous requests do not duplicate business effects.
  • Direct database assertions verify constraints and distributed side effects that an HTTP response alone cannot prove.
  • Business rejections are distinguished from technical outages because they require different states, responses, and recovery behavior.
  • Cross-service checks validate Order, Inventory, Payment, Outbox, RabbitMQ, and Notification as one observable workflow without assuming a global transaction.
  • Scenario-owned fixtures and finally cleanup keep parallel runs independent and preserve cleanup after assertion failures.
  • Bounded polling observes health and eventual consistency without fragile fixed waits.
  • Resilience suites are serial because they deliberately control shared ports, processes, and containers.
  • K6 thresholds provide a repeatable regression baseline for the documented laboratory profile, not a production capacity claim.

Technologies

TypeScript, Node.js, Express, Playwright, PostgreSQL, RabbitMQ, Docker Compose, JSON Schema/Ajv, K6, and GitHub Actions.

Quick start

Prerequisites: Git, Node.js 22+, npm 10+, and Docker Desktop or Docker Engine with Compose. K6 runs in Docker and does not need a global installation.

git clone https://github.com/ldmrtnll-arch/distributed-order-platform-qa.git
cd distributed-order-platform-qa
npm ci

Copy .env.example to .env, then start infrastructure and wait for real health checks:

Copy-Item .env.example .env
docker compose up -d
npm run infra:wait

On a POSIX shell, use cp .env.example .env instead of Copy-Item.

Static and functional validation:

npm run typecheck
npm run build
npm test
npm run test:events
npm run test:resilience

Performance validation requires Docker but no global K6 installation:

npm run test:performance:smoke
npm run test:performance:load
npm run test:performance:concurrency

Dedicated data commands are available as performance:prepare, performance:verify, and performance:cleanup. Stop infrastructure with npm run docker:down when it is no longer needed.

Test suites

Suite Purpose Execution model
Normal API and database behavior Parallel Playwright workers
Events Contracts, E2E delivery, duplicates, DLQ, broker/consumer recovery Serial, controlled processes
Resilience PostgreSQL and dependency outages Serial aggregate; infrastructure exclusive
Performance Smoke, paced load, concurrent idempotent pairs Docker K6; dedicated PERF-% data

The performance runner starts ports 3001–3004 itself, polls health, checks eventual consistency, stops only its child processes, and cleans its records and RabbitMQ queues in finally.

CI/CD

  • ci.yml runs typecheck/build, normal Playwright, event tests, and K6 smoke on pull requests and pushes to main.
  • resilience.yml runs the three destructive resilience suites serially through manual dispatch.
  • performance.yml runs smoke, load, and concurrency through manual dispatch.

Jobs use Node 22, npm ci, Docker Compose health polling, explicit timeouts, cancellation of superseded runs, failure-only infrastructure diagnostics, and unconditional Compose cleanup. Browser binaries are not installed because Playwright is used only as an API runner.

Reports

Playwright HTML reports and generated K6 summaries/service logs are uploaded as GitHub Actions artifacts for 10 days. Generated local output under artifacts/, playwright-report/, and test-results/ is ignored by Git.

Consolidated evidence is available in:

  • Performance Report
  • Test Execution Report
  • Test Strategy
  • Test Plan
  • Traceability Matrix
  • Risks and Limitations
  • Bug Reports
  • Project Status

Known limitations

The project does not claim production capacity or exactly-once delivery. It has no global event ordering, exponential-backoff/delay queues, real payment provider, real e-mail/SMS, automatic compensation retry, full distributed tracing, authentication, cloud deployment, or multi-node PostgreSQL/RabbitMQ. All performance results describe one local laboratory environment only.

About

QA portfolio project for testing a distributed order platform with microservices, PostgreSQL, RabbitMQ, Playwright and TypeScript.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.