Debugging and Caching with Java and Spring Boot

🚀 Day 2 — Debugging > Coding Today was less about writing code and more about understanding how things actually work. 🧠 DSA: - Started Sliding Window pattern - Practiced reducing brute force → O(n) using window techniques ⚙️ Backend (Spring + Caching): - Debugged a tricky issue with caching - Learned the difference between in-memory cache vs Redis cache - Faced a ClassCastException due to cache schema mismatch (String vs Object) - Understood how Spring caching works internally (proxy-based) 🛠️ Project (URL Shortener): - Fixed caching layer to correctly store shortCode → Url mapping - Ensured proper redirect behavior using cached data - Improved overall flow and reliability 📌 Key learning: It’s easy to write code when things work. Real growth happens when things break and you debug them. #Java #SpringBoot #BackendDevelopment #DSA #LearningInPublic

To view or add a comment, sign in

Explore content categories