Program JavaZone

Lyntale Torsdag 3. september

Your Service Layer Is a Mess (Here's a Simple Fix)

Room 6

Engelsk 20 min architecture backend testing maintainability

Jarle Mathiesen

Jarle Mathiesen is a senior consultant at Knowit and has been working as a consultant for 8 years. He is a full stack developer with a strong focus on backend systems.

He cares deeply about architecture, building robust and testable systems, and keeping designs simple. He is also interested in software craftsmanship and how AI agents are changing the way we build software.

Service layers often start simple but slowly turn into a mix of business logic, infrastructure calls, and "just one more thing". The result is hard-to-read code, fragile tests, and a structure that depends more on discipline than design.

There are well-known solutions like onion, hexagonal, or clean architecture. They work - but they also require a lot of upfront understanding and ongoing effort to keep intact. In practice, many teams don't fully adopt them.

In this talk, I'll share a small, practical approach I've used to bring structure back into service layers - without introducing heavy patterns or requiring everyone to "buy in" to a big architectural model.

We'll look at a real example, how it evolves, and what changes make the biggest difference. The focus is on something you can apply immediately, even in an existing codebase.

Backend developers who have experienced service code becoming messy or hard to maintain. Attendeed will leave with a simple, practical way to structure their code and make it easier to work with.

  1. A Brief History of Artificial Intelligence Room 1
  2. Modules didn't fail. Build tools did. Room 2
  3. We're making this a lot harder than it needs to be Room 3
  4. You don't need a frontend, you just need Kotlin Room 4
  5. Steinras, flom og IT-systemer fra 90-tallet - IT-utvikling når ikke alt går på skinner! Room 5
  6. An Opinionated Guide to Bulletproof APIs with Java Room 7
  7. Fra 123 entusiastiske brukere daglig, til 3.7 millioner, Norgespris som arkitektur katalysator i Elhub Room 8