ABHAYASTRA Logo
Infrastructure Specs

System Architecture

Explore the technology stack orchestrating ABHAYASTRA's high-assurance safety network.

Android Native Client

Client

Kotlin-based background service engine optimizing location tracking and telemetry reporting.

Technical Specifications

  • >Uses WorkManager and Foreground Services to guarantee execution.
  • >FusedLocationProviderClient for high-precision, battery-efficient coordinate polling.
  • >Local Room SQL Database with hardware-backed Keystore encryption.

Node.js & Express Server

Server

Scalable backend handling HTTP JSON payloads, telemetry routing, and system integrations.

Technical Specifications

  • >Non-blocking asynchronous request loop built for high-throughput operations.
  • >Cluster scaling across multiple core nodes.
  • >Express framework providing clean middleware pipelines for token verification.

WebSockets & Socket.IO

Protocol

Bidirectional client-to-server communications enabling sub-second latency telemetry streams.

Technical Specifications

  • >Heartbeat checking to detect network dropout instantly.
  • >Dynamic connection reconnect with exponential backoff routing.
  • >Namespaces and rooms segregating distinct emergency sessions.

WebRTC

Protocol

Peer-to-peer real-time video and audio streams bypass intermediate server bandwidth.

Technical Specifications

  • >Direct client-to-browser media streaming with minimal packet latency.
  • >Fallback TURN/STUN server support for firewalled networks.
  • >Secured WebRTC connection setup via encrypted WebSocket signaling.

MongoDB Database

Server

Document store optimizing high-volume coordinates logs and JSON telemetry streams.

Technical Specifications

  • >Horizontal sharding support for regional scaling.
  • >Geospatial queries support for boundary intersections and range sweeps.
  • >Automated TTL indexes managing temporary telemetry expiration policies.

Redis Cache & Pub/Sub

Server

In-memory layer enabling high-speed message distribution and session state caching.

Technical Specifications

  • >Sub-millisecond access times for active socket session maps.
  • >Pub/Sub messaging orchestrating multi-node backend socket communication.
  • >Rate limiting for public endpoint endpoints.

Docker Containerization

DevOps

Standardized execution images ensuring consistency from dev environments to production servers.

Technical Specifications

  • >Multi-stage builds reducing microservice image sizes.
  • >Isolated environment runtime security parameters.
  • >Optimized configuration for easy deployment across Amazon ECS or Kubernetes.

NGINX Reverse Proxy

DevOps

High-performance load balancer and TLS termination proxy routing requests to the server clusters.

Technical Specifications

  • >Configured for TLS 1.3 only, enforcing modern cipher suites.
  • >Handles gzip/brotli compression for rapid frontend script delivery.
  • >WebSocket upgrade proxying with sticky sessions.
DevOps & CI/CD Pipeline

Continuous Integration & Delivery

Every commit to ABHAYASTRA's codebase triggers automated pipeline tasks ensuring compliance, code quality, and security standards before deployment.

Security Scan

Dependency checking, vulnerability auditing, and secrets scanning executed via GitHub Actions to block vulnerabilities in packages.

Unit & Integration Tests

Automated tests verify that Kotlin location services and WebSocket coordinate routes match our latency budget under load.

Vercel & Docker Deploy

Deploy web routes to serverless systems, while API containers are rebuilt, signed, and pushed to Docker registries.