Skip to main content

AnyDB Architecture

AnyDB’s architecture is designed for performance, scalability, and modularity — allowing it to scale from a single-node server to a multi-node, high-availability cluster. Each service layer has a defined role, ensuring reliability, flexibility, and efficient data processing across deployments.


Architecture Overview

At its core, AnyDB runs as a distributed system composed of several cooperating services.
These components work together to deliver fast, reliable operations for data management, automation, and collaboration.

Core Components

  • Server Nodes (API Host) – Handle REST and WebSocket requests, user sessions, and record operations.
  • Worker Nodes – Manage background processing, automations, and scheduled jobs.
  • NATS (Messaging + Cache) – Provides real-time messaging between nodes, caching, and event broadcasting.
  • Search Indexer – Powers fast search queries and full-text indexing across records.
  • Object Storage (S3 or Compatible) – Stores file attachments, exports, and large binary data.
  • Email Service – Manages notifications, alerts, and outbound transactional emails.
  • Template Server (Optional) – Used for managing private templates in self-hosted deployments.

Architecture Diagram

Below is a high-level representation of the AnyDB architecture layers.

AnyDB Architecture


Component Layers

Load Balancer

Distributes incoming traffic across application nodes for high availability and performance.
Can be implemented using AWS Elastic Load Balancing, Nginx, or similar technologies.

Application Nodes

Run the core AnyDB API and UI services.
These nodes handle user interactions, API requests, and connection management with other layers.

Worker Nodes

Dedicated for background tasks — automation triggers, report generation, template rendering, and scheduled jobs.
Helps isolate heavy workloads from the user-facing application layer.

Local Components

These support services can run locally within your environment or via managed services:

  • Database Nodes (Local) – Host structured data (e.g., PostgreSQL or compatible systems).
  • Search Nodes (Local) – Manage full-text search and indexing for record lookups.
  • NATS Nodes (Local) – Handle message queues, caching, and publish-subscribe communication.

Object Storage Layer

AnyDB integrates with AWS S3 or compatible object storage systems for secure and scalable file management.


Scalability and Flexibility

AnyDB’s architecture allows flexible deployment across:

  • Managed Cloud: Fully hosted and automatically scaled by the AnyDB Cloud platform.
  • Single Node (Server Mode): Simple and fast setup for small to medium deployments.
  • Cluster Mode: Horizontal scaling for large enterprise workloads with redundancy and failover.

Each component can scale independently based on workload, ensuring efficient resource use and easy maintenance.


Summary

AnyDB’s modular architecture enables:

  • High Performance through asynchronous processing and caching.
  • Reliability with isolated components and stateless application nodes.
  • Scalability from small business installations to enterprise clusters.
  • Flexibility for both cloud-native and on-prem environments.

Whether you deploy on the AnyDB Cloud, your own infrastructure, or a hybrid model the underlying architecture remains consistent, efficient, and enterprise-ready.