Matrix + AWS serverless

Serverless Matrix messaging on AWS.

Diaktor is a complete messaging product and an AWS-native alternative to operating a traditional, always-on Synapse-style stack. It implements Matrix server-server federation while delivering the Diaktor web client through a real-time AppSync Events channel.

  • Matrix server-server federation
  • Push-based client updates
  • Customer-owned AWS data plane
Standard Matrix federation
DiaktorServerless, in your AWS account

Rooms + messages
Matrix server-server API

Synapse + other homeserversThe wider Matrix ecosystem

Direct federation. No protocol conversion.

What the term means

Matrix interoperability with capacity that follows demand.

Diaktor delivers serverless Matrix messaging as an integrated product, combining a dedicated web client with an AWS-native backend. Implemented client operations use standard Matrix client-server API contracts and event formats. The Diaktor web client receives synchronization updates through real-time WebSocket push, while federation uses the standard Matrix server-server API directly.

01

Federation stays open

Rooms and messages cross organizational boundaries through the standard Matrix server-server API, directly and without protocol conversion.

02

Runtime capacity follows demand

Lambda and managed AWS services execute as messaging events arrive, allowing runtime activity to contract during idle periods and expand with demand.

03

The client becomes reactive

AWS AppSync Events replaces long-polling /sync with WebSocket push, avoiding held HTTP requests that are a poor cost and execution-model fit for a Lambda-based runtime.

AWS-native architecture

Managed services form the messaging runtime.

Java and Quarkus microservices are compiled natively with GraalVM and deployed as AWS Lambda functions. AppSync Events provides the real-time client channel, DynamoDB stores event-driven state, and S3 stores attachment payloads. IAM and CloudWatch complete the deployment's access-control and operational boundary.

Serverless shifts capacity planning from pre-sized application instances to managed services that respond to demand. Production capacity remains governed by configured AWS quotas, workload characteristics, deployment limits and operational policies.

Variable workload flowing through Diaktor Lambda-native services to AppSync Events, DynamoDB, S3, IAM and CloudWatch
Lambda-native servicesJava, Quarkus and GraalVM for event-driven compute.
AppSync EventsWebSocket push delivery for the Diaktor web client.
DynamoDB + S3Managed event state and encrypted attachment payload storage.
Customer AWS accountMessaging runtime and data stores run in the customer AWS account. Selected AI context is processed by the configured provider.
Identity and Diaktor AI

Account services and Diaktor AI integrate with the messaging core.

Amazon Cognito provides registration, email confirmation, OAuth 2.0 access with PKCE and password recovery for the Diaktor client. Device and session controls are available in the client. The integration uses Diaktor-specific OAuth endpoints; the complete Matrix OAuth authorization-server contract and enterprise SSO require separate work.

01

Diaktor AI worker

Diaktor AI currently runs a persistent Java/Quarkus worker and SDK client on EC2. Its capacity, persistent state and running costs are distinct from the Lambda messaging core.

02

Provider choice

Diaktor AI supports Amazon Bedrock and OpenRouter, configured per project. Model access, tools, region and AWS permissions are assessed for each installation.

03

Context policy

Context is defined per project around use case, shareable data and token budget. The demo uses the current request. Recent exchanges, memory per room and summaries are planned customizations requiring implementation and validation.

The assistant decrypts as a participating client and sends selected context to the AI service, outside the room's E2EE boundary. Matrix keys stay with the client. AI processing location and provider terms require their own assessment alongside the customer AWS deployment.

Compatibility boundary

Standard Matrix APIs with a serverless synchronization channel.

Diaktor uses standard Matrix client-server API contracts and event formats for its implemented client operations. Synchronization is the deliberate channel change: AppSync Events WebSocket push replaces long-polling /sync. Federation is a separate boundary implemented through the standard Matrix server-server API.

LayerDiaktor implementationPractical consequence
Server-server federationStandard Matrix federation APIsRooms and messages interoperate with Synapse and other Matrix homeservers without protocol conversion.
Client-server APIStandard Matrix contracts for implemented client operationsRequests, responses, and event formats remain Matrix-native rather than introducing a product-specific messaging protocol.
Client synchronizationAppSync Events WebSocket push replacing long-polling /syncThe Diaktor web client consumes push updates; standard Matrix clients expect the HTTP /sync channel.
End-to-end encryptionmatrix-sdk-crypto in participating clientsMessages and attachments use Matrix-compatible E2EE while federation connects homeservers.
Diaktor and Synapse

A serverless Synapse alternative with a distinct operating model.

Diaktor preserves standard Matrix federation, API contracts and event semantics while replacing Synapse's always-on server model with customer-owned AWS serverless services and real-time push delivery. It adds elastic operation, a clearer customer data-plane boundary and a foundation for domain products. The deliberate trade-off is client compatibility: standard Matrix clients that depend on HTTP /sync cannot connect unchanged.

The Diaktor advantage

A more modern operating model for Matrix messaging.

  • Managed AWS services scale from idle with demand instead of requiring pre-provisioned homeserver compute.
  • AppSync Events pushes updates over WebSockets instead of holding long-polling /sync connections.
  • Messaging runtime services and data stores run in a dedicated customer AWS account. Diaktor AI sends selected context to the configured provider.
  • Standard Matrix federation is preserved directly and without protocol conversion.
  • The same secure messaging foundation can support domain-specific products.
Where Synapse retains an advantage

Existing Matrix clients can connect unchanged.

  • Standard clients can continue using the HTTP /sync channel they already support.
  • The broader standard client-server API surface is available without adopting the Diaktor web client.

When broad drop-in client compatibility is not mandatory, Diaktor provides the stronger fit for elastic, customer-owned AWS operation.

Technical questions

Questions before deployment.

Is Diaktor a Matrix homeserver?

Diaktor fulfils the homeserver role for its dedicated web client. Implemented client operations use standard Matrix contracts and event formats, while AppSync Events supplies WebSocket synchronization. Federation uses the standard server-server API directly.

Can Diaktor federate with Synapse?

Yes. Matrix server-server interoperability is a core product boundary, allowing rooms and messages to federate with Synapse and other compatible homeservers.

How does serverless capacity scale?

The messaging core responds elastically within AWS quotas and workload limits. The Diaktor AI worker currently uses persistent EC2 capacity. Capacity testing remains part of a production deployment.

Can we use Element as the primary client?

The current synchronization channel is built for the Diaktor web client. Element expects the standard long-polling /sync endpoint, while Diaktor delivers the same Matrix-native event model through AppSync Events WebSocket push.

Early access · Demo available

See serverless Matrix messaging in action.

Start with a demo and explore how Diaktor could fit your organization. The beta programme is reserved for the first five participating organizations planning a rollout to at least 500 Diaktor users, starting with a smaller beta group. Participants receive free adoption analysis and consulting, scheduled guidance, and 15% off agreed custom Diaktor AI development and other Diaktor extensions during the first three months. Explore early access.

Request a demo