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.

~/cases/cowolasmvp
client: Advancience, Basel University
service: startup consulting
product: MVP in healthcare
stack: Scala, Docker, GitLab CI, Grafana, ELK, Sentry

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.

~/cowolas/architecture
gitlab/All code in one place, with a first test that the app compiles and does one useful thing.
ci/GitLab CI tests and delivers every new version. A push to a branch deploys it.
servers/Dockerized services on the university's servers, ready to scale up or out.
monitoring/Grafana and Prometheus for technical and product metrics, ELK for logs, Sentry for errors.

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.

// an early product that's hard to deploy? that's a 30-minute conversation.book a call →

From the first call to routine.

  1. first call
    Why Scala

    The previous team chose professional tools that pay off later. The cost: complex tools can slow development down.

  2. report
    Assessment

    We reviewed the code base, named what slowed development, and described vertical and horizontal scaling.

  3. examples
    Docker and CI/CD

    One service dockerized and delivered through GitLab CI, as a template for the rest.

  4. next
    Logs, deploys, metrics

    Centralized logging in ELK, deploys on git push to a branch, monitoring and alerts in Grafana and Prometheus.

  5. after
    On call for questions

    We kept consulting on the new tools, set up on-prem Sentry and pgHero, and suggested a structure for event logs.

// what we took from it

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.

~/next-step
$ book-call --with yevhenii --30min
→ no sales pitch
→ your problem, and how we'd approach it
→ an honest no if we're not the right team
→ NDA before details, if you need one