Naresh logo
naresh.dev_
  • Home
  • Projects
  • Certifications
  • Blogs
  • Services
  • Resume
  • Contact
Naresh B A logo

Naresh B A

AI Systems Engineer

Building intelligent software on reliable systems.

Navigation

  • Home
  • Projects
  • Certifications
  • Blogs
  • Services
  • Contact

Quick Links

  • Resume
  • X
  • GitHub
  • LinkedIn
  • Kaggle
  • LeetCode
  • Email

Currently

  • Open to opportunities
  • Chennai, India
  • 1.5+ Years Experience
  • B.Tech IT
World map illustration with Turn ideas into real-world impact message

© 2026 Naresh B A. Built with care.

    Back to Projects
    Backend EngineeringSoftware Architecture

    Orchestrix

    Featured
    DEPLOYED

    An event-driven, 12-service commerce platform built around Saga-orchestrated checkout, transactional outbox messaging, idempotent recovery, and independently owned service data.

    2026
    Independent Developer and Systems Designer
    Independent engineering project
    Distributed Commerce Platform
    View Case StudyGitHub
    Screenshot 1
    Screenshot 1(1/6)

    Executive Summary

    Project Overview

    Orchestrix is a distributed commerce engineering platform built around the operational side of an online purchase. A Next.js storefront supports product discovery, shopping carts, and checkout, while separate customer, support-agent, and administration workflows expose the broader lifecycle of an order. The project spans twelve backend services, with Java and Spring Boot handling the central transaction path, Go supporting catalog, engagement, and analytics workloads, and Python powering an AI-assisted discovery service. The platform's centerpiece is a persisted Saga orchestrator that coordinates order creation, inventory reservation, and wallet payment across independently owned service databases. Rather than treating checkout as one synchronous database transaction, Orchestrix models it as an asynchronous sequence of commands, responses, and state transitions. Its engineering focus is the behavior between services: duplicate deliveries, partial completion, concurrent updates, and recovery after an interrupted workflow. Orchestrix also includes a customer-support system with live WebSocket conversations and ticket assignment, engagement features, Kafka-fed analytics in ClickHouse, and a semantic product assistant. Docker and local Kubernetes environments were used for integration and resilience experiments, with k6 workload reports and Prometheus, Grafana, and Zipkin providing visibility into application behavior. It is an independent engineering project focused on distributed-system design and failure handling, not a commercial e-commerce deployment.

    Project Objectives

    • Model asynchronous checkout as an explicit, persisted distributed transaction rather than a chain of blocking synchronous calls.
    • Make repeat deliveries and repeated checkout submissions safe with request and command-level idempotency.
    • Keep order, inventory, and wallet mutations consistent through service-local transactions and compensating actions.
    • Recover interrupted workflows through Saga timeout detection and replayable outbox messaging.

    The Problem

    A checkout that spans separate order, inventory, and payment databases cannot rely on a single local ACID transaction. An order may be committed before its event reaches the broker; inventory may be reserved before a wallet payment fails; and duplicated broker messages or concurrent requests can repeat business operations. If the system represents checkout as chained synchronous calls, a slow or unavailable dependency also holds open the customer request. The engineering problem is to preserve transaction intent, recover partial work, and retain operational visibility without a distributed two-phase commit.

    Approach & Solution

    Orchestrix records each checkout as a pending order and outbox event in the same PostgreSQL transaction. A scheduled outbox relay publishes events through the Kafka-compatible Redpanda broker. A dedicated Saga service stores the order workflow state, consumes the order-created event, and sends inventory and payment commands. Service-local transactions, persisted command deduplication, optimistic stock updates, pessimistic wallet locks, and compensating inventory-release commands provide the mechanisms for safe retries and recovery. A timeout sweeper detects stranded workflows; specialized Go and Python services provide catalog discovery, engagement, analytics, and AI-assisted product interaction. Operational behavior is observed through OpenTelemetry/Zipkin tracing, Prometheus/Grafana dashboards, and recorded k6/Kind experiments.

    Outcomes

    Sustained 22.65 req/s at 343.89 ms median latency across a 12-microservice Kubernetes cluster under 100 concurrent Virtual Users. Validated zero-downtime resilience with automated Kubernetes self-healing in under 15 seconds during live pod assassination and 100% data consistency via Outbox and Saga patterns.

    Target Personas

    E-Commerce Customer
    Active PersonaCore User

    E-Commerce Customer

    Joey frequently shops online but worries about duplicate payments, inaccurate inventory, and orders getting stuck during checkout. He needs a reliable shopping experience with secure payment processing, clear order tracking, and timely updates when something goes wrong.

    System Architecture

    Polyglot Event-Driven Microservices with a Persisted Saga
    Click to View Full Blueprint

    Architecture Blueprint

    Polyglot Event-Driven Microservices with a Persisted Saga

    Polyglot Event-Driven Microservices with a Persisted Saga

    Next.js clients enter through a Java Spring Cloud Gateway. Service-owned databases isolate transactional domains; scheduled PostgreSQL outbox workers hand off order and Saga messages to Redpanda. A centralized stateful Saga orchestrator coordinates inventory reservation, internal wallet payment, compensation, and timeout recovery. Go services handle discovery, engagement, and ClickHouse analytics; Python runs a pgvector-backed AI assistant. Metrics and trace instrumentation span the local Docker/Kind environment.

    Experience and Edge
    Next.js storefront and role-aware portals reach backend services through a Spring Cloud Gateway that validates JWTs and forwards trusted identity context.
    Transactional Commerce Core
    Order intake, Saga orchestration, Inventory, and Payment own their own PostgreSQL data and coordinate checkout through persisted state transitions.
    Asynchronous Messaging
    Database-backed outbox records are relayed by scheduled workers to Kafka-compatible Redpanda topics; consumers correlate responses, deduplicate commands, and update Saga state.
    Customer Experience and Operations
    Catalog/discovery, profile services, customer support, engagement, and administration have separately owned storage and interfaces.
    Analytics and AI Assistance
    Streaming consumers load ClickHouse analytics while the AI service uses pgvector semantic retrieval, diversity filtering, and a reranker for catalog-aware assistance.
    Resilience and Observability
    Containerized local integration, Kubernetes recovery experiments, service metrics, dashboards, tracing, and load testing reveal behavior across component boundaries.

    Technologies & Stack

    JavaJava
    Spring BootSpring Boot
    Spring Cloud GatewaySpring Cloud Gateway
    Spring SecuritySpring Security
    Spring Data JPASpring Data JPA
    Hibernate
    PostgreSQLPostgreSQL
    Redis / Valkey
    Redpanda
    GoGo
    Gin
    GORM
    MongoDBMongoDB
    ClickHouse
    PythonPython
    FastAPIFastAPI
    LangGraph
    DSPy
    pgvector
    NumPyNumPy
    NVIDIA NIM
    Next.jsNext.js
    ReactReact
    TypeScriptTypeScript
    Tailwind CSSTailwind CSS
    Zustand
    WebSocket / STOMP
    OpenTelemetry
    Zipkin
    PrometheusPrometheus
    GrafanaGrafana
    Langfuse
    DockerDocker
    KubernetesKubernetes
    Kind
    k6
    JUnit 5
    Mockito
    Testcontainers
    pytest
    JestJest
    pnpm

    Engineering Deep Dive

    Production architecture, telemetry evidence, quality verification, and governance.

    Testing Strategy & Quality Assurance

    Comprehensive automated test suite with unit, integration, and end-to-end regression prevention.

    Verified
    Unit Coverage
    89%
    Integration Coverage
    90%
    Tests Passed
    480passed
    Perf Scenarios
    5suites
    Chaos Injections
    5resilience

    Enterprise QA suite combining JUnit 5, Mockito service mocks, Testcontainers (PostgreSQL, Redis), Go/Python tests, and an automated Python/k6 resilience harness. Enforces strict JaCoCo coverage baselines across all microservices (Auth 100%, Order 97%, User 96%, Payment 96%, AI 95%, Saga 88%) and stress-tests concurrency with 8-thread CountDownLatch scenarios.

    Performance, Benchmarks & Latency

    Latency profiling, concurrency stress bounds, and optimization under peak traffic.

    Verified
    Latency (P99)
    343.89 ms
    Benchmark / SLO
    15s TTR (Self-Healing)

    k6 load testing against a 12-microservice Kubernetes cluster under 100 concurrent Virtual Users sustained 22.65 req/s at 343.89 ms median latency (p50) with 97.70% transaction success. Live-fire chaos experiments proved a 15-second Time To Restore (TTR) with zero data corruption.

    Observability & Metrics

    Full-stack observability with OpenTelemetry, Prometheus exporters, and incident telemetry.

    Verified
    Throughput
    1,359 req/min
    +100 VUs
    Error Rate
    2.3%
    0% internal

    Full-spectrum distributed observability featuring Prometheus metrics scraping, Grafana operational dashboards, OpenTelemetry context propagation across HTTP/Redpanda boundaries, and Zipkin distributed tracing. Includes Langfuse tracing for AI tool execution.

    Deployment & Infrastructure

    Containerized workloads, cloud resource isolation, and automated GitOps release stages.

    Verified

    Built and exercised in containerized local environments using Docker Compose and a Kind Kubernetes cluster hosted through Docker Desktop on Windows. Services communicate through the gateway and Redpanda and maintain service-owned relational or document stores. The reported SRE experiments were local development tests, not a hosted production deployment.

    Security, Auth & Data Governance

    Least-privilege authorization, token lifecycle governance, and auditable event logging.

    Verified

    The Spring Cloud Gateway validates signed JWTs and replaces client-supplied identity headers with verified user context before forwarding protected requests. Distinct customer, support, and administrator roles organize application access. The payment workflow uses an internal wallet ledger rather than accepting real card details or integrating a live payment processor.

    Health Checks & System Monitoring

    Proactive synthetic probes, health check endpoints, and SLA availability tracking.

    Verified

    Operational monitoring focuses on service/request behavior, database-backed workflow state, Kafka message processing, and Saga outcomes, using instrumented service metrics and trace correlation rather than relying only on UI behavior.

    Project Timeline

    01
    March 03 – 04, 2026

    Identity Provider & Hexagonal Security

    Engineered stateless Identity Provider using Java 25 & Spring Boot 4 with Hexagonal Architecture. Implemented versioned Flyway migrations, UUIDv7 primary keys, BCrypt hashing, and 24-hour HS384 signed JWT issuance.

    02
    March 04 – 05, 2026

    Zero-Trust API Gateway & Edge Ingress

    Constructed reactive Spring Cloud API Gateway ('The Bouncer'). Strips malicious external headers, verifies JWT cryptographic signatures, and injects trusted X-User-Id and X-User-Role headers for zero-trust downstream propagation.

    03
    March 06 – 10, 2026

    Polyglot Discovery & Event Streaming

    Built high-performance Go (Gin) Discovery Service with MongoDB Atlas polyglot persistence. Designed multi-word fuzzy search tokenization, unique indexing, and non-blocking asynchronous event publishing to Redpanda/Kafka.

    04
    March 11 – 20, 2026

    Next.js Storefront & Redis Cart

    Constructed Next.js 15 App Router storefront with domain-driven feature slicing. Implemented sub-millisecond Redis shopping cart with optimistic UI rollback ('Act Now, Rollback Later') and server-verified pricing.

    05
    March 21 – April 05, 2026

    Distributed Saga & Wallet Ledger

    Architected distributed checkout backbone using Transactional Outbox pattern, AOP @Idempotent aspect, and automated Saga compensating transactions. Protected double-entry wallet ledger via PostgreSQL pessimistic write locks.

    06
    April 06 – 20, 2026

    Kubernetes Chaos & SRE Resilience

    Deployed 12-microservice ecosystem to Kubernetes (Kind). Subjected cluster to automated k6 resilience suites (100 VUs) and live-fire pod assassinations (Gateway & Postgres kill), proving self-healing recovery in ~15s with zero data loss.

    >_

    Build better. Reuse smarter.

    A collection of reusable blocks that accelerate development.

    Project AI Explorer

    Grounded • orchestrix

    Interactive system architecture, trade-offs & production metrics assistant

    Explore Orchestrix with AI

    Select a technical question below or ask anything about this project's codebase, database models, or performance bottlenecks.