Welcome to your one-stop destination for all things tech! Insightful blogs, code snippets, and industry updates for developers of all levels — from Java and Spring Boot to Docker, Kafka, and AWS.
Spring Boot Native Images: Your First GraalVM Build, the Startup Numbers, and the Reflection Gotchas
A Spring Boot service starts in seconds and holds a few hundred megabytes of RAM before it serves a single request. A native image starts in milliseconds and holds a fraction of that. The price is the closed-world assumption: the compiler has to see everything your code can do at build time, and Spring Boot is one of the most dynamic frameworks in the Java ecosystem. This post builds a real service both ways and measures the difference. The service is deliberately small — four endpoints, one of them a plain hello — because the interesting part is not the service. It is the three things that break the moment you leave the JVM, and the one mechanism that fixes all three. ...
Bit Manipulation in Java Interviews: 7 Tricks That Turn O(n) Into O(1)
Every int in Java is already a 32-bit array, and the interview questions in this post are all the same question in different clothes: which identity about those bits turns a counting problem into a one-pass problem? A HashMap counts; a bit trick does not need to, because the bits already carry the information. The seven tricks below are identities, not algorithms — each one is a line of algebra with a proof you can do on a whiteboard — and each one solves a real LeetCode question (eight in all, since one trick has a one-line corollary) in O(n) time and O(1) space. The HashMap versions all work too, and the post says exactly where they lose: one integer of state instead of a table. ...
Trie: The Tree Behind Autocomplete (and 3 Interview Questions That Use It)
Type app into a search box and the suggestions appear before you finish the keystroke. The dictionary behind that box might hold a million words, but the suggestions do not take a million steps — they take four, one per letter you typed. That is the whole trie: a tree where the path from the root is the word, so every operation costs the length of its argument and nothing else. No operation in this post depends on how many words are stored. ...
Build Your First MCP App with Spring AI 2.1: A Weather Server, a Tool-Calling Client, and the Session API That Replaces ChatMemory
Your LLM knows a lot, but it does not know the weather in Toronto, the balance in your database, or the status of your build. The Model Context Protocol fixes that with one idea: the model asks for a tool by name, something on the other end runs it, and the result comes back as a message. The protocol is the same whether the tool is local or across the network, whether the client is Claude Desktop or your own Spring Boot service. It is the USB-C port for AI apps. ...
Retries Done Right: Backoff, Jitter, and the Storm That Takes Down Your Service
A payment provider goes down for two seconds. Ten of your requests are in flight when it happens, so ten of them fail. Each one retries three times. That is forty requests arriving at a service that is already struggling to stand up — and if every client waits exactly the same 200 milliseconds before retrying, those forty requests arrive in four synchronized waves, each one landing the instant the provider is most fragile. The provider recovers, sees the wave, falls over again, and your retries start their next round. This is a retry storm, and it is the only resilience pattern that can make an outage worse than doing nothing. ...