Skip to main content

Infrastructure & Operations Overview

Infrastructure & Operations Overview

Complete technology stack, infrastructure architecture, and operational tooling for the ReptiDex platform.

Quick Navigation


Current Infrastructure: ReptiDex is deployed on AWS using ECS Fargate for serverless container orchestration, with host-based routing via Application Load Balancer. All services run on ARM64 Graviton2 processors for cost optimization. Infrastructure is fully managed via CloudFormation templates.For detailed deployment information, see Current Deployment Guide.

Technology Stack

Overview

ReptiDex is built on a modern, scalable technology stack designed for rapid development, high performance, and long-term maintainability.

Backend Services

Python 3.11+ with FastAPI framework for high-performance APIs and microservices architecture

Frontend Applications

Vite + React 19 with TypeScript and Tailwind CSS for modern, responsive web applications

Database & Storage

PostgreSQL 15+ for relational data with Redis for caching and S3 for media storage

Technology Matrix

  • Backend Technologies
  • Frontend Technologies
  • Shared Packages
  • Development Tools

Core Backend Stack

TechnologyVersionUsagePurpose
Python3.12+All backend servicesPrimary programming language
FastAPI0.115+API frameworkHigh-performance REST APIs
Pydantic2.10+Data validationRequest/response models
Pydantic Settings2.6+Configuration managementSettings and environment variables
SQLAlchemy2.0+ORMDatabase abstraction layer
Alembic1.14+Database migrationsSchema version control
Asyncpg0.29+Database driverAsync PostgreSQL connectivity
Redis-py5.2+Cache clientSession & data caching
Celery5.4+Task queueBackground job processing
Boto31.35+AWS SDKCloud service integration

API & Communication

TechnologyVersionUsagePurpose
FastAPI0.104+REST API frameworkPrimary API layer
Pydantic2.0+API validationRequest/response schemas
Starlette0.27+ASGI frameworkFastAPI foundation
Uvicorn0.23+ASGI serverProduction API server
Gunicorn21.2+WSGI serverProcess management
WebSocketsBuilt-inReal-time communicationLive updates

Data & Processing

TechnologyVersionUsagePurpose
PostgreSQL15+Primary databaseRelational data storage
Redis7.0+Cache & sessionsIn-memory data store
Pandas2.1+Data analysisAnalytics & reporting
NumPy1.25+Numerical computingMathematical operations
Pillow10.0+Image processingPhoto optimization

System Architecture

High-Level Architecture

ReptiDex System Architecture

Frontend Layer (ECS Fargate)

  • • web-public (dev.reptidex.com)
  • • web-breeder (breeder-dev.reptidex.com)
  • • web-admin (admin-dev.reptidex.com)
  • • web-embed (embed-dev.reptidex.com)

API Services (ECS Fargate)

  • • repti-core (api-dev.reptidex.com)
  • • repti-animal (animal-api-dev.reptidex.com)
  • • repti-commerce (commerce-api-dev.reptidex.com)
  • • repti-media (media-api-dev.reptidex.com)
  • • repti-community (community-api-dev.reptidex.com)
  • • repti-ops (ops-api-dev.reptidex.com)

Data & Infrastructure

  • • RDS PostgreSQL 15.7
  • • ElastiCache Redis 7.0
  • • S3 (Media Storage)
  • • CloudFront (CDN)
  • • ALB (Traffic Routing)

Service Access & URLs

All services are accessible via subdomain-based routing through the Application Load Balancer: Frontend Applications (Development): Backend API Services (Development): All backend services provide:
  • Interactive API documentation at /docs (Swagger UI)
  • Alternative documentation at /redoc (ReDoc)
  • OpenAPI schema at /openapi.json

Service Communication Patterns

  • Synchronous Communication
  • Asynchronous Communication
  • Data Access Patterns

Direct API Calls

HTTP/REST APIs:
  • Frontend applications → Backend services
  • Service-to-service communication for real-time data
  • Authentication via JWT tokens
  • Request/response timeout: 30 seconds
GraphQL Federation (Future):
  • Unified API gateway
  • Cross-service data fetching
  • Type-safe API consumption
WebSocket Connections:
  • Real-time updates for care reminders
  • Live marketplace activity feeds
  • Collaborative editing features

Infrastructure

AWS Cloud Infrastructure

ReptiDex leverages AWS services for scalable, reliable cloud infrastructure with a focus on cost optimization and operational simplicity.

Compute & Networking

ECS Fargate, VPC, ALB
  • Serverless container orchestration (ARM64 Graviton2)
  • Host-based routing via Application Load Balancer
  • Multi-AZ deployment for high availability

Storage & Data

RDS, ElastiCache, S3
  • Managed PostgreSQL 15.7 with automated backups
  • Redis 7.0 for caching and sessions
  • S3 with CloudFront for media delivery

Infrastructure Components

  • Compute Infrastructure
  • Storage & Databases
  • Networking & Security
  • Deployment Pipeline

Container Orchestration

Amazon ECS Fargate (Current):
  • Serverless container orchestration
  • ARM64 architecture (Graviton2 processors)
  • No infrastructure management required
  • Automatic scaling based on demand
  • Per-service resource allocation
Application Load Balancer:
  • Host-based routing to services
  • SSL/TLS termination with ACM certificates
  • Health check monitoring
  • Multi-AZ distribution

Resource Allocation

Service TypevCPUMemoryArchitecture
Frontend Apps0.25512MBARM64
Backend Services0.51024MBARM64
Database (RDS)2 vCPU2GBAMD64
Redis (ElastiCache)2 vCPU1.5GBAMD64
Task Definitions:
  • Each service runs as a separate ECS task
  • Health checks on /health (frontend) and /api/v1/health (backend)
  • Container logs to CloudWatch Logs
  • Secrets via AWS Secrets Manager

Operations

Monitoring & Observability

Comprehensive monitoring strategy combining application performance monitoring, infrastructure monitoring, and business metrics tracking.

Application Monitoring

Grafana
  • Performance monitoring across all services
  • Error tracking and alerting
  • Database query optimization

Infrastructure Monitoring

Grafana + Prometheus
  • ECS instance metrics
  • RDS database monitoring
  • Custom application metrics

Error Tracking

Loki
  • Real-time error monitoring
  • Performance issue detection
  • Release health tracking

Operational Tools & Practices

  • Monitoring Stack
  • DevOps Practices
  • Operational Procedures
  • Performance & Scaling

Metrics & Visualization

Grafana:
  • Dashboards: Unified metrics visualization
  • Service Maps: Microservice dependency tracking
  • Alerting: Multi-source alert management
  • Role-Based Access: Team-specific views
Key Metrics Tracked:
  • Container response times
  • Service error rates
  • Task scaling metrics
  • Resource utilization
  • Service dependencies

Metrics Collection

Prometheus:
  • Container Metrics: CPU, memory, network stats
  • Service Discovery: ECS auto-detection
  • PromQL: Advanced query capabilities
  • Service Health: Container lifecycle tracking

Log Management

Loki:
  • Container Logs: Centralized logging
  • Label-Based: Service-specific filtering
  • LogQL: Structured log queries
  • Integration: Native Grafana support

Infrastructure Monitoring

AWS CloudWatch:
  • ECS Services: Task and service metrics
  • Container Insights: Cluster performance
  • ALB Metrics: Load balancer statistics
  • Custom Metrics: Business KPIs

Operational Metrics & SLAs

Service Level Objectives

99.9%
Uptime Target
<3s
Page Load Time
<500ms
API Response Time
<0.1%
Error Rate

This infrastructure overview provides the foundation for ReptiDex’s scalable, reliable technology platform. The stack balances modern development practices with operational simplicity, enabling rapid feature development while maintaining high availability and performance standards.