Private
Project *AFC ai genetic for beach sales APPFORSOLARArrow LogisticsArtificial Intillegence » Algo Trade Automation » Algo Trade Manual » Bulk mail Automation with web interface » Bulk Mail Service For Bench Sales » Code Generation Tool » Cold Emailing Automation (AI-Driven) » Invoice Inventory Automation » invoice to inventory for evergreen » Test Automation » What's app Bulk messaging with AI agents » Zelle Payment for evergreenAsk RideBowls&blendsCharan Technologies _ DevelopmentEver green Farms USA (static website)Evergreen farms (pos)Evergreen React ApplicationFinwareHackthonLucky BraidsMy Produce StandNexPumpNexZen Printer AgentNoxa_JewelleryOffice Requirments » Daily Tasks For Madhu » Employees requirements » Recruitment senior mern stack developer » Red MIne Speed » Senior Mern Stack DeveloperOPT - (USA) UpdatesQA TestersRare FruitsRegal SolarRegal Solar DMRegal Solar Energy_ ReactReliance Home Builders_ reactRemit2AnyRestaurant POSRSVPRushi GardensRV_ EngraverSoloar AppSri Farms _ DMSri_FarmsSuthra OneSuthra QNova LabsTech FourceTechnical RequirementsTechy_DevelopmentTechy_POS Travel Matex
Tracker *Bug Feature Support Testing
Subject *
Description Edit Investigated system-wide latency spikes and timeout failures during customer creation, and re-architected the backend transactional notification pipeline (customerService.js, customerController.js). Background & Problem Statement: Operations teams reported recurrent failures when submitting new customer registrations, encountering "Failed to create client: No response from server" alerts. Diagnostic database queries revealed that customer records were successfully inserted into MongoDB, but frontend HTTP requests were getting terminated by client-side gateway timeouts (30 seconds). Root Cause & Technical Analysis: Profiling the customer creation request lifecycle revealed that upon database insert, the backend synchronously executed an unbuffered sequential chain of external email dispatches: 1. Compiling and sending the customer welcome email via SMTP. 2. Querying all SuperAdmins in the tenant organization and dispatching individualized email notifications. 3. Dispatching assignment alert emails to designated assigned managers and site personnel. Whenever SMTP network latency exceeded normal thresholds or the mail provider throttled traffic, this sequential chain exceeded 30 seconds, causing frontend request aborts despite successful database writes. Architecture Redesign & Implementation: 1. Decoupled Asynchronous Notification Pipeline: - Segregated the transactional database write from administrative notification dispatches. - Converted bulk SuperAdmin and assigned staff notifications into detached, non-blocking background executions. - Added isolated error boundaries and structured logging for asynchronous workers so external SMTP failures never affect customer onboarding. 2. Latency Optimization: - Reduced the API response time of the customer creation endpoint from over 25 seconds down to ~110ms. - Handlers now return the newly created customer document and HTTP 201 Created immediately after MongoDB transaction commit. 3. Resiliency Testing: - Simulated network degradation and SMTP latency delays of up to 10 seconds per message to ensure zero timeouts on the client side.
Status New
Priority *Low Normal High Immediate
Assignee Chandra SekharJohn PatchalaMaruthi BharathPavan Kumar MuralaRamu KodaliRavindra AtthotaSai JarugulaSai MahanandaSai Priyatham Sadinenivinay palakondaYalavarthi Thriveni
Target version Sprint2 (11/24/2025 - 12/05/2025) Backlog
Parent task
Start date
Due date
Estimated time Hours
% Done0 % 10 % 20 % 30 % 40 % 50 % 60 % 70 % 80 % 90 % 100 %