Breakingbad (@Breakingbad_iv) profile picture

React + Spring Boot Developer 🚀 Documenting my backend journey with Java, PostgreSQL & Spring Boot

Joined May 2026
Photo by Breakingbad (@Breakingbad_iv)Photo by Breakingbad (@Breakingbad_iv)Photo by Breakingbad (@Breakingbad_iv)Photo by Breakingbad (@Breakingbad_iv)Photo by Breakingbad (@Breakingbad_iv)Photo by Breakingbad (@Breakingbad_iv)
Breakingbad retweeted
Twitter is cool. But it's 10x better when you connect with people who code. If you're into tech, backend, or programming, say hi.
643
37
4
1,425
56,264
Click counts and increment them on every visit
I added a few more features to my URL Shortener • URL creation with validation • Automatic short-code generation • Configurable short-code length using env variables • URL redirect endpoint • Pagination for listing shortened URLs • Reusable paginated API responses
6
I added a few more features to my URL Shortener • URL creation with validation • Automatic short-code generation • Configurable short-code length using env variables • URL redirect endpoint • Pagination for listing shortened URLs • Reusable paginated API responses
The goal isn't just to get the application running. I want the foundation to make it easy to introduce features like authentication, caching, analytics, rate limiting, and idempotency as the project evolves. #Java #SpringBoot #PostgreSQL #Docker #BackendDevelopment #BuildInPublic
1
8
The goal isn't just to get the application running. I want the foundation to make it easy to introduce features like authentication, caching, analytics, rate limiting, and idempotency as the project evolves. #Java #SpringBoot #PostgreSQL #Docker #BackendDevelopment #BuildInPublic
PostgreSQL stores shortened URLs JPA/Hibernate handles database interaction Docker containerizes the entire app Docker Compose manages the Spring Boot + PostgreSQL services. I’m separating responsibilities into layers: Controller - Service - Repository - Database
1
13
PostgreSQL stores shortened URLs JPA/Hibernate handles database interaction Docker containerizes the entire app Docker Compose manages the Spring Boot + PostgreSQL services. I’m separating responsibilities into layers: Controller - Service - Repository - Database
Before writing the actual URL-shortening logic, I wanted to set up the project with a structure that could scale beyond a simple CRUD app. Spring Web for REST API Spring Data JPA for database interaction Jakarta Validation for validating request DTOs Spring Security for auth.
1
27
Before writing the actual URL-shortening logic, I wanted to set up the project with a structure that could scale beyond a simple CRUD app. Spring Web for REST API Spring Data JPA for database interaction Jakarta Validation for validating request DTOs Spring Security for auth.
I’m building a URL shortener from scratch using Java + Spring Boot to understand the engineering behind services like Bitly:• • URL generation • Redirects • Database design • Caching • Validation • Rate limiting • Idempotency • Authentication
1
25
I’m building a URL shortener from scratch using Java + Spring Boot to understand the engineering behind services like Bitly:• • URL generation • Redirects • Database design • Caching • Validation • Rate limiting • Idempotency • Authentication
1
16
long time no post 🫤
3
Breakingbad retweeted
Me trying to understand the abbreviations I confidently wrote in my notes weeks ago.
35
3,782
69
24,581
193,261
Breakingbad retweeted
My Journey of learning backend development Today: Input Validation + Clean Errors This is where your API stops being naïve and starts being safe. Never trust client input. Ever. Here's what I learned #LearnInPublic #100DaysOfCode
1
1
1
19
My Journey of learning backend development Today: Input Validation + Clean Errors This is where your API stops being naïve and starts being safe. Never trust client input. Ever. Here's what I learned #LearnInPublic #100DaysOfCode
1
1
1
19
Why validate at the DTO level, not inside the service? Because the service shouldn't care about malformed input that's not its job. DTOs are the boundary between the outside world and your system. Keep concerns separated. One layer, one responsibility.
1
9
My API now has: - Consistent response structure - Global exception handling - Input validation with clean errors Follow along if you're on the same journey #SpringBoot #Java #LearnInPublic
10
Breakingbad retweeted
See billionaire daughter head and you wey your papa no guide dey find 700k wig😭
422
2,947
104
22,248
510,857
Breakingbad retweeted
😭🤣
29
316
6
15,249
147,395
Breakingbad retweeted
Common mistakes I learned to avoid: - Mixing raw responses with ApiResponse - Catching exceptions inside the service layer - Returning stack traces to the frontend Stack traces are for logs. Never for clients.
Why handle exceptions globally instead of in each controller? Because duplicating try/catch everywhere is: – Error-prone – Hard to keep consistent One handler = one source of truth. Change it once, and it works everywhere.
1
1
16