01Phase 1
Where it started
The first version of the architecture: the diagram we designed the platform around at the start of the project.

Terralink lets company staff reach their work computers straight from the browser, with nothing to install. We built the platform from the ground up: the research, the interface, the architecture and the code. It runs on Next.js, Laravel and Apache Guacamole, on a multi-tier architecture on AWS.

Someone opens their work computer in a browser tab. No VPN client, no desktop app, nothing to install. And the company sees and controls every connection.

Context
Terralink lets a company's staff and contractors open a work computer straight in their browser. Someone signs in, picks a machine and works on a Windows desktop over RDP as if they were sitting in front of it.
Remote access raises the stakes, so the business needs security and oversight along with it. We built the platform from the ground up, from the research and the interface to the architecture and the code, and we are still building on it.
The brief
Core
At the centre of Terralink sits Apache Guacamole, an open gateway that turns remote-desktop protocols into a stream a browser can render. A Java servlet takes the browser connection, while a native daemon called guacd speaks RDP to the machine on the other end.
Guacamole does the hard translation. Our job was to build the product around it, the part that makes it a tool for a business rather than a lab experiment.

Session
A remote desktop is only useful if it stops feeling remote. So the session carries what people expect from the computer in front of them.

Copy and paste works between the user's own computer and the remote session.
File transfer inside the session, with whole folders you can pull down as a zip.
Hit print inside the remote Windows session and the dialog opens on your own computer, on your own printer.
Details like that are the difference between a demo and a tool people are happy to use all day.
Control
Letting people into machines from anywhere raises the stakes, so security was never an afterthought. Terralink is multi-tenant, and control sits in three layers.
01
The global administrator sets up companies and watches over the whole system. Each company has its own administrator, who runs its users, connections and permissions. A user reaches only what they have been granted.

02
Administrators can watch active sessions and end any of them, and the user is told when an administrator has closed theirs. Overdue sessions close themselves at a set hour.

03
Connections are logged, filterable and exportable. Scheduled email reports arrive in an administrator's inbox on their own. The system tells a real logout apart from a dropped connection, so the records stay honest.

04
Sign-in is protected with two-factor authentication over TOTP, with password expiry and geo-fencing available on top. Onboarding a company comes with enrolment tracking and mandatory documents, and removing one means typing its name first.





Architecture
Remote desktops are heavy work, and the load is lumpy: a quiet morning can turn into fifty people connecting at once. So the architecture splits the work up and lets each part scale on its own.
01Phase 1
The first version of the architecture: the diagram we designed the platform around at the start of the project.

02Phase 2
How the first version evolved during the build: the browser connects to the Guacamole tunnel, which checks session access, while Next.js talks to the Laravel backend.

03Phase 3
Phase 2 carried too many load balancers. In the final layout we also improved how the backend (API) and frontend tier and the Guacamole and servlet tier scale together.

Load tests
The riskiest piece of a system like this is the tunnel itself: the servlet and guacd carry every keystroke and every frame between the browser and the machine.
So before launch we pushed the tunnelling layer until we knew how it behaved under real load, rather than finding out in production. A good deal of why connections stay smooth on a busy day traces back to that work.

Under the hood
The platform has to stay quick and steady when everyone piles on at nine in the morning. These are the decisions that make that happen.
Traffic arrives through a firewall and a load balancer, then fans out to independent auto-scaling groups. One runs the Next.js frontend and the Laravel API, another runs Guacamole with the servlet and guacd. The Windows terminal servers sit in their own groups and scale separately from everything else.
PostgreSQL holds the accounts, the connections and the session history. Redis keeps sessions, tokens and cache in memory. A dedicated network load balancer spreads RDP traffic across the terminal servers, backed by shared file storage, an S3 bucket and an Active Directory domain controller.
The gateway that handles the desktop is a separate service from the Laravel backend that knows who the user is. When a signed-in user asks to connect, the backend issues a short-lived UUID token for that one session, and Guacamole honours it. The user never touches a credential for the target machine.
Platform stack
Timeline
We delivered the platform between November 2024 and June 2025 and are still building on it.
Nov 2024
Kick-off and the first version of the architecture, the one we designed the platform around.
Nov 2024–Jun 2025
Development and the architecture in three phases.
Feb 2025
The first deployment to AWS and load tests of the tunnel, the servlet and guacd, before launch.
Jun 2025
The platform is delivered: remote access from the browser for many companies.
Today
We are working on remote streaming and the way users are handled in the dashboard.
Results
monthsfrom kick-off to a delivered platform (November 2024–June 2025)
Terralink turns any browser into a secure door to the office. The company has remote access its people find simple and its administrators can genuinely control, on an architecture built to stay fast as it grows.
Their level of courage and problem-solving mindset was impressive.
Prakhar Jalan
CEO at Terralink Cloud Solutions
Tell us about your project. We’ll help you plan the architecture, scope, and execution.

