When Rocket.Chat microservices on Kubernetes are the right scale path
When a Rocket.Chat workspace slows at peak hours or needs high availability that a single instance cannot give, the path above the multi-instance tier is microservices on Kubernetes, deployed with the official Helm chart. Rocket.Chat suggests this design when peak slowdowns persist, when uptime requirements call for redundancy, or when one component, such as WebSocket connections, becomes a bottleneck that must scale on its own. The reference architectures place this design above 5,000 concurrent users, while a single instance on a MongoDB replica set is suggested up to 500 and load-balanced instances linked by NATS cover the range in between. Before choosing this path, confirm your expected concurrent users with your own usage data rather than assuming a tier from headcount.
The design splits Rocket.Chat into four services. authorization handles permission checks, accounts handles user accounts and login, presence tracks user status, and ddp-streamer holds the real-time DDP connections that deliver messages to clients. Each service can run as its own set of replicas, so the component under load is the one you scale. The services communicate through NATS, which acts as the central message bus between them. Rocket.Chat supports this design only on Kubernetes with the official Helm chart, so a team without a Kubernetes platform should treat that platform as a prerequisite, not a side task, and confirm who will operate it.
Two licensing and platform checks come before any architecture work. The microservice design requires a paid Rocket.Chat plan, so confirm the plan and quote with Rocket.Chat before committing, and note that multi-instance and microservice designs both fall under it. Then confirm that your Kubernetes version is one Rocket.Chat supports with the chart you plan to use, and that your MongoDB replica set and NATS cluster are sized for the load. A quote from a partner should list these prerequisites as separate line items, because each one has its own build and run effort.
What each microservice handles in Rocket.Chat
Rocket.Chat splits into four services that talk to each other through NATS, and each one takes a different kind of load. Matching a symptom to the service that carries it tells you what to scale first, and which services you can leave alone.
Authorization service
The authorization service checks permissions for every request, so its load grows with the number of actions users take across the workspace. If API calls and message posts slow down as user counts rise while connections stay stable, permission checks are a likely cause. Before adding replicas, confirm the slowdown with metrics from the Helm chart deployment, and check whether permission-heavy features such as large numbers of roles or channels are driving the calls. Ask your DeployOpen or Rocket.Chat contact to confirm the replica settings for this service in the chart version you run.
Microservices docsAccounts service
The accounts service handles login, session and token work, so its load follows sign-in volume. Peaks at the start of the working day, after an SSO outage, or during a forced re-authentication show up as slow logins while messages still flow. Check login latency and failure rates separately from message latency before scaling. If the identity provider is the slow part, adding accounts replicas will not help, so review the identity integration first.
Presence service
The presence service tracks which users are online, away or busy, and it broadcasts those changes to clients. Its load grows with the number of connected users and status changes, not with message volume. A symptom is delayed or stale status indicators across large channels while messages arrive on time. Measure status update rates at your expected peak before deciding whether this service needs more replicas, since a large workspace with mostly idle users may never need it.
ddp-streamer service
The ddp-streamer holds the WebSocket connections that deliver real-time updates to web and desktop clients. Rocket.Chat's documentation cites WebSocket connections as a bottleneck that can be scaled on their own, which is a main reason to split the service out. Watch open connection counts, memory per pod and reconnect storms after a restart. Plan capacity from your concurrent user count, and confirm the connections-per-pod figures with Rocket.Chat before you size the cluster.
Choosing between single instance, multi-instance and microservices
This table compares the three Rocket.Chat deployment tiers by user scale, what each requires from your platform and what each adds to daily operations. Read it to find the lowest tier that meets your concurrency and availability needs, then check the paid-plan and Kubernetes prerequisites before committing.
| Tier | Fits best when | Adds to operations | Prerequisites to confirm |
|---|---|---|---|
| Single instance with MongoDB replica set | Up to about 500 concurrent users, with one application server acceptable to the business | One application server to patch and restart, plus a MongoDB replica set to back up and monitor | MongoDB 8.0 or later as a replica set; a three-member set is strongly recommended for high availability |
| Multiple load-balanced instances linked by NATS | Above about 500 concurrent users, or when a single instance is a bottleneck or a single point of failure | Several application instances behind a load balancer, a NATS message bus, and shared MongoDB connection planning | A paid plan; confirm the NATS_URL, instance addressing and load balancer settings with Rocket.Chat documentation |
| Microservices on Kubernetes with the official Helm chart | Above about 5,000 concurrent users, or when peak slowdowns, high availability or WebSocket scaling need independent control | Separate authorization, accounts, presence and ddp-streamer workloads, each with its own replicas, resources and logs, plus Kubernetes upgrades and NATS operations | A paid plan and a Kubernetes platform your team can operate; confirm supported Kubernetes versions with the chart release notes |
| Concurrent user thresholds | Rocket.Chat reference architectures use these bands as guidance, not hard limits | Thresholds shift with message volume, file activity and hardware, so measure before you move tiers | Ask Rocket.Chat or your partner to validate the tier against your own peak load test |
| Who runs the platform | Single instance suits a small platform team; microservices assume Kubernetes skills | Each tier moves more responsibility to your team, from one server to a cluster and a message bus | Confirm on-call coverage, Kubernetes and NATS skills before choosing the tier |
| Rollback and recovery | Single instance is simplest to restore from one MongoDB backup and one application image | Multiple services and a message bus make failure modes more numerous, so runbooks must cover each component | Test restores and rolling upgrades in a non-production cluster first |
| Plan and licensing | Community and Starter plans do not cover the multi-instance and microservice designs | Tier changes can change your plan requirements, so budget conversations should follow the tier decision | Confirm plan entitlements with Rocket.Chat plans documentation before scaling out |
How the microservices connect through NATS and MongoDB
The diagram starts with client traffic entering the cluster through an ingress controller and reaching the Rocket.Chat services, including the authorization, accounts, presence and ddp-streamer services. Each service exchanges messages through NATS, which acts as the central message bus, while all services share one MongoDB replica set outside the cluster. Check that the NATS and MongoDB connections cross the trust boundary only over encrypted, authenticated links, and that the database is reachable only from the cluster network.
Client traffic, NATS message flow and MongoDB access across trust boundaries.
How to deploy microservices with the Helm chart
This sequence moves a Rocket.Chat deployment from a confirmed plan to a Kubernetes release where authorization, accounts, presence and ddp-streamer run as separate services, each with its own replica count, all coordinated through NATS and a MongoDB replica set. Each step ends with a check so the team knows the layer is ready before the next one depends on it.
Confirm the plan, Kubernetes version and Rocket.Chat release
Your team confirms that the organization holds a paid Rocket.Chat plan, since the multi-instance and microservice designs require one, and that the target Kubernetes version is one the project still maintains. Check the Kubernetes releases page for the current support window, then pick a Rocket.Chat release that is inside its support window on the version durability page. Confirm that your cluster is a conformant distribution and that your upgrade path through the version skew policy is documented. The step is done when the plan, cluster version and Rocket.Chat release are written down in the change record and nobody is relying on an end-of-life version.
Prepare the MongoDB replica set
The platform team provisions a MongoDB replica set that meets the Rocket.Chat system requirements for the chosen release, which currently means MongoDB 8.0 or later with three members recommended for high availability. Connectivity from the Rocket.Chat namespace is tested with the same connection string the chart will use, and backup placement is agreed before data arrives. The step is complete when the replica set reports a healthy primary and secondaries, and a test connection from a pod in the target namespace succeeds.
Deploy and verify NATS as the message bus
The platform team installs NATS in the same cluster, using the NATS Helm chart, so that every Rocket.Chat service can publish and subscribe through one message bus. Confirm the NATS server version against the official release list and confirm that the Rocket.Chat chart expects the NATS URL you configure. Run a simple publish and subscribe test between two pods in the namespace, and check that the NATS monitoring endpoint reports the expected connections. The step is done when the test message arrives and NATS connection counts are stable over a short observation period.
Set Helm values for each service's replicas
The platform engineer edits the Rocket.Chat Helm values file to define replica counts for authorization, accounts, presence and ddp-streamer separately, because each service scales against a different bottleneck. Set the MongoDB and NATS connection values, resource requests and limits, and the ingress host, then render the chart with a dry run to catch errors before anything is applied. The step is done when the rendered manifests show the intended replica count for each service and no configuration value is left at a placeholder.
Deploy the release and watch rollout
The platform engineer installs or upgrades the Helm release in the target namespace and watches the rollout of each Deployment until its pods are ready. Confirm that every service pod starts, that none crash on database or NATS connection errors, and that the Rocket.Chat pods reach the MongoDB replica set you prepared. Record the chart version and image tags in the change record. The step is done when every Deployment reports its desired replicas as available and the logs show no repeated connection failures.
Verify service health and NATS connectivity
The platform engineer checks the health endpoints of each service and confirms that each one has registered with NATS, using the NATS monitoring data and service logs. Confirm that the ddp-streamer pods accept WebSocket connections through the ingress and that presence updates flow between two test users. Verify that a message sent by one user is delivered to a second user connected to a different pod. The step is done when all four services show healthy status, cross-pod message delivery succeeds, and no service logs repeated NATS reconnects.
Test WebSocket behavior under load
The QA or performance team runs a load test that opens many concurrent WebSocket sessions through the ingress, with a realistic mix of messages and presence changes, and watches ddp-streamer latency, pod restarts and NATS throughput. Scale the ddp-streamer replicas up and down during the test to confirm that connections rebalance without mass disconnects. Set the test size from the user count your organization expects, and confirm the target with the Rocket.Chat sizing guidance. The step is done when latency stays within the targets you agreed, scaling events do not drop sessions, and the results are filed with the release record.
Why NATS is the message bus and what to plan for it
In a microservices split of Rocket.Chat, NATS is the central bus that the authorization, accounts, presence and ddp-streamer services use to exchange messages, so its design is part of the platform design rather than a detail of the Helm values. NATS is part of the Cloud Native Computing Foundation and is licensed under the Apache License 2.0, which means you can run and inspect the server inside infrastructure you control. The CNCF and Synadia announcement of May 1, 2025 moved the NATS trademarks to the Linux Foundation while CNCF kept the NATS.io domain and repositories and development continued under Apache-2.0. Confirm with Rocket.Chat which NATS server versions your target Rocket.Chat release supports, and track the nats-server releases (v2.15.1 and v2.14.8 were both published on October 9, 2026) through the nats-io/nats-server releases page so that security and bug fixes are applied on a planned cycle.
JetStream is the persistence layer that adds at-least-once delivery, stored streams and replayable consumers on top of core NATS, and it is a separate design decision from running the bus itself. Core NATS does not persist messages, so enabling JetStream changes your failure and recovery behavior. Confirm with Rocket.Chat whether its microservices need JetStream at all, and do not enable it on assumption. If you do run it, the NATS documentation recommends an odd number of servers, typically three or five, because JetStream clusters use a Raft majority vote. It calls R3 replication the production floor and limits a stream to at most five copies. Plan the storage for those replicas, the disk and memory for each stream, and who monitors quorum loss.
Treat the NATS cluster as an operated service with its own backup, monitoring and upgrade plan. Decide which team owns it, how it is exposed to the Kubernetes namespace, and how its metrics reach your Prometheus setup. Ask Rocket.Chat for the supported NATS client and server combinations before you schedule upgrades, and test a failover of one NATS node in a non-production cluster before go-live. Cost drivers include the number of nodes, the storage for JetStream replicas and the time your team spends on monitoring and upgrades, all of which recur after launch.
Security and operational risks of a split deployment
Splitting Rocket.Chat into microservices moves trust, state and access into Kubernetes and NATS, so the risks sit in the cluster as much as in the chat application. The cards below pair each risk with a control to plan before the first pod goes live.
Secrets stored unencrypted in etcd
Kubernetes stores Secrets unencrypted in etcd by default, and the Rocket.Chat release carries database credentials, NATS settings and other sensitive values in them. Plan encryption at rest for etcd, or move the values to an external store through the Secrets Store CSI Driver. Check that your backups of etcd are protected to the same standard as the live data, since a copy of etcd exposes the same values.
Secrets good practicesOverly broad RBAC on the namespace
Anyone who can list or watch Secrets in the Rocket.Chat namespace can read the database and NATS credentials, whatever the application itself enforces. Scope roles to the four service deployments and their service accounts, and restrict list and watch verbs on Secrets to the few people and controllers that need them. Review bindings after each Helm upgrade, because new chart versions can add objects that inherit existing permissions.
Pod Security Standards for chat workloads
The authorization, accounts, presence and ddp-streamer pods handle session tokens and user traffic, so they should not run privileged or with host namespaces. Apply the Pod Security Standards at the namespace level and choose the enforcement level your cluster can meet, starting with restricted where the chart allows it. Confirm with Rocket.Chat support which settings the official Helm chart requires before tightening a namespace, so an upgrade does not fail on admission.
Pod Security Standardsetcd backups and the odd-member rule
Each microservice depends on cluster state held in etcd, so losing the control plane store means rebuilding the workloads and their configuration. Run etcd with an odd number of members, recommended at five in production, and take snapshots with etcdctl snapshot save. Test restores with etcdutl, because an untested snapshot is not a recovery plan. Confirm where snapshots are stored and who can read them.
- Recommended production members
- 5
CIS Kubernetes Benchmark as a baseline
The CIS Kubernetes Benchmark gives a set of configuration checks for the control plane, worker nodes and policies that auditors and security teams commonly use as a reference. Run a benchmark scan against the cluster before go-live and record which items you accept as exceptions and why. Treat the result as a configuration review input, not as a certification, and confirm which benchmark version your distribution and auditors expect.
NATS account isolation on the shared bus
NATS carries the messages between all Rocket.Chat microservices, so a permissive configuration lets one component publish to or subscribe on subjects that belong to another. Define NATS accounts and user permissions so each service can only use the subjects it needs, and keep the NATS credentials out of plain configuration. Verify the policy by attempting an unauthorized subscription in a test cluster, and check the NATS version against the current nats-server releases before upgrading.
Questions teams ask before scaling Rocket.Chat on Kubernetes
Do we need Rocket.Chat microservices on Kubernetes at all?
Usually not. Rocket.Chat suggests microservices when you see slowdowns at peak usage, need high availability, or hit a single bottleneck such as WebSocket connections that must scale on their own. Reference architectures place one instance with a MongoDB replica set up to 500 concurrent users, load-balanced instances linked by NATS above 500, and microservices on Kubernetes with the official Helm chart above 5,000. Below those thresholds, the added cluster, NATS and monitoring work often costs more than it returns. Confirm your peak concurrency and the bottleneck you have measured before you commit to a split.
What drives the cost of splitting Rocket.Chat into microservices?
The main cost drivers are the size and skill of your Kubernetes platform, the number of services and replicas you run, the state you must protect, and the paid plan the design requires. The microservice design requires a paid plan, so licensing is a recurring line item. Ask any partner quote to separate one-time items (design, Helm values, migration testing, cutover) from recurring items (cluster capacity, NATS operation, upgrades, monitoring). Price is set from the written scope, and DeployOpen does not publish a price list.
How long does a microservices rollout take?
The duration depends on how much of your Kubernetes platform already exists and how well your load profile is understood. A cluster that lacks certificates, identity, backups or monitoring needs that work first. Plan separate time for load testing at expected peak, for the MongoDB and file storage changes the split depends on, and for a rollback rehearsal. No duration figure is supplied for this work, so ask for a timeline in the written scope and check which assumptions it depends on.
What does our team need to provide for this work?
You need named owners for the Kubernetes cluster, the MongoDB replica set, identity, DNS and TLS, and the on-call rotation that will receive alerts afterward. Your team should also supply current usage data: peak concurrent users, WebSocket counts, message rates and past slowdowns. Access to a staging cluster that matches production matters, because load tests are only useful against a realistic copy. Expect to decide on backup placement and the upgrade window early.
Can our own platform team run microservices without outside help?
Yes, if the team already operates Kubernetes in production, understands Helm chart values, and can run a message bus with clustering and monitoring. The skills that most often decide this are etcd and cluster upgrades, NATS operation, MongoDB replica set care, and tracing performance problems across services. Kubernetes releases roughly three times a year, and each minor version receives patch support for a limited period, so a platform team has to plan upgrades on a fixed rhythm. Assess these skills honestly against your current workload before deciding.
What does NATS add, and what can go wrong with it?
NATS is the central message bus that connects the authorization, accounts, presence and ddp-streamer services. It is Apache 2.0 licensed and part of the Cloud Native Computing Foundation. Its server is small, but a message bus is still a shared dependency: if it is undersized, unmonitored or misconfigured, every service feels the failure. Check the NATS_URL configuration, the cluster size you run, and the alerting you have on connection and slow-consumer conditions. Confirm the exact configuration keys with Rocket.Chat's microservices documentation for your release.
How do Rocket.Chat and Kubernetes upgrades change the effort?
Each upgrade touches several moving parts at once: the Rocket.Chat release, the Helm chart version, the Kubernetes minor version, and the MongoDB and NATS versions. Rocket.Chat standard releases are supported for 6 months and LTS releases for 12 months, and an unsupported version can lose connectivity with the official mobile and desktop clients. Kubernetes allows the kube-apiserver to be upgraded one minor version at a time, with nodes trailing by up to three minor versions. Plan a staging upgrade for each change and budget the recurring effort as part of the ownership quote.
When is it better not to split Rocket.Chat?
Stay on a single instance or a load-balanced set of instances when your peak concurrency is well below the thresholds and you have no measured bottleneck. Microservices also add failure modes that a smaller deployment does not have. If you only need high availability, a multi-instance design with a three-member MongoDB replica set may meet the goal with less operating surface. Revisit the decision when measured load, not projected growth, shows a bottleneck that only separate services resolve.
Keeping Kubernetes and Rocket.Chat versions aligned over time
Kubernetes and Rocket.Chat each run on their own support clock, and the microservices split means both must be planned together. Kubernetes releases arrive about three times a year on a cycle of roughly 14 weeks, and the Kubernetes project maintains only the three most recent minor releases. As of September 2026 that meant 1.37, 1.36 and 1.35, with 1.35 reaching end of life on February 28, 2027. The version skew policy requires kube-apiserver to be upgraded one minor version at a time, before kube-controller-manager, kube-scheduler and kubelets, and kubelets may run up to three minor versions behind the API server. Confirm the cluster's current minor version, the distribution vendor's own support dates and any managed control plane schedule before you commit to a Rocket.Chat release, because a managed service may lag the upstream release calendar.
Rocket.Chat has its own clock. Standard releases are supported for 6 months and LTS releases for 12 months, and after end of life a version receives no security or bug fixes. Cloud services such as the push notification gateway, Marketplace and Omnichannel integrations stop working, and unsupported versions may lose the ability to connect with the official mobile and desktop clients. Each microservice runs from the same Rocket.Chat release through the official Helm chart, so a chart upgrade moves authorization, accounts, presence and ddp-streamer together. Check the chart's supported Rocket.Chat versions and the Kubernetes minor versions it targets before choosing a target for both platforms.
Plan one change window that covers the Kubernetes minor upgrade, the NATS and MongoDB checks, and the Rocket.Chat release, and rehearse it in a non-production cluster first. Keep a written calendar with the end-of-life date for each component, and set a decision point well before each date so you never reach it on an unplanned release. Before each upgrade, take a verified etcd snapshot, a Rocket.Chat database backup and a test restore, and confirm that the NATS server version in use is still supported. A paid plan is required for the microservice design, so confirm with Rocket.Chat that your plan covers the versions you intend to run.
How DeployOpen scopes this work
DeployOpen plans and implements self-hosted Rocket.Chat inside your own infrastructure, whether that is your cloud accounts, your data centers or an air-gapped network. For a microservices move, the work starts with a written scope that names the Kubernetes cluster, the official Helm chart version, the split services in scope (authorization, accounts, presence and ddp-streamer), the NATS message bus, the MongoDB replica set that backs them, and the paid plan that the multi-instance and microservice designs require. Deliverables and timelines are agreed in that document before build work begins, so you know what is handed over and what is left to your team.
Because the platform touches identity, data and network paths, the scope also covers the evidence your security and compliance reviewers will ask for. DeployOpen can prepare that material for review, including configuration records for the Helm values, network policies, secrets handling and access roles on the cluster, and logs from load and failover tests. DeployOpen does not issue audit reports, attestations or certifications. Your auditors or certification bodies make those determinations, so confirm early which artifacts they expect and in what format.
Ask any implementation partner, DeployOpen included, to confirm in writing which Kubernetes version, Rocket.Chat release line and NATS version the scope targets, how upgrades will be handled after handover, and who owns the cluster, database and bus during day-two operations. These answers set the cost and duration of the work more than any single technical choice, so they belong in the scope before a quote is finalized.
How DeployOpen works on this
DeployOpen plans, implements, hardens, documents and supports self-hosted Rocket.Chat inside your own cloud accounts, data centers or air-gapped networks. For a microservices split on Kubernetes, the work starts with a written scope that decides which services are worth splitting and what the platform underneath must provide.
How we scope
- Review your peak concurrency, slowdown symptoms and high availability targets before deciding whether a microservice split is justified.
- Confirm the paid plan that the multi-instance and microservice designs require before any build begins.
- Agree in writing the Kubernetes distribution, MongoDB replica set, NATS setup, Helm chart version and upgrade path in scope.
How we build
- Deploy the official Helm chart with authorization, accounts, presence and ddp-streamer replicas sized to your scoped load profile.
- Configure NATS as the message bus and verify that every service reaches it, with network policies limiting traffic to required paths.
- Test failover, scaling behavior and WebSocket connection handling under load in a non-production cluster before cutover.
How we hand over
- Deliver documentation covering the Helm values, service topology, NATS configuration, secrets handling and scaling runbooks.
- Walk your platform and operations teams through routine scaling, rollback and version pinning procedures on your cluster.
- Provide the test results and a list of open decisions so your team can review the design against its own standards.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer, covering Rocket.Chat and Kubernetes version changes.
- Plan upgrades around Rocket.Chat release support windows and the Kubernetes version skew policy in your environment.
- Retest the deployment after significant changes so that scaling and security settings stay verified as your user base grows.

