Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

headsntails Platform (headsntails-platform)

This repository serves as the centralized orchestration and infrastructure hub for the headsntails Ecosystem - a high-performance, containerized multi-service feature flag evaluation platform.

It handles local multi-container composition, internal isolated networking, edge proxy routing, and local state initialization.

System Architecture & Network Topology

The platform is designed as a localized container monolith (Service Mesh Monolith). The public internet can only access the ecosystem through the Nginx Edge Ingress. All inter-service communications happen exclusively over an isolated private Docker bridge network (headsntails-intranet).

                  [ PUBLIC TRAFFIC ]
                          │
                          ▼
              [ Edge Ingress / Nginx:80 ]
               /          │          \
      /api/v1/flags/  /api/v1/auth/  /api/v1/limiter/
             /            │            \ (Restricted)
            ▼             ▼             ▼
       [headsntails Core] [JWT Authority] [Rate Limiter]
        (Go:8080)     (Python:3000)   (Python:8000)
         │    │                             │
         │    └─────────(Intranet)──────────┤
         ▼                                  ▼
   [PostgreSQL] ───────────────────────► [Redis]
 (Write-Through)                       (Sliding Window)

Architectural Roadmap & Evolution Strategy

The headsntails ecosystem is built using a milestone-driven evolution layout. Each phase transitions the ecosystem into higher performance brackets, systematically identifying and resolving distributed systems bottlenecks.

Phase Milestone Core Focus Architecture Impact Status
v0.1 Container Monolith Base Orchestrated REST Core Edge Ingress routing, multi-language container isolation Released
v0.11 Renaming Swap "Flagship" to headsntails The project is positioned rather as architectural boilerplate. Naming should be distanced from Feature Flags Released
v0.15 Test Coverage Full Test coverage + E2E Support stable product evolution be ensuring compability with existing functionality Released
v0.2 Source of Truth & Hydration Reliable State Handling Write-Through pattern to PostgreSQL; ultra-fast reads from Redis Released
v0.3 Sidecar Latency Optimization gRPC Communication Layer Migrate inter-service checks to gRPC to eliminate HTTP/1.1 HoL blocking Released
v0.4 High-Perf Edge Layer Global gRPC Ingress Transition public edge routing to utilize Protocol Buffers & HTTP/2 streaming In Progress
v0.5 Advanced Targeting Engine Contextual Flag Evaluation Abstract rule-matching evaluation engines beyond simple primitives Planned
v0.6 Distributed Event Bus Real-Time Cache Sync Integrate RabbitMQ/Kafka to synchronize cache states across cross-region nodes Planned
v0.7 Cloud-Native Scale Infrastructure as Code Multi-AZ AWS ECS Fargate deployment automated via Terraform Planned

Documentation

Full openapi documentation, for all public facing services is implemented in /docs


Sibling Repositories

The core ecosystem is decoupled across distinct, agnostic portfolio repositories:

Local Development Setup

Prerequisites

Ensure your local development environment has a parent workspace folder containing all four repositories pulled down side-by-side as siblings:

workspace/
├── headsntails-core/
├── rate-limiter/
├── jwt-authority/
└── headsntails-platform/  <-- You are here

Spinning Up the Stack

Navigate to this directory and boot the entire ecosystem with a single command:

docker-compose up --build

This command automatically triggers:

  1. Dynamic compilation of the Go, Python, and Node images from sibling contexts.
  2. Initialization of the PostgreSQL instance and execution of ./postgres/init.sql schema configurations.
  3. Boot-up of a password-secured standalone Redis cluster container.
  4. Activation of the Nginx Ingress Controller on port :80 with embedded CORS pre-flight policies.

Sanity Verification

Test the entry gateway health status from your host terminal:

curl http://localhost/health

🔒 Security & Access Rules

  • Public Boundary: Only /api/v1/flags/* and /api/v1/auth/refresh pass through the edge gateway freely with integrated CORS configurations.
  • Internal Boundary: Global routes for the rate-limiter (like /docs) and jwt-authority (/validate) are locked behind an Nginx IP whitelist rule block, rejecting external client infiltration.

About

"Common ground" project for all services included into flagship ecosystem

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages