RadmisAIOS Book a demo

Research

One back end, five stacks. The data and the rules stayed.

The Radmis Admin Platform was built on CF Java and SQL Server. It took four days to convert it to React and Node, about 100,000 lines of code. Then it was converted to Lucee and PostgreSQL, then moved from Windows into a container on Linux. Most impressive: the whole platform was converted to run on an engine written in Rust, in two flavours, online and desktop.

Backend development

  • 4 days

    To convert the platform to React and Node, at a rate of 25,000 lines of code a day

  • 100,000

    Lines of code in the React and Node version, about

  • 205,671

    Rows moved from SQL Server to PostgreSQL, with their audit chain

  • 78.4 MB

    The whole platform, its engine and web server, as one executable written in Rust

The starting point

CF Java and SQL Server, on Windows.

The platform that runs Radmis: sign-in, tickets, workflows, the AI co-workers, the compliance registers and an audit trail on every write. Built in 191 CFML files, about 81,000 lines, on Adobe CF Java, SQL Server and IIS. It still runs there, and nothing below changed it.

The moves

Five stacks, one platform.

Each move is a copy · the original keeps running

From one engine to the next

Every move started from a copy of the code and its own database, so nothing could reach the live platform. A heavy query from the first copy slowed the live server; from then on each copy had a database of its own.

The rules travelled with the code. The documents say what must be true and why, never what the code does, so each new version could be checked against them.

  • CFML
  • Java
  • Docker
  • PostgreSQL
  • React
  • Node
  • Rust
  1. 4 daysReact, Node

    1
    A different language

    React in the browser, Node on the server: about 100,000 lines of code, converted in four days.

  2. EngineLucee

    2
    Off CF Java

    Lucee, the open-source CFML engine on Java. All 185 code files compiled, and on the first night all 108 screens answered.

  3. DatabasePostgreSQL

    3
    Off SQL Server

    56 tables, 205,671 rows, 171 MB, with their audit triggers and hash chain. Ten stored procedures became functions.

  4. ServerLinux, Docker

    4
    From Windows to Linux

    The platform and its database in containers on Linux, with no Windows server underneath.

  5. RustOnline, desktop

    No Java at all

    The whole platform on an engine written in Rust, in two flavours: online as a server, and on the desktop as one executable.

What breaks

A back end moves with its data.

A front end can be checked by looking at it. A back end has rows that must arrive whole, a database that speaks its own dialect, and engines that agree on almost everything.

The data, whole

Every row, trigger and view moved, and the audit trail's hash chain still had to verify afterwards, link by link.

The SQL dialect

Small things differ. A :: cast in a query with parameters reaches PostgreSQL as :, so every one became CAST; a case-blind search needs a different operator.

The engine's habits

On Lucee, a break and a continue of the same loop inside one try/catch both go where the last one points. Two workflow threads looped on it and the container ran out of memory overnight.

Copies and references

CF Java copies an array when it is assigned; Lucee and RustCFML do not. A scan now lists every place that changes an array it did not make.

What the engine includes

The AI library made about 170 calls to vector store and chat functions built into CF Java and missing from Lucee. Those moved as a second stage, after the platform ran without them.

Proof, screen by screen

The Lucee copy was walked screen by screen, all 108. The React version lists, area by area, where it behaves differently from the original and why.

RustCFML

The same code, no Java underneath.

RustCFML is an open-source CFML engine written in Rust: one binary, a small memory footprint, configuration in a file and no administrator console. Its authors say it was written almost entirely by AI. It began as a proof of what AI models can do.

One file to ship

The engine can append a folder of code to its own binary. Our build puts the platform's 263 files inside it: one 78.4 MB executable, with the content, logs and database settings kept beside it on disk.

Server or desktop

It runs as a Windows service, or as a desktop application that opens in its own browser window and stops when the window closes.

Gaps, worked around

With no Java, the engine stands in for a set of Java classes. A probe that makes every Java call the platform makes failed 24 of 55 tests. Our rule: work around a gap in the platform, never change the engine.

Engine, same machineSign-in page, medianFastestSlowest
RustCFML, one executable16 ms13 ms42 ms
Lucee (Java)37 ms30 ms117 ms
RustCFML, code served from files237 ms223 ms266 ms

Time to the first byte of the platform's sign-in page, 21 requests each over the office network. One page on one machine, not a load test. The same engine is fifteen times faster with the code inside the executable than reading it from files.

Conversion

The engine is a choice. The data and the rules are not.

Moving a back end used to be a project measured in quarters: a new language, a new database, a new server, and a long freeze while it happened. Here it was measured in days, with AI doing most of the work and the original never stopping.

The pace is now about 25,000 lines of code a day from one language to another, with about 50 checkpoints where a person has to make a decision.

What made that possible was not the technology. It was what sat above it: a database whose every write is audited and chained, rules written as what must be true and why, and screens that could be walked and compared. With those, CF Java, Lucee, Node and Rust became places the platform can run, chosen for cost, speed or where it has to be installed.

A back end is still harder than a front end. The data must arrive whole and provably unchanged, and two engines that agree on almost everything will disagree somewhere that matters. Every difference found on the way is now a written rule or a scan that runs before a deploy.

What we would do again

Five habits that made the moves safe.

Copy, never convert in place

The original keeps running until the new one is proven.

A database for each copy

Nothing a copy does can slow or change the live data.

Probe the engine first

Make every call the platform makes, before porting a line.

Write down each difference

A rule or a scan, so it is not found twice.

Keep the rules above the code

Say what must be true, so any version can be checked.

Conclusion

Start simple. Convert later.

The first platform you build on matters if you may want to convert to other technologies later. For AI, the easiest code to work from seems to be the simplest.

Plain HTML and CSS on the front end and a simple server language such as Adobe CF Java, JSP or PHP on the back end give a linear architecture. A request arrives, the page runs from top to bottom, the queries run, and HTML goes back. There is no build step, no framework lifecycle and no state split between the browser and the server, so the AI can follow the flow file by file. Once that version is built and working, little can go wrong in a conversion: the AI translates something that already works, and every screen can be compared with the original.

The simple version is also the shorter one. The CF Java back end is about 81,000 lines; the React and Node version of the same platform is about 100,000. The CF Java version does the same work in about a fifth fewer lines.

CF is a high-level language: what takes a library and many lines elsewhere is often one function. The latest Adobe CF Java server has AI built in, with functions such as Agent, ChatModel, ChatMemory, EmbeddingModel, VectorStore, DocumentService and MCPClient. An agent with tools, a memory and a store of your own documents takes a few calls. In Node it takes packages, configuration and code to join them. Fewer lines leave the AI less to read and less to get wrong.

So build the first version in the simplest stack that does the job, and make it work. The target technology then becomes a choice, made for cost, speed or where the platform has to run.

Your platform, where it needs to run.

Tell us where your systems have to live. An engineer will show you how the platform would run there.