Canine: response times in Assure
November 2026 · architect and developer · Canine Development
One read model per screen over more than 100 GB of data. Response times from 0.5–5 seconds to 25–90 milliseconds.
Read the full case
- The challenge
- Assure shows data from more than 100 GB: about 61,000 scans of more than 7,000 repositories, 3.5 billion lines of code scanned in total and 4.2 million findings. The screens had response times from 500 ms at best to 5 seconds at worst.
- What I did
- Moved to using event sourcing and vertical slice architecture (VSA) to build a read model, a projection, per screen, so each page has its data ready when it opens.
- Choices and trade-offs
- More read models to maintain, but each screen owns its own slice, and the events make it possible to rebuild a projection when a screen changes.
- The result
- Response times between 25 ms at best and 90 ms at worst.
- Stack
- C# and .NET · event sourcing · vertical slice architecture · projections
Mjølner/Norlys: an OOM bug after more than a year
September 2026 · solution and software architect, tech lead · with AI
A service that had been restarted by OOM for over a year, solved in 6 hours with AI. Afterwards 50% less RAM in Azure.
Read the full case
- The challenge
- A service was restarted automatically because it ran out of memory (OOM), and it had been going on for over a year. Several skilled developers had tried, including tuning the garbage collector, without success. Meanwhile more and more RAM had been allocated to keep it running.
- What I did
- Took on the task at the end of September with AI: AI built the realistic test data, was a sparring partner on possible causes, wrote the automated tests that made up the measurements, and documented the cause and the fix afterwards. First a local database with fictitious data that resembled the real data in structure and composition. Then we measured memory use per endpoint and then per part of the code in each endpoint, until we had a precise theory and could reproduce the bug every time. The cause was a service registered as transient, so the DI container held on to every instance and memory grew with every call. The fix was to register it as scoped.
- Choices and trade-offs
- Measure first, fix afterwards. Building realistic test data took time, but once the bug could be reproduced, the fix itself was a formality.
- The result
- A solution after 6 hours. Two weeks of measurements, first in test and then in production, showed the problem was completely gone. A more stable service with better and more predictable response times, better uptime and cheaper operation: 50% less RAM in Azure.
- Stack
- C# and .NET · Azure · memory profiling · AI-assisted troubleshooting
Norlys: typed clients against Cerillion
2022–24 · tech lead
Generated, typed clients against an undocumented system, so errors are caught at build time, before they reach customers.
Read the full case
- The challenge
- A new self-service platform for private customers that had to talk to Cerillion through thousands of undocumented or wrongly documented endpoints.
- What I did
- Backend-for-frontend with GraphQL and OpenAPI and auto-generated, strongly typed TypeScript clients. Defensive integration patterns with automatic validation, and a CI/CD pipeline with integration tests and feature flags.
- Choices and trade-offs
- Generated clients rather than hand-written calls. It added a layer, but when Cerillion did not behave as documented, it was caught at build time and in validation, before it reached customers. The BFF kept the frontend free of the backend's quirks.
- The result
- Customers can manage subscriptions, switch products and buy add-ons themselves. The team works with RED–GREEN TDD and can release frontend, backend and integrations independently.
- Stack
- C# and .NET · GraphQL · OpenAPI · TypeScript · CI/CD · feature flags
Sustainor: two graphs, millions of rows, millisecond answers
2021–22 · software architect · consultant
Two graphs with millions of rows had to be merged and searched recursively. The answer came in milliseconds instead of growing with every level.
Read the full case
- The challenge
- Two hierarchies had to be merged and searched recursively across millions of rows. Done the straightforward way with recursive SQL queries, the response time grows with every level, and the system becomes unusable as the data grows. I have seen the same problem "solved" with a 30-second pause waiting for the answer.
- What I did
- Modelled the graphs with a Closure Table: every link between an ancestor and a descendant stored as a row. A recursive search then becomes one indexed lookup instead of many round trips to the database.
- Choices and trade-offs
- A Closure Table costs more space and more work every time the graphs change, because the links must be kept up to date. In return reading is fast and predictable, and reading was what had to be fast.
- The result
- Recursive searches across both graphs with millisecond answers, even with millions of rows.
- Stack
- SQL · Closure Table · C# and .NET
Spectronic
2008 · project manager and tech lead · lawful interception
A terrorism case where Google, among others, had given up. From an 8-hour timeout to 100 ms, and the terrorist was caught.
Read the full case
- The challenge
- A customer was in the middle of an active terrorism case. Searching the system's data ran for 8 hours and ended in a timeout with no results. Others, Google among them, had tried to solve it without success.
- What I did
- Built a proof of concept locally on limited test data. Brought in our database expert Jesper Møller (today Head of IT and Digitalisation at Verdo), and together we exploited technical details in Oracle. We then implemented the solution on the customer's own hardware and data, at a high-security installation and under the supervision of the country's head of security.
- Choices and trade-offs
- Prove the idea locally first, on poor test data, instead of waiting for access to the real data. It was a risk, and it worked.
- The result
- After a couple of weeks, the head of security typed in a search himself that he knew the answer to. 100 milliseconds later, the real results started pouring in. The terrorist was caught.
- Stack
- C# and .NET · Oracle · data modelling · query optimisation