Situation
A Swiss water and wastewater automation vendor owned a modular data platform used by about 100 plants in four countries to monitor, analyse and optimise operations from PLC and control-system data. It had grown for years without a dedicated software team. Every plant ran its own hand-tuned installation, some on several versions at once. Deployments were manual zip packages copied over SSH or USB. Secrets lived in configuration files, there were no automated tests, and logs were hard to reach. Process engineers spent their time on technical workarounds instead of consulting, and engineers and customers had lost trust in the software's stability and its data. The vendor needed a software partner to take over development, stabilise and modernise the platform, and help decide where the product should go.
What we built
The relationship started small in 2020 with a fixed-scope module, a master dashboard built in two months for a trade fair, followed by a Modbus TCP/IP import for PLCs. In March 2021 the vendor handed the entire development of the platform to Encode: features, bug fixes, architecture, technical debt, QA, automated tests, CI/CD, documentation and DevOps. From then until April 2023 Encode was the only team developing the platform, with a part-time project manager, two engineers and part-time QA.
Over two years we containerised the platform and built a repeatable deployment pipeline for three kinds of site: plants on a shared cloud server, plants on their own online server, and plants with no internet at all. We moved towards one universal image with per-plant plugin selection, improved secrets handling and monitoring, worked through a backlog of alarms, asset management, reporting and performance issues, and introduced a QA and release process with a weekly written status.
In 2022, we interviewed the vendor's engineers, analysed usage logs from about 80 percent of the installations, assessed the architecture against the twelve-factor method, and delivered a written strategy. The usage data showed most plugins unused and custom scripting dominant, which redirected the roadmap towards stability and standard templates. The strategy asked the vendor to clarify product versus service, freeze features to pay down debt, double the team or trim the roadmap, and explore proofs of concept. It also laid out options for building the vendor its own software department.
The hard part
Three kinds of plant had to take the same release. The manual pipeline could not do that reliably across installations on several versions: a package generated on a laptop, a zip copied by SSH or USB, install and update scripts run on the plant. We replaced it with a container-based deployment per plant: backend, frontend, workers, databases and reverse proxy as containers, configuration from the environment, logs in one place, pull-based updates for connected plants, and USB-delivered images for the offline ones. The design went one step further, to a universal image with a plugin repository and per-plant builds, a container registry, a key vault for secrets and the option of one pod per plant on Kubernetes. From the April 2022 release, containerised deployment was the vendor's standard update path.
The other hard part was the backlog. The platform predated us, its core, plugins and frontend were the vendor's, and the open-promises list we prioritised in October 2022 held 177 bug tickets, each with bound effort per release. The strategy followed the usage data. The vendor's product lead told us in a 2022 feedback session that working with Encode had been the best experience he had had with anyone who had worked on the product.
Outcome
- About 100 plant installations across four countries, on cloud, on-premise online and fully offline servers (plant lists, 2022).
- Containerised deployment the standard update path from the April 2022 release. At least half of the installations ran on containers by the end of the engagement (client roadmap, February 2022).
- All platform development from March 2021 to April 2023 was Encode's work.
- A master dashboard module delivered on a two-month deadline for a trade fair (February to April 2020).
- Usage analysis of about 80 percent of installations and a written strategy for the product's future (June 2022).
- 177 open bug tickets prioritised with bound effort per release (October 2022).
- Handed over in April 2023 with development, technical documentation, QA, CI/CD and DevOps documented for the vendor's team.
What changed: a platform deployed by hand at every plant became one that takes a release the same way whether the plant is in the cloud, on its own server or offline. Secrets, logs and updates are handled alike everywhere.
Fact sheet
| Client | a Swiss water and wastewater automation vendor, with installations in four countries. |
|---|---|
| Engagement | a fixed-price module in 2020, then a development services agreement from March 2021 to April 2023 (part-time project manager, two engineers, part-time QA), including a strategic review in 2022. Handed over in April 2023. |
| How we worked together | a weekly sync with the vendor's product lead and process engineers, a board mirrored from the vendor's tracker, a QA stage before done, a weekly written status, two mutual visits planned in 2022. The vendor owned the product and user documentation, Encode owned development, technical documentation, QA, CI/CD and DevOps. |
| Platform | Python backend with background workers, a JavaScript frontend, a time-series database for measurements and a document database for configuration, per-plant plugins for data sources (PLC, control systems, OPC, Modbus, SQL, files) and analysis modules (reporting, asset management, sewer explorer, sludge-age and precipitation optimisers, pump monitoring, signal fault detection, trend charts, Sankey diagrams). |
| Deployment | Docker and Docker Compose per plant, a cloud provider's VMs, container registry and key vault, three CI systems over the engagement, on-premise Linux servers, offline installations by USB, remote monitoring of installations. |
| Integrations | Siemens S7, Modbus TCP/IP, OPC, the vendor's own control system, SQL sources, file sources. |
| Numbers | about 100 plants, 4 countries, 3 installation types, 177 tickets triaged, usage data from about 80 percent of installations, 2 months for the first module. |