
React + Spring Boot Developer 🚀 Documenting my backend journey with Java, PostgreSQL & Spring Boot
Joined May 2026
- Tweets39
- Following45
- Followers3
- Likes30
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.
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
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
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
Breakingbad retweeted
Me trying to understand the abbreviations I confidently wrote in my notes weeks ago.
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
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
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ðŸ˜
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.









