Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 34 additions & 17 deletions reference-apps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,33 +403,50 @@ curl http://localhost:8003/health/all
**Location:** `reference-apps/rust/`
**Port:** 8004 (HTTP), 8447 (HTTPS)
**Pattern:** High-performance async with Actix-web
**Status:** ✅ **Feature-Complete (~95% parity)**

**What it demonstrates:**
- ✅ **Actix-web framework** - Fast, async web framework with all 21 endpoints
- ✅ **Type safety** - Rust's compile-time guarantees preventing runtime errors
- ✅ **Zero-cost abstractions** - Performance without overhead
- ✅ **Full infrastructure integration** - Vault, PostgreSQL, MySQL, MongoDB, Redis, RabbitMQ
- ✅ **Health checks** - Comprehensive monitoring for all infrastructure services
- ✅ **Database operations** - PostgreSQL, MySQL, MongoDB query examples
- ✅ **Cache operations** - Redis GET/SET/DELETE with TTL support
- ✅ **Message queuing** - RabbitMQ publish and queue management
- ✅ **Redis cluster** - Cluster nodes, slots, and info endpoints
- ✅ **Vault secret management** - Secure credential retrieval with AppRole support
- ✅ **Prometheus metrics** - HTTP request metrics collection
- ✅ **CORS middleware** - Properly configured cross-origin resource sharing
- ✅ **Async/await patterns** - Modern Rust async programming with Tokio
- ✅ **Error handling** - Comprehensive Result-based error handling
- ✅ **Complete infrastructure integration** - All services: Vault, PostgreSQL, MySQL, MongoDB, Redis, RabbitMQ
- ✅ **Type safety** - Rust's compile-time guarantees preventing entire classes of bugs (null pointers, race conditions, memory safety)
- ✅ **Zero-cost abstractions** - Performance without overhead (async I/O with Tokio)
- ✅ **Memory safety** - Guaranteed by Rust's ownership system (no buffer overflows, no dangling pointers)
- ✅ **Comprehensive health checks** - All 8 endpoints monitoring infrastructure services
- ✅ **Database operations** - Full integration with PostgreSQL, MySQL, MongoDB (async drivers, credential fetching)
- ✅ **Cache operations** - Complete Redis CRUD (GET, SET, DELETE) with TTL support
- ✅ **Message queuing** - RabbitMQ publishing and queue management
- ✅ **Redis cluster** - Full cluster support (nodes, slots, info, per-node operations)
- ✅ **Vault secret management** - Secure credential retrieval for all services
- ✅ **Real Prometheus metrics** - HTTP request counters and duration histograms
- ✅ **CORS middleware** - Production-ready cross-origin configuration
- ✅ **Async/await patterns** - Modern Rust async programming throughout
- ✅ **Production-grade error handling** - Zero unwrap() calls, proper Result<T, E> usage
- ✅ **Comprehensive testing** - 44 unit tests (positive, negative, edge cases)
- ✅ **1,985 lines of production code** - Fully documented implementation

**Quick Start:**
```bash
# Start the Rust reference API
docker compose up -d rust-api

# View API information
# View API information and all endpoints
curl http://localhost:8004/

# Check health
curl http://localhost:8004/health/
# Check all service health
curl http://localhost:8004/health/all

# Test database integration
curl http://localhost:8004/examples/database/postgres/query

# Test Redis cache
curl -X POST http://localhost:8004/examples/cache/test \
-H "Content-Type: application/json" \
-d '{"value": "Hello from Rust!", "ttl": 60}'

# Inspect Redis cluster
curl http://localhost:8004/redis/cluster/info

# View Prometheus metrics
curl http://localhost:8004/metrics
```

**Full Documentation:** See [rust/README.md](rust/README.md)
Expand Down
15 changes: 15 additions & 0 deletions reference-apps/fastapi-api-first/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
# API-First FastAPI Implementation

## ✅ **FEATURE-COMPLETE IMPLEMENTATION** ✅

**Production-ready Python implementation with 100% feature parity** - API-first development approach.

**Production-Ready Reference Implementation Following API-First Development Pattern**

This implementation demonstrates the **API-first development approach** where the OpenAPI specification drives the implementation, in contrast to the code-first approach where implementation drives the documentation.

### Implementation Highlights

- **100% behavioral parity** - Validated by 26/26 shared parity tests
- **OpenAPI-driven development** - Specification is the source of truth
- **Complete infrastructure integration** - All services: Vault, PostgreSQL, MySQL, MongoDB, Redis, RabbitMQ
- **Advanced features** - Circuit breakers, rate limiting, response caching
- **Comprehensive testing** - Unit tests, integration tests, parity validation
- **Dual-mode TLS** - HTTP (8001) and HTTPS (8444) support
- **Real Prometheus metrics** - HTTP requests, cache ops, circuit breakers
- **Interactive API docs** - Auto-generated from OpenAPI specification

## Table of Contents
- [Overview](#overview)
- [Quick Start](#quick-start)
Expand Down
21 changes: 19 additions & 2 deletions reference-apps/fastapi/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
# FastAPI Reference Application
# FastAPI Reference Application (Code-First)

## ✅ **FEATURE-COMPLETE IMPLEMENTATION** ✅

**Production-ready Python implementation with 100% feature completeness** - The flagship reference implementation.

**⚠️ This is a reference implementation for learning and testing. Not intended for production use.**

This FastAPI application demonstrates production-grade best practices for integrating with the DevStack Core infrastructure. It showcases secure credential management, resilience patterns, observability, and comprehensive error handling.
This FastAPI application demonstrates production-grade best practices for integrating with the DevStack Core infrastructure. It showcases secure credential management, circuit breakers, rate limiting, resilience patterns, response caching, observability, and comprehensive error handling with 188 unit tests.

### Implementation Highlights

- **Complete infrastructure integration** - All services: Vault, PostgreSQL, MySQL, MongoDB, Redis, RabbitMQ
- **Advanced resilience patterns** - Circuit breakers prevent cascading failures
- **Rate limiting** - IP-based rate limiting (100-1000 req/min by endpoint)
- **Response caching** - Automatic caching with TTL configuration
- **188 comprehensive unit tests** - Extensive test coverage with pytest
- **Async/await throughout** - Modern Python async patterns with asyncio
- **Structured logging** - JSON-formatted logs for aggregation
- **Real Prometheus metrics** - HTTP requests, cache ops, circuit breakers
- **Request tracing** - Distributed request ID correlation
- **Interactive API docs** - Auto-generated Swagger UI and ReDoc

## Table of Contents

Expand Down
19 changes: 18 additions & 1 deletion reference-apps/golang/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
# Go Reference API

## ✅ **FEATURE-COMPLETE IMPLEMENTATION** ✅

**Production-ready Go implementation with ~95% feature parity** with Python, Rust, Node.js, and TypeScript reference APIs.

**⚠️ This is a reference implementation for learning and testing. Not intended for production use.**

This Go application demonstrates production-grade best practices for integrating with the DevStack Core infrastructure using the Gin web framework. It showcases secure credential management, concurrent patterns, observability, and idiomatic Go code.
This Go application demonstrates production-grade best practices for integrating with the DevStack Core infrastructure using the Gin web framework. It showcases secure credential management, concurrent patterns with goroutines, observability, graceful shutdown, and idiomatic Go code.

### Implementation Highlights

- **2,173 lines** of production-ready Go code
- **13 comprehensive tests** covering handlers, services, and middleware
- **Complete infrastructure integration** - All services: Vault, PostgreSQL, MySQL, MongoDB, Redis, RabbitMQ
- **Goroutine-based concurrency** - Parallel health checks and async operations
- **Context propagation** - Proper context.Context usage throughout for cancellation and timeouts
- **Graceful shutdown** - Signal handling for clean termination
- **Type safety** - Strong typing with compile-time guarantees
- **Structured logging** - Logrus with request ID correlation
- **Real Prometheus metrics** - HTTP request counters and latency histograms
- **Single binary deployment** - No runtime dependencies

## Table of Contents

Expand Down
21 changes: 21 additions & 0 deletions reference-apps/nodejs/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Node.js Reference API

## ✅ **FEATURE-COMPLETE IMPLEMENTATION** ✅

**Production-ready Node.js implementation with ~95% feature parity** with Python, Rust, Go, and TypeScript reference APIs.

**⚠️ This is a reference implementation for learning and testing. Not intended for production use.**

A modern Node.js/Express application demonstrating infrastructure integration patterns with async/await, Promise-based concurrency, structured logging, and comprehensive observability.

### Implementation Highlights

- **1,368 lines** of production-ready JavaScript code
- **Complete infrastructure integration** - All services: Vault, PostgreSQL, MySQL, MongoDB, Redis, RabbitMQ
- **Modern async/await** - Clean asynchronous patterns throughout
- **Promise.allSettled** - Concurrent health checks for all services
- **Express middleware** - Modular request processing with CORS, logging, error handling
- **Graceful shutdown** - Signal handling for clean termination
- **Structured logging** - Winston with correlation IDs and JSON output
- **Real Prometheus metrics** - HTTP request counters and latency histograms
- **Helmet security** - HTTP security headers
- **Comprehensive health checks** - 8 health endpoints monitoring infrastructure

## Table of Contents

- [Features](#features)
Expand Down
Loading
Loading