This repository contains various self-contained demo applications that showcase different programming languages, frameworks, and deployment patterns. Each demo is designed to work with Speedscale's traffic recording, mocking, and replay capabilities.
For contributor guidance, see Repository Guidelines.
Demos are Kubernetes-only. Use the scenarios/ directory:
-
Monolith – Run a single app in K8s: Java, .NET, or Node.js via each project’s manifests (
kubectl apply -f java/manifest.yaml, etc.). -
Microservices – Java + .NET + Node behind one gateway in namespace
demo-stack: from repo root,./scenarios/microservices/k8s/deploy-minikube.sh. The gateway is version-managed like other demos (make update-version,make docker-gateway). -
eBPF language validation – Scope for validating eBPF traffic capture (PHP, .NET, Node.js, Java) over HTTP/HTTPS on Rancher Desktop.
-
LLM simulation demo app plan – Plan for a Node.js frontend + Python backend demo that exercises multiple LLM providers and runtime simulation scenarios.
Companion code for the Getting Started with Mocks and Testing blog series. One package notifier in Java, Node.js, Go, and Python, grown one post at a time.
A Spring Boot application that integrates with external APIs (SpaceX and US Treasury). Features JWT authentication, health checks, and comprehensive API endpoints for testing traffic capture and replay scenarios.
A complete JWT-based authentication microservice built with Spring Boot and MySQL. Includes user registration, login, token validation, refresh tokens, and audit logging. Perfect for demonstrating secure API interactions and database traffic patterns.
A Node.js Express application with multiple endpoints that call external APIs including GitHub, SpaceX, NASA, and httpbin. Includes comprehensive documentation for local, Docker, and Kubernetes deployment scenarios.
An IP distance calculator service that uses the ipstack API to determine geographical distances between IP addresses. Demonstrates API integration patterns and mathematical calculations in Go.
A Go users and orders REST API on MySQL 8.4 that uses server-side prepared statements and an explicit transaction. It exercises proxymock's MySQL capture, mocking, replay and database load testing.
A Flask application that proxies SpaceX API data, providing a simple example of Python-based API integration suitable for traffic capture and replay testing.
A PHP Slim Framework application that proxies SpaceX API data, demonstrating modern PHP 8.3 features and API integration patterns suitable for traffic capture and replay testing.
A Node.js/Express IP distance API similar to the Go version, featuring ipstack integration, haversine distance calculations, and optional DynamoDB caching with AWS SDK v3.
A .NET 8.0 minimal API weather service that integrates with OpenWeather API. Features health checks, Swagger/OpenAPI documentation, Docker support, Kubernetes manifests with client traffic generator, and comprehensive test suite. Demonstrates modern C# patterns and external service integration.
A .NET 8 booking API (offers, cart, fare pricing, checkout, record locators) backed by three partner HTTP services and Redis. Scripts record its traffic, replay it with every dependency mocked, catch a one-line pricing regression field by field, inject payment gateway faults, and run a load test. Includes a committed recording, so mock and replay need no Redis or partner services. Start with the hands-on training workbook.
A Kubernetes-based demo featuring multiple nginx services (gateway, payment, user) that simulate a microservices architecture. Perfect for demonstrating service mesh traffic patterns.
A GitOps deployment solution using ArgoCD for multi-cluster Kubernetes deployments. Shows how to manage application deployments across different cluster environments.
Contains AWS-specific demos including DynamoDB integration examples, demonstrating cloud service integration patterns.
This repository uses centralized version management through a root-level VERSION file and Makefile. All projects (Java, Java-Auth, Node) inherit their version from this central source.
# Show current version
make version
# Update to a specific version (updates all manifests, pom.xml, package.json)
make update-version VERSION=1.2.3
# Automatically bump to next patch version
make bump-version
# Validate that all files use consistent versions
make validate-version
# Create a new release with git tag
make release VERSION=1.2.3When you update the version, the following files are automatically synchronized:
- Kubernetes Manifests: All Docker image tags in
**/manifest.yamlandk8s/**/*.yaml - Maven Projects: Project versions in
pom.xmlfiles (preserves dependency versions) - Node.js: Version in
package.json - Documentation: Version references in markdown files
- CI/CD: GitHub Actions uses the centralized version for Docker builds
# Check current state
make validate-version
# Bump to next version (e.g., 1.0.9 → 1.0.10)
make bump-version
# Or set specific version
make update-version VERSION=2.0.0
# Create release
make release VERSION=2.0.0You can also manually edit the VERSION file and run make update-version VERSION=$(cat VERSION) to sync all files.
Each project directory contains its own Makefile for local development convenience:
java/Makefile- Java service development commandsjava-auth/Makefile- Java Auth service development commandsnode/Makefile- Node service development commands
The root Makefile provides centralized commands that delegate to project Makefiles:
# Root commands (work from repository root)
make docker-java-auth # Builds java-auth Docker images
make build-java-auth # Builds java-auth application
make test-java-auth # Runs java-auth tests
# Project commands (work from project directory)
cd java-auth
make local # Run service locally
make compose # Run with Docker Compose
make client # Run test client
make kube # Deploy to KubernetesFor development, you can work directly in project directories:
cd java-auth
make help # See all available commands
make local # Start the service locally
make client # Test with clientOr use root commands for CI/automation:
make build-java-auth # Build from root
make docker-java-auth # Build and push images from rootThe LLM frontend and microservices gateway override transitive picomatch with the exact npm alias npm:@ryotsu/picomatch@4.0.7-a. All upstream releases through 4.0.7 are affected by CVE-2026-112366, with no patched upstream release as of November 17, 2026. The fork adds a safeguard against single-branch repeated wildcard extglobs. Its published JavaScript was compared against upstream 4.0.7, and the lockfiles pin its integrity hash. This introduces a third-party fork and changes some glob matching behavior; it is an interim dependency until an upstream release addresses the advisory.
The Node security job audits every listed demo and runs node --test scripts/test-picomatch-security.cjs. After installing both affected projects with npm ci, run that command from the repository root to check each installed matcher against bounded denial-of-service probes and ordinary glob matches. The frontend Jest suite and production build exercise the build tooling; gateway routing requires a separate smoke check.