Comprehensive Architectural Specification, Module Distribution, End-to-End Data Flow, and Implementation Blueprint for Migrating Legacy MicroKey Desktop & PHP Auditing to a Scalable Cloud Microservices Platform.
Modernizing Two Separate Workflows into One Harmonious Engine
The clientβs business currently operates with two distinct requirements that were historically siloed. The objective of this transformation is to elevate both workflows into an interconnected, modern, cloud-native technology stack sharing a single source of property truth.
Central Station Automation (Replacing MicroKey Desktop)
Multi-Tenant Inspection SaaS (Replacing Legacy PHP Script)
Building Details Registered ONCE, Shared Seamlessly Across Both Systems
Your foundational architectural insight is 100% accurate and industry best-practice: Both systems revolve around the exact same physical assetβthe Building/Property. Instead of having separate building databases for Monitoring and Audit, we establish a Central Property Master Service.
Registered once during onboarding. Shared by both Monitoring and Audit:
Modern, Scalable, Fault-Tolerant Distributed Services
To ensure high scalability, independent deployments, and airtight security, the backend is partitioned into specialized microservices communicating over high-speed REST APIs, Redis message brokers, and persistent TCP sockets.
The 8 Specialized Modules Replacing the MicroKey Desktop Application
The Central Alarm Monitoring System handles mission-critical life safety events. It guarantees zero signal loss, instant cross-referencing, automated SOPs, and full legal compliance. Below are the 8 Core Modules covered in the Monitoring System:
Asynchronous TCP socket listener connecting directly to AES-IntelliNet INCC. Implements automatic heartbeat ACK ( 00 OKAY @ ) and parses Ademco 685 / Contact ID packets.
Enriches cryptic hardware numbers into clear human descriptions. Bridges the raw CSID Account ID and Zone number directly into the Property Database.
Prevents dispatcher panic during alarm floods. When a lightning strike or faulty loop triggers 50 signals a second, this module aggregates and suppresses duplicates.
The primary interface for dispatchers. Displays active alarms ranked by priority, flashing colors, audible tones, and instant operator claim locks to prevent duplicate handling.
Guides the dispatcher through standard operating procedures (SOPs). Replaces human guesswork under stress with step-by-step decision trees and scripted emergency dialogs.
Manages keyholders and emergency response rosters. Automatically calls phone numbers in strictly configured sequence (Primary, Secondary, Mobile, Pager) until acknowledged.
Contains specific jurisdictional dispatch phone numbers for local police departments, fire districts, and emergency dispatch centers based on the buildingβs location.
Allows technicians to place accounts into 'Soak/Test Mode' during maintenance, preventing false dispatches. Cryptographically logs every action for legal compliance.
The 8 Commercial Modules Replacing the Legacy PHP Audit Script
The Audit System is a commercial SaaS solution. It enables facility managers, building societies, and licensed inspection companies to conduct structured on-site audits, record compliance, track equipment, and produce legal certificates. Below are the 8 Core Modules covered in the Audit System:
Configures standardized inspection checklists based on regional and international safety codes (e.g. NFPA 10, NFPA 72, National Building Code, Local Fire Brigade standards).
Inventories every physical safety asset inside the building. Allows QR code/barcode scanning to verify individual extinguishers, fire pumps, hose reels, and smoke barriers.
Schedules recurring inspection campaigns across multiple complexes and buildings. Dispatches qualified inspectors based on location and certification credentials.
The digital clipboard used by inspectors while walking the building. Responsive and lightweight for mobile phones and tablets, allowing quick item verification.
Eliminates disputes by capturing photographic evidence for every failed check. Attaches GPS location and camera timestamps to substantiate non-compliance findings.
Converts audit failures into actionable work orders. Assigns repair tasks to facility maintenance contractors and tracks re-inspection verification.
Calculates the composite compliance score and automatically generates high-resolution, print-ready PDF Fire Safety Certificates with digital signatures and QR verification.
Enables Forteza to monetize the audit platform. External customers sign up, choose a monthly or annual tier, enter credit card details, and manage their organization users.
From Physical Sensor Trigger to Real-Time Dispatch and Resolution
Here is the exact journey of an emergency alert through the Forteza Monitoring System. Every stage is clearly detailed with the underlying data properties so both non-technical managers and software engineers understand the transformation.
A smoke detector triggers on the 3rd floor of a commercial building. The on-site fire panel creates an Ademco Contact ID event and transmits it over AES radio frequency to the central tower.
| Property / Field | Value | Meaning / Purpose |
|---|---|---|
| hardware_type | Optical Smoke Sensor | Device sensing combustion particles |
| loop_zone | 001 | Physical input terminal wire on panel |
| panel_csid | 1001 | 4-digit Hex Customer Account Identifier |
The Forteza persistent socket listener receives the raw frame over TCP port 6051. It immediately stores the raw string to disk and sends back an instant protocol ACK handshake to satisfy receiver timing.
| Token | Parsed Value | Description |
|---|---|---|
| R / L | 1 / 1 | Receiver #1, Line Card #1 |
| ACCT | 1001 | Subscriber Account CSID |
| Format | 18 | Ademco Contact ID Standard |
| Q | E | Event Qualifier: 'E' = New Active Alarm ('R' = Restoral) |
| EEE | 110 | Standard Alarm Code: Fire Alarm |
| GG | 00 | Partition / Area 0 |
| NNN | 001 | Zone Number 001 |
The raw numbers 1001 and 001 mean nothing to a human operator. The Crosswalk Engine queries the Shared Property Database to enrich this into a rich visual entity.
| Raw Hardware Key | Mapped Property Entity | Enriched Information Available to Operator |
|---|---|---|
| ACCT: 1001 | Building ID: bld_shirke_5 | Shirke Mhada Building No. 5, Sector 4, Dharavi |
| ZONE: 001 | Zone ID: zone_fl3_server | Floor 3, Main Server Room, Optical Smoke #01 |
| CODE: 110 | Alarm Condition: FIRE_ALARM | Priority 1 (Critical Life Safety), Red Flashing Color |
| TOWN: MH_DHA | Town Authority: Dharavi Police / Fire | Direct Dispatch Phone: 022-24072222, Station 4 |
The normalized alarm is written to the Redis Live Queue and instantly pushed over WebSockets to all logged-in central station operators. The screen flashes red and sounds an urgent audible alert tone.
The screen loads the pre-configured Action Plan (VERIFY_FIRST_THEN_DISPATCH). The operator does not have to remember what to do; the system guides them step-by-step:
Step A: Call Premise: Click-to-dial Building Security Desk (+91 98200 12345). Operator asks for verbal password ("Falcon").
Step B: Disposition Result: Operator clicks one of the buttons:
If no answer or real fire is confirmed, the system surfaces the direct Fire Brigade dispatch script with exact cross streets. Simultaneously, the system triggers automated SMS alerts to all property keyholders.
The operator selects the final resolution code (e.g. VALID_FIRE_DISPATCH), enters closing remarks, and closes the incident. Every millisecond, phone ring, and keystroke is saved into the permanent legal audit trail.
From Checklist Planning to On-Site Inspection and Official Certification
This is the commercial lifecycle used by external paying customers. It takes a building from initial registration through digital inspection, photo verification, defect resolution, and compliance certification.
Customer subscribes to a SaaS plan. They add their building into the Shared Property Registry: entering building height, floors, occupancy type (Commercial/Residential), and emergency contacts.
The facility manager chooses an official compliance template (e.g. "Annual High-Rise Fire Safety Audit - NBC Standard") and schedules the inspection date, assigning it to a certified auditor.
| Property | Example Value | Description |
|---|---|---|
| template_id | tpl_nbc_highrise_v2 | National Building Code standard questionnaire |
| building_id | bld_shirke_5 | References the Shared Property Record |
| assigned_auditor | Ar. Sameer Desai | Licensed Fire Safety Engineer |
| planned_date | 2026-11-15 | Scheduled inspection execution date |
The auditor arrives on site with a tablet or mobile phone. They walk each floor, verifying safety items: fire pump pressure, emergency exit signage illumination, sprinkler shut-off valves, and extinguisher dates.
If an item fails (e.g. "Staircase A fire exit door blocked by cardboard boxes"), the auditor marks FAIL, takes an in-app photo, draws a red arrow over the blockage, and records a critical deficiency.
| Deficiency Field | Value | Meaning |
|---|---|---|
| severity | CRITICAL | Immediate life-safety egress violation |
| photo_url | s3://forteza-evidence/bld_1/staircase_a.jpg | Timestamped image proof |
| corrective_action | Remove obstruction within 24 hours | Prescribed action for property manager |
The building manager receives an instant SMS/Email notification. Their maintenance team removes the boxes, uploads a "Rectification Photo", and requests auditor sign-off.
Once verified, the engine computes the overall building score (e.g. 96%). The system stamps digital signatures and produces an official PDF Fire Safety Compliance Certificate with a verification QR code.
Bridging MicroKey Relational Architecture with the Shared Property Core
This entity model reconciles the MicroKey Alarm Monitoring Database (from your uploaded architecture specification and diagram) with the Forteza Property Core and the Audit Service:
One Modern Codebase Dynamically Adapting to Every User Type
Instead of maintaining two completely separate frontends, we use the single React repository (D:\Office Project\Forteza\Frontendorteza-audit-system-frontend) and enforce dynamic navigation and permission gates based on user roles:
| Role | Target Persona | Navigation Sidebar Items Visible | Capabilities & Actions |
|---|---|---|---|
| SUPER_ADMIN | Forteza Leadership / CTO | Everything (CAD Monitor + SaaS Audit + Billing + Microservice Health) | Full global access, configure system catalogs, manage tenants, override rules. |
| DISPATCHER | Forteza Central Station Operator | Live CAD Board, Real-Time Alarm Queue, Active Incidents, Test Modes | Claim incoming alarms, execute SOP action plans, call emergency services, resolve events. |
| SAAS_TENANT_ADMIN | External Customer / Building Owner | My Buildings, Audit History, Compliance Scorecards, Team, Plan & Billing | Register own buildings, schedule internal audits, download certificates, manage subscription. |
| FIELD_AUDITOR | Safety Inspector / Engineer | Assigned Audits, Field Inspection Checklist, Evidence Camera, Drafts | Perform on-site inspections, mark pass/fail, take deficiency photos, submit reports. |
| TECHNICIAN | Field Maintenance Contractor | My Work Orders, Assigned Deficiencies, Rectification Proof Upload | Review defects found during audit, upload repair photos, request re-inspection. |