Skip to content
IT Optimization
DevelopmentJuly 18, 2026•12 min

Messenger development: how a corporate messenger works

Building a messenger today almost always means building a corporate messenger: companies are moving away from foreign services and want to keep their conversations in-house. Let's look at what such a system is made of, what is hard about it and where it makes sense to start.

Messenger development: how a corporate messenger works
Cover image generated with AI

Why a company needs its own messenger

Off-the-shelf services are convenient right up to the moment your conversations become an asset. Then come the questions someone else's cloud does not answer: where the messages physically sit, who has access to them, what happens if the service is switched off tomorrow, and how you explain to an inspector that your trade secrets are stored on a server in another jurisdiction.

The second motive is processes. In an ordinary messenger, conversation lives apart from the work: a request is discussed in a chat but logged in another system, and there is no link between the two. Your own messenger can be fused with your business system so that approvals, notifications about new requests and the discussion itself all end up in one place.

The third is control. An employee leaves, and you need to revoke their access but keep their correspondence. An audit arrives, and you need to pull up a discussion from the year before last. In someone else's service this is either impossible or possible only on their terms.

Hence the typical client: a company where staff correspondence is part of its trade secrets, an industry platform where communication is part of the product, or an organisation with requirements on where its data is hosted.

Import substitution: why companies are leaving foreign services now

The wave of requests for corporate messengers did not grow out of an abstract love of home-grown software. Some foreign services stopped renewing corporate subscriptions for Russian companies, some restricted features, and some simply became impossible to pay for.

For a company this is not a question of convenience but an operational risk: all internal communication hinges on a tool that can switch off without warning and without any way to export the history.

Then there is the regulatory layer. If personal data about employees or clients appears in the conversations, storing it falls under Federal Law 152-FZ, Russia's personal data law, and the requirement to host databases on Russian territory turns the choice of service into a legal question rather than a matter of taste.

The practical conclusion: a migration is almost never urgent while the service works, and it always becomes urgent the day it stops. So it is wiser to plan the move in advance, all the more so because transferring the message history is a separate task in its own right.

Three scenarios, not just corporate

"Messenger development" covers three rather different tasks, and confusing them is expensive.

A corporate messenger is for internal communication between employees. The key requirements: hosting on your own servers, roles and permissions, integration with corporate accounts, and the ability to administer and archive. Users are known in advance, so no sign-up is needed.

A chat inside a product is messaging as part of a platform: buyer and seller on a marketplace, client and contractor on a services platform, the parties to a deal. Here the users are external and strangers to one another, so moderation, complaints, protection against spam and against deals being taken off the platform come to the fore.

A client channel is how a company talks to its customers instead of through someone else's support widget. The key thing here is the conversation history, which stays with you and is linked to the client's record in your CRM.

Technically, all three share the same core: delivering and storing messages. Where they differ is in what surrounds that core: for the corporate one it is administration and security, for the product one it is moderation, for the client one it is integration with sales.

What a messenger is made of

Client apps are what the user sees: a web version, iOS and Android apps, sometimes a desktop app. They handle the interface, local storage of the history and keeping things working when the connection drops.

The server accepts messages, distributes them to recipients, stores the history, and manages users and permissions. This is the core, and it is what decides whether the system can cope with growth.

Real-time transport is the mechanism that makes a message appear for the other person immediately rather than after a page refresh.

Storage means a message database and a separate file store. Keeping them apart is a must: text conversations and attachments grow at different rates and need different handling.

Push notifications deliver messages when the app is closed. A subtle point for a corporate product: on mobile operating systems, notifications travel through the phone maker's infrastructure, so if a message is sensitive, its content is not put into the push text.

The admin side covers managing users, roles, channels and retention policies. In the corporate scenario it is the part most often underestimated, and without it the system cannot be run.

How a message reaches the other person

A persistent connection. Real-time messaging is built on WebSocket: a channel that stays open, so the server can push data into it on its own without waiting for a request. Where the connection is unstable, fallback mechanisms and smart reconnection are added.

Queues and acknowledgements. A message does not count as delivered until the recipient has confirmed it. Hence the familiar ticks: sent, delivered, read. Behind them is not interface decoration but a protocol that guarantees a message is not lost if the connection breaks halfway.

Ordering and duplicates. Two non-obvious problems that surface under real load. Messages can arrive in a different order from the one they were sent in, and when resent after a dropped connection they can be duplicated. This is solved with client-side identifiers and server-side numbering, and it has to be built in from the start: reworking it later is painful.

Working offline. The app must be able to accept a message, show it as unsent and deliver it once the connection is back. For a mobile client this is a mandatory part, not an enhancement.

Calls. Audio and video run over WebRTC, and where possible the traffic goes directly between devices. But "where possible" means that on a corporate network with a strict firewall you will need a relay server, and it has to be planned for in advance.

Storage and encryption

Transport encryption is the mandatory minimum: the channel between client and server is protected, and the conversation cannot be intercepted in transit. It is everywhere and is not up for discussion.

End-to-end encryption is another story. With it, messages are decrypted only on the participants' devices, and the server physically cannot read the conversation. It sounds like an unqualified good, but for a corporate system it is a trade-off, not an upgrade.

The thing is, along with the ability to read conversations the server loses everything else: server-side search through the history, an archive for audits and investigations, history recovery when a device is lost, moderation. A company that is obliged to retain business correspondence cannot do so with end-to-end encryption.

That is why corporate products usually opt for a middle ground: channel encryption and storage encryption, role-based access, logging of data access, and end-to-end encryption applied selectively, for particular private chats where it is genuinely needed.

The answer to "so what is the right way?" depends not on technology but on whom you have to trust and whom you answer to. This is worth talking through before development starts, because reworking the storage architecture later is the most expensive change of all.

Integrations you cannot do without

Corporate accounts. An employee should not have to create yet another password: sign-in goes through the existing user directory, whether Active Directory, LDAP or corporate SSO. This also settles the question of people leaving: access is revoked in one place.

Notifications from internal systems. The most underrated feature, and at the same time the one that pays off best: a request from your business system, an order status or a contract approval arrives in the chat where people already are, not in the email they open twice a day.

Bots and scenarios. Automatic answers to routine internal questions, on-call alerts, taking in support requests.

A link to the CRM in the client scenario: the conversation is attached to the client's record, and the manager sees the whole history, not just the last three messages.

It is the integrations that usually decide whether the system takes root. Employees have no use for a messenger that merely repeats what WhatsApp already does: people go back to the familiar tool within a month. The one that takes root is the one that has something the others do not.

Where it all gets deployed

The cloud. Quick and cheap to start with, and suited to product scenarios with no requirements on where data is hosted.

Your own server. The default compromise for the corporate case: the data stays with you, the infrastructure is clear, and maintenance is handled by you or by a contractor.

A closed network. The system runs on a network with no internet access. This is the strictest option, and it changes the whole project: updates have to be delivered manually, external services are unavailable, and mobile push notifications in their usual form are impossible, so they are replaced by mechanisms of your own. If a closed network is in the requirements, it needs to be raised at the first meeting, not halfway through development.

Where to start and what not to do straight away

A messenger is best built in iterations, and the first version should be boring: one-to-one and group chats, sending text and files, notifications, a web interface. That is enough for people to start using it and for you to see what they actually lack.

What people almost always ask for at the start and what is almost always worth postponing: video calls, end-to-end encryption, desktop apps, complex access rights, bots. Each of these is expensive, and almost none of them gets used in the first version.

What cannot be postponed, because reworking it after the fact costs more: the message storage scheme, the mechanism for ordering and duplicates, the model of roles and permissions, and the sign-in method. This is the foundation.

And, separately, migrating the history from the old service. The task looks like a technical trifle, but in practice it turns out to be comparable in scope to building a separate feature, especially if the old service exports its data in an awkward format.

Timelines and budget

A first working version (chats, channels, a web interface, accounts and roles) takes about a month and a half and costs from $2 400.

A version you can use in earnest, with file sharing, iOS and Android mobile clients, integrations with internal systems and administration: two to three months, from $3 600.

A system in a closed network with higher resilience requirements and planned ongoing development: from four months and from $6 000.

Three things affect the estimate most: the number of platforms (each mobile client is a separate piece of work), how strict the hosting and security requirements are, and the number of systems it has to work with. We keep current packages and the scope of work on the service page.

Common mistakes

Trying to copy Telegram. Competing with a product that has thousands of person-years invested in it is pointless and unnecessary: the value of a corporate messenger lies not in a wealth of features but in the fact that it is yours and knows your processes.

Leaving administration for later. A system without user and permission management cannot be operated, and bolting it onto a running product is awkward.

Forgetting about migrating the history and about training people. A technically flawless messenger that nobody has been moved onto stays empty.

Choosing end-to-end encryption by default without checking whether it conflicts with your own requirements for retaining correspondence.

And the most common one: launching everything at once. A project that spends six months being built "in full" comes out just as half the requirements have gone out of date.

The short version

  • Demand for in-house messengers today is mostly corporate: moving off foreign services and requirements on where data is hosted.
  • All scenarios share the same core, delivering and storing messages; they differ in administration, moderation and integrations.
  • Message ordering, duplicates, the storage scheme and the permissions model are built in from the start, since reworking them costs the most.
  • End-to-end encryption deprives the server of search, an archive and moderation, so in a corporate system it is a trade-off, not an upgrade.
  • The messenger that takes root is the one with something the familiar ones lack: notifications and requests from internal systems.
  • The first version should be boring: chats, files, notifications, web. Calls and encryption are almost always worth postponing.

Hand it to us

Understanding it yourself is one thing; getting it built and working is another. These are the areas where we solve the problems this article is about.

Tell us what you need built

Write to us whichever way suits you — messenger, phone or email. We will reply and suggest a way of working.

Telegram@dujaiiWhatsApp+7 996 326-61-61