Eloquent

Documentation

System Architecture

The Eloquent platform follows a microservices architecture with clear separation between frontend applications, an API gateway, backend services, and data stores.

Architecture Overview

Eloquent Platform Architecture

Frontend Applications

ApplicationPurpose
Users PortalMain platform UI — agents, workflows, entities, chat
Administration PortalPlatform administration — organizations, users, analytics
Custom Agent UIsCustomer-built branded agent experiences using @elqnt packages
Custom AppsCustomer-built applications integrated with the platform

All frontend applications communicate exclusively with the API Gateway over HTTPS. They never connect directly to backend services or data stores.

API Gateway

The API Gateway is the single entry point for all client requests. It handles:

  • JWT Authentication — validates tokens on every request
  • CORS — cross-origin request handling
  • Rate Limiting — per-route request throttling
  • Request Routing — proxies requests to the appropriate backend service
  • Scope Authorization — validates user permissions per route

Backend Services

The platform is composed of multiple microservices organized into functional groups:

GroupCapabilities
Core PlatformOrganization and user management, platform provisioning
AI & AgentsAgent configuration, real-time chat, skill and tool orchestration, workflow automation
Data & SearchKnowledge graph, semantic search, dynamic entities, document ingestion
IntegrationsEmail and notifications, media processing, external service connectors
ProcessingDocument generation, scheduled tasks, background job execution

Services communicate internally using a message-based architecture. This is fully managed — administrators do not need to configure inter-service communication.

Communication Patterns

Browser to Backend

All browser requests go through the API Gateway over HTTPS:

Browser  →  API Gateway (HTTPS)  →  Backend Service (internal)

The browser never communicates directly with backend services or databases.

Service to Service

Backend services communicate internally using a managed message queue for both synchronous and asynchronous operations. This is transparent to administrators — no configuration is required.

Chat Transport

The chat service supports two transport modes:

TransportProtocolSession HandlingRecommended
SSEHTTP Server-Sent EventsStateless — any gateway pod can handleYes
WebSocketFull-duplex WSRequires sticky sessions (cookie affinity)Legacy only

SSE is the recommended transport. It is stateless, supports auto-reconnection, and works with standard HTTP load balancers without special configuration.

Infrastructure Components

ComponentPurposePersistence
PostgreSQLPrimary relational data storePersistent (10Gi default)
ClickHouseAnalytics and knowledge graphPersistent (20Gi default)
RedisCache, sessions, real-time dataPersistent (5Gi default)
Message QueueInternal messaging, chat history, event streamsPersistent with file backing

Multi-Tenancy

Every organization gets fully isolated resources:

  • PostgreSQL — dedicated schema per organization
  • ClickHouse — dedicated database per organization
  • Message Queue — dedicated storage per organization
  • Redis — isolated key space per organization

The API Gateway enforces organization context on every request through JWT claims. No cross-organization data access is possible at any layer.

See Organization & Multi-Tenancy for management details.