An early healthcare product, made easy to deploy and scale.
How we helped a Basel University startup get past its infrastructure problems: an assessment, scaling plans, CI/CD, monitoring and a security audit, so the team could get back to research.
A research product slowed down by its own infrastructure.
Advancience, a startup at Basel University, combines psychometrics and computer games so that doctors can diagnose mental illness early, starting with ADHD and Alzheimer's disease.
The early product had a Scala back end made of microservices, and it already struggled to deploy and scale. That is unusual this early: in our practice, infrastructure is rarely more than 5% of monthly spend. The client worried that technical questions would block testing the science and the business.
The product collects and analyses people's data, so security mistakes were not an option in this market.
From git push to production.
First an assessment report and scaling plans, then working examples on one microservice that the team could repeat on the rest.
Where the engineering went.
Portable in one move
Dependencies documented in readme.md, settings moved to .env files, performance limits written down with a way to test them, and a scenario for moving to another server.
Scaling both ways
A vertical plan on cost-effective servers such as Hetzner Cloud, and a horizontal one for CPU-bound services, including the risks of distributed work, like one task going to two workers.
Delivery the team could repeat
One microservice wrapped in Docker, deployed to production and documented, then a GitLab CI pipeline for it. Working examples over long explanations.
Security for health data
A technical audit and workshops on SQL injection, XSS, vulnerable dependencies and weak authentication, with a plan to reduce the threats.
From the first call to routine.
- first callWhy Scala
The previous team chose professional tools that pay off later. The cost: complex tools can slow development down.
- reportAssessment
We reviewed the code base, named what slowed development, and described vertical and horizontal scaling.
- examplesDocker and CI/CD
One service dockerized and delivered through GitLab CI, as a template for the rest.
- nextLogs, deploys, metrics
Centralized logging in ELK, deploys on git push to a branch, monitoring and alerts in Grafana and Prometheus.
- afterOn call for questions
We kept consulting on the new tools, set up on-prem Sentry and pgHero, and suggested a structure for event logs.
Even when we only advise on technical questions, we need to understand the client's business model. Without it we'd get stuck in details and miss the real problem.
Have an idea, or a product that needs to grow?
Book 30 minutes with Yevhenii. Bring the hard part.