Skip to main content

Backend production-grade

Does your backend buckle under load, or does every change scare you? Here is how I build and secure a backend that stays up in production.

2 Thematic clusters14 Series129 Articles

A Spring Boot backend holds up over time when the architecture defends itself. This page is for you if you have an API that slows down under load, an internal system nobody dares to touch any more, or a new project you want to start well.

I use a 4-layer Clean Architecture: separate layers that only depend towards the domain. The ArchUnit rules run together with the tests: if a layer breaks that direction, the suite fails.

Flyway migrations, the changes to the database schema, cannot be undone: I write them in small steps and with care. Security sits on several layers: JWT with real revocation on Redis, request limits per endpoint, CORS with a list of allowed origins.

Here you will find the series on software architecture and security, with the criteria I apply, the trade-offs I accept and the mistakes I avoid. I start from the stack of this site, in production on Spring Boot, and I tell you where you could do it differently. At the end there is a reading path and a way to write to me.

What you will find here

Software Architecture

How do I build a backend that holds up under load?

  1. Architecture is checked, not drawn

    The layer rules are automated tests: if someone breaks them, the suite fails. They do not depend on anyone's memory.

  2. Security comes in layers

    JWT with a revocation denylist on Redis, per-endpoint rate limits, a CORS allow-list and an SSRF guard on internal calls. Each layer covers a different risk.

  3. Migrations are written knowing there is no way back

    Flyway applies each database change only once. I write them in small steps, so a mistake costs little.

Do you have a backend to secure or to grow?

I can build it with you, through Software creation, or look at what you already have and tell you what is worth changing, through Consulting. I usually reply within 1-2 working days. I work remotely.

Book a callSee the services

See the price list · write me your problem

Frequently Asked Questions

Which backend stack do you use in production?

Spring Boot 3.4 on Java 21, a 4-layer Clean Architecture (domain, application, infrastructure, presentation), PostgreSQL 16 and Redis Stack 7. The REST endpoints are documented with Swagger.

How do you stop the architecture from degrading over time?

The ArchUnit rules run together with the tests. If a layer breaks the dependency direction toward the domain, the suite fails: the architecture does not depend on the discipline of whoever writes the next commit.

How do you manage API security?

JWT owner with HS256 signing, denylist for revocation on Redis, rate limiting per endpoint (Bucket4j), CORS whitelist and protection against SSRF on internal service calls.

Can you also help with a Spring Boot backend I already have?

Yes. I can audit the architecture, refactor toward Clean Architecture and secure a system that is already in production, starting from what carries the most risk. It falls under Consulting.

How do you handle personal data in the backend, with GDPR in mind?

I start from the GDPR principles: collect only what is needed, give the data an expiry and keep track of access. The same approach applies to management systems that issue electronic invoices or talk to Italian public administrations. It is not a compliance certification: that is for whoever handles the legal side to establish.

Written by Federico Calò, a software developer based in Salento, Italy. Available remotely, in English and Italian, CET time zone.