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
- Beginner
Object-Oriented Programming
Complete series on object-oriented programming in TypeScript: classes, inheritance, polymorphism, encapsulation, and SOLID principles. From basic concepts to practical applications in modern web development.
- Intermediate
Design Patterns in TypeScript
Six articles on the GoF patterns in TypeScript, with listings that were run: Singleton and Factory, Builder and Prototype, Adapter, Decorator and Facade, Composite and Bridge, Observer and Strategy, Command, Chain of Responsibility and Template Method.
- Advanced
Practical Software Architecture for the Web
Software architecture for web applications: clean architecture, hexagonal architecture, DDD, CQRS, event sourcing, and architectural patterns for scalable and maintainable systems.
- Advanced
From Microservices to Modular Monolith
Distributed architectures: microservices, modular monolith, event-driven architecture, saga pattern, service mesh, and migration strategies between architectural approaches.
- Beginner
Software Development Methodologies
Software development methodologies: Agile, Scrum, Kanban, XP, TDD, BDD, continuous delivery, and best practices for high-performing development teams.
- Advanced
Platform Engineering and Internal Developer Platforms
Platform engineering: Internal Developer Platforms, golden paths, self-service infrastructure, Backstage, Crossplane, and strategies to reduce developer cognitive load.
- Advanced
Original Research
Reproducible original research, published with data and method: the LightGBM ensemble benchmark on 97,000 matches (Brier 0.5783), the engine that took 194 articles from 741 structural GEO/AEO errors down to zero, four production postmortems with root cause and anti-repetition rule, the 59-to-88 Core Web Vitals playbook, and the Clean Architecture Spring Boot template with an ArchUnit gate that genuinely runs.
- Advanced
Clean Architecture Spring Boot Template: OSS Flagship
Open source 4-layer template extracted and sanitized from a production Spring Boot 3.4 backend: JWT, Flyway, rate-limit, and an ArchUnit gate that genuinely runs. Paired with the 12 enterprise patterns of the real backend: multi-tenancy, webhook idempotency, Resilience4j.
- Intermediate
AI On-Prem vs Cloud: Privacy, Cost, and Data Sovereignty
B2B analysis with real TCO: comparison between on-prem AI (self-run models, zero provider cost) and cloud providers, covering privacy, operating costs, and data sovereignty for companies.
Security and DevOps
- Intermediate
Web Security for Developers
Web security for developers: OWASP Top 10, XSS, CSRF, SQL injection, JWT authentication, HTTPS, CSP, CORS, and best practices for securing modern web applications.
- Advanced
DevSecOps and Shift-Left Security
DevSecOps: shift-left security, SAST/DAST/SCA automation, supply chain security, container scanning, secrets management, and security-as-code in the CI/CD pipeline.
- Advanced
Detection Engineering: Building Defense Tools
Detection engineering: Sigma rules and SIEM conversion, detection-as-code with Git and CI/CD, MITRE ATT&CK mapping, SOAR playbooks in Python, STIX/TAXII threat intelligence, anomaly detection on logs, and testing detection rules.
- Intermediate
Quality Engineering for AI-Generated Code
Quality engineering for AI-generated code: testing strategies, code review automation, mutation testing, property-based testing, and quality metrics for the AI coding era.
- Advanced
Observability and OpenTelemetry
Modern observability: OpenTelemetry, distributed tracing, metrics, logging, alerting, SLO/SLI, and strategies for observable production systems.
How do I build a backend that holds up under load?
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.
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.
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.
Where to start
Three series to begin with, in the order I would read them.
- Advanced
Clean Architecture Spring Boot Template: OSS Flagship
Open source 4-layer template extracted and sanitized from a production Spring Boot 3.4 backend: JWT, Flyway, rate-limit, and an ArchUnit gate that genuinely runs. Paired with the 12 enterprise patterns of the real backend: multi-tenancy, webhook idempotency, Resilience4j.
- Advanced
From Microservices to Modular Monolith
Distributed architectures: microservices, modular monolith, event-driven architecture, saga pattern, service mesh, and migration strategies between architectural approaches.
- Intermediate
Web Security for Developers
Web security for developers: OWASP Top 10, XSS, CSRF, SQL injection, JWT authentication, HTTPS, CSP, CORS, and best practices for securing modern web applications.
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.
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.