top of page


Tutorials, Errors and Exceptions
Its a journey to understand things better. It will have tutorials, any error/exceptions encountered, its resolutions and lots of learning.

Search


Building Production-Grade Apache Kafka Consumer Patterns
A deep-dive into manual offset management, dead letter queues, and observability with Spring Boot + Apache Kafka. This is part 2 of the series Stream Metrics application. In Part 1 we built the producer, today we add the consumer. Why This Matters Most tutorials show you how to build a Kafka consumer. They show you @KafkaListener, they show you how to read a message, and they call it production-ready. It is not! Production Kafka consumers need to answer hard questions: What
Ankit Agrahari
Feb 186 min read


Building a Production Kafka Producer
Love how it rhymes "Production Kafka Producer". Here's to coding in an era of AI Agents. They suggest and are confident that this time it will work, but then this cluster has its own plan, and it starts misbehaving -- sometimes listens, and on others, feels cornered by his other siblings. This is the Tale of making the brothers listen and show how the configurations works when we enter the world of multi-node cluster in Kafka and Spring. Stream Metrics: StreamMetrics is a re
Ankit Agrahari
Feb 165 min read


Reactive Programming in Java with Spring (AI Generated)
Generative AI Harnessing the power of reactive programming in Java opens up endless opportunities for crafting responsive, resilient...
Ankit Agrahari
May 9, 20253 min read




Aspect Programming in Spring - Logging
Spring provides a simple and powerful way of writing custom wrappers function which can be executed around a range of methods....
Ankit Agrahari
Oct 27, 20235 min read


Externalize Spring Boot Configuration
In this post, we will discuss on fetching the Spring boot configuration values from outside the application jar file. We will discuss on...
Ankit Agrahari
Sep 20, 20224 min read


Reactive Programming in Java
In this post, we will try to understand the basics of the Reactive programming, what are the core features of it and how to handle the...
Ankit Agrahari
Sep 11, 20223 min read


Dynamic Scheduling any REST API's
Spring boot provides an easy option of scheduling tasks which will be triggered when the interval or time is right. We can use the...
Ankit Agrahari
Jul 19, 20224 min read


Spring Boot Application External Configurations
Spring boot application provides a quick and elegant way to create REST API's with minimal boiler plate code and resolves any dependency...
Ankit Agrahari
May 29, 20225 min read


Junit5 with Mockito Framework
In this blog post we will talk about one of the testing framework which I wanted to try it on, and rather use it in my day to day coding....
Ankit Agrahari
Apr 18, 20227 min read


Spring4Shell - Zero Day Vulnerability in Spring Framework
In the days of Vulnerabilities, the famous Spring framework is the latest victim, which has quite a turns of event for the CVE identified...
Ankit Agrahari
Apr 1, 20223 min read


Spring Data JPA with MongoDB
In this post we will create a simple Spring JPA project which will connect to MongoDB and create a document, where we will save records...
Ankit Agrahari
Dec 3, 20213 min read


Testing in Microservices
In this post we will go through the integration testing of the controller of any Spring Boot project. We will be using an existing Spring...
Ankit Agrahari
Dec 1, 20213 min read


Exploring Spring Thymeleaf
In this post we will be creating a registration form which will include textbox, dropdown with multi-select option, file pickers and then...
Ankit Agrahari
Nov 17, 20216 min read


Authentication With LDAP in Spring
Referring to the Spring Guide to Spring security for authenticating a user with LDAP, this blog is to create the working example for...
Ankit Agrahari
Nov 12, 20212 min read


Produce & Consume Messages Using Apache Kafka
In this post, we will create a Kafka producer which will produce string messages as Rest call and a consumer which will consume the...
Ankit Agrahari
Nov 12, 20214 min read
Contact
bottom of page

![A Bloom filter is a space-efficient probabilistic data structure used to test whether an element is a member of a set. The key trade-off: it can tell you
- with certainty that an element is not in the set,
- but it can only say an element might be in the set — never with 100% certainty.
How it works ?
- A bit array of size m, initialized to all zeros
- k independent hash functions, each mapping an element to a position in [0, m-1]
- To insert element x:
- Run x through all k hash functions → get k positions
- Set the bit at each of those positions to 1
- To check if element x exists:
- Run x through all k hash functions → get k positions
- If all bits at those positions are 1 → probably in set
- If any bit is 0 → definitely not in set
This is visually shown in the post how the bits are set during insertion or deletion.
If you want the tool for the visual representations, comment on this post, and I'll share it.
#bloomfilter #datastructure #design #softwareengineering #backenddeveloper](https://scontent-sea1-1.cdninstagram.com/v/t51.82787-15/642386646_17867541405570256_7034332257132483480_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=108&ccb=7-5&_nc_sid=18de74&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pbWFnZV91cmxnZW4uQzMifQ%3D%3D&_nc_ohc=9HJrHYNL0BYQ7kNvwGL8AaB&_nc_oc=AdnxFg-py1G9Rq3XgDpT8u39TidXTaBf_UyLnA_6HZNCm5dwuHdIjMio1rApl3oi7WA&_nc_zt=23&_nc_ht=scontent-sea1-1.cdninstagram.com&edm=ANo9K5cEAAAA&_nc_gid=AFioKOY5tE-21oVQkqNylg&_nc_tpa=Q5bMBQGdpJJfkEFqAUNsdzVmdS8I-hdEMwHwpUpipSYvMT3xbXF7x5ie6GKDr7klnyIQaxchdars0Zpq&oh=00_AftqZ5UW8RwFIE_IWk1iI61MVF1HrYR4eHqj64urbitwcg&oe=69A6B35C)






















![Stop grinding on 500+random problems.
Lets look at 6 high ROI patterns that accounted for 9ver 95% of technical rounds I've tracked this year.
Whats inside:
✅️ Hashing: secret to O(1) lookups in high frequency trading questions
✅️ Sliding window: Mastering contiguous data (Meta favorite)
✅️ Stacks & Queues: Managing order and recursive state without the overhead.
✅️ Trees (DFS/BFS): Navigating complex hierarchies in recommendation systems.
✅️ Graphs: telling your zomato wale bhaiya the shortest route.
✅️ Heaps: The Priority way to handle top-K elements at scale.
2025 ending twist: added the follow ups modern interviewers are using to see if you actually understand the tradeoffs.
Which pattern do you find the trickiest ?
Let me know in the comments.
[DSA Coding MAANG Leetcode Holidays Interviews Preparation Developer]
#dsa #backendbrilliance #interviews #2025bye #javadeveloper](https://scontent-sea5-1.cdninstagram.com/v/t51.82787-15/606440919_17859114657570256_2529042519888157314_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=103&ccb=7-5&_nc_sid=18de74&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pbWFnZV91cmxnZW4uQzMifQ%3D%3D&_nc_ohc=id9FdbNZvHcQ7kNvwHAPVC_&_nc_oc=AdnnjWKYxIL_rCbGT4-lACNpt_OOVwUkAM1v--hm-RXnZN4waoAtu6vhu6mXbbOd5O4&_nc_zt=23&_nc_ht=scontent-sea5-1.cdninstagram.com&edm=ANo9K5cEAAAA&_nc_gid=AFioKOY5tE-21oVQkqNylg&_nc_tpa=Q5bMBQH8gQ3hDopplb4ziIcmb8ku-SoJbfSYP3A1KQfiziyC8GWZTacOtHJay7Zd5EndwreLA6HSil-A&oh=00_AfuhdqQAiCAipGWdPr24_vqhjZ8ZxEJD0FzEq5TzCs2gRw&oe=69A6B1B7)
![Most candidates prepare for framework questions.
MAANG prepares to test how you think when things break.
They don’t care how many tools you know.
They care how you:
-break down problems
-reason about scale
-handle failure
-explain trade-offs under pressure
This carousel breaks the MAANG interview illusion —
and shows what actually gets candidates rejected or selected.
💾 Save this before you over-prepare the wrong things.
💬 Comment MAANG if you want company-specific interview patterns next.
[backendinterview, faanginterview, javainterview, springbootinterview, technicalinterview, engineeringinterviews, codinginterviewprep, distributedsystems, microservicesarchitecture, careerforengineers]
#faang #backenddeveloper #systemdesign #javadeveloper #softwareengineer](https://scontent-sea5-1.cdninstagram.com/v/t51.82787-15/605571130_17858844267570256_6957806067286778315_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=109&ccb=7-5&_nc_sid=18de74&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pbWFnZV91cmxnZW4uQzMifQ%3D%3D&_nc_ohc=JNghgNRKYWMQ7kNvwFVuw4G&_nc_oc=Adl222RQab3tTFu0kRzl-l5EljMpftgl0m5zqaCuMbx1a2D76wflCTG7QQXwN6KKfcA&_nc_zt=23&_nc_ht=scontent-sea5-1.cdninstagram.com&edm=ANo9K5cEAAAA&_nc_gid=AFioKOY5tE-21oVQkqNylg&_nc_tpa=Q5bMBQEjvzyIZB9_GWElUFT0i6SKnxVUfgsnfDFcKO7pWpcGui7P05aHiYyIbhA3pocp0T2Tt4Evcvz3&oh=00_AfuVbrjjbyn7eILTiybAgfZYyVdolMrIfi73vIBwK-eyKQ&oe=69A6B33A)
![Cache is fast.
DB is correct.
Search is powerful.
Using the wrong one makes prod… interesting 😅
Cache less, Design better !!
[caching backend design redis elasticsearch scalablesystem techcommunity devcoding codinglife techcontent]
#backenddeveloper #backendengineer #systemdesign #microservices #java](https://scontent-sea1-1.cdninstagram.com/v/t51.82787-15/603631035_17858630823570256_7049682313057145222_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=100&ccb=7-5&_nc_sid=18de74&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pbWFnZV91cmxnZW4uQzMifQ%3D%3D&_nc_ohc=1CxCQgBi-fkQ7kNvwGoefKo&_nc_oc=AdmzeT7c3oW3e4lr6tp7Vd_k47b_zmIkopR9tLaTt3hrLOc2unMCjMhZZop4XKDkClQ&_nc_zt=23&_nc_ht=scontent-sea1-1.cdninstagram.com&edm=ANo9K5cEAAAA&_nc_gid=AFioKOY5tE-21oVQkqNylg&_nc_tpa=Q5bMBQEO72aQYYEAO_3ndwPf11FgyZFx1kbBysY5TEXXi8BjlD5iY9fut-yqqtmiH4jdkm5Z9gT7xZcc&oh=00_Afty7Je2xDDiIMDtgLcVOeUeWBIs-ZJHDclvxmwsa3U8rw&oe=69A6C73B)
![Caching makes systems fast…
until it makes them wrong 😅
I’ve seen caches:
serve stale data
hide bad queries
cause DB meltdowns
create “works on cache” bugs
Cache is not a shortcut. It’s an optimization with responsibility.
Fix the system first.
Cache later.
Sleep better. 😌
💾 Save this before your next “why is prod behaving weirdly?” moment.
💬 Comment CACHE if you’ve been burned too.
#backenddeveloper #backendengineer #java #caching #springframework
[microservices systemdesign caching redis performance engineering scalablesystems distributedcomputing highperformance softwareengineer programminglife codinglife techinstagram devcommunity programmerslife]](https://scontent-sea1-1.cdninstagram.com/v/t51.82787-15/604015302_17858376105570256_4670002541461348392_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=106&ccb=7-5&_nc_sid=18de74&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pbWFnZV91cmxnZW4uQzMifQ%3D%3D&_nc_ohc=MMcJIYajBBYQ7kNvwEEPj-A&_nc_oc=Adl7dY4IHU7pj54GohZAfbGpp2zkEr-YgWE9_4eX1dpEDZR1hebFtYWUU9h941Pia9I&_nc_zt=23&_nc_ht=scontent-sea1-1.cdninstagram.com&edm=ANo9K5cEAAAA&_nc_gid=AFioKOY5tE-21oVQkqNylg&_nc_tpa=Q5bMBQGtgZX9ilv76UoqzuBCeurQa1Gwyjkx149kg9w9Z1nYEUKS0ip3LGB7oiTifQfz2WjKFOvOX7o6&oh=00_Afvx3o29JifSOokuYN86gBFMkd8ihvsxQON64lVEtd3-Fw&oe=69A699D2)
![Ever wondered how much AI actually costs? 🤖💸
Not theory. Not hype. Real numbers. In INR.
In this post, I break down: ✅ Cost of uploading an image & asking AI to explain it
✅ Text → Speech cost for 1 minute audio
✅ Text → Video cost using Sora 2 for 1 minute
Spoiler:
👉 Images & speech are shockingly cheap
👉 Video generation is where the real cost kicks in
If you’re:
building AI side projects
experimenting with OpenAI APIs
learning AI without burning money
…this pricing clarity will save you from surprise bills.
💡 AI isn’t expensive — misuse is.
Save this post for later 🔖
Comment “COST” if you want a follow-up on ChatGPT Pro vs API pricing 👇
[OpenAI pricing explained, AI API pricing in INR, DALL·E pricing, Whisper text to speech cost, Sora AI video pricing, AI cost breakdown, AI for personal projects, OpenAI API cost India, Generative AI pricing]
#artificialintelligence #generativeai #openai #aiapi #aipricing #aiinindia
#backenddeveloper #javadeveloper #softwareengineering #techlearning #devcommunity #buildinpublic #techeducation #learnai #aiexplained #ai101 #techcontent #educationalreels #instatech #explorepage #reelsindia #techreels #developerlife](https://scontent-sea1-1.cdninstagram.com/v/t51.82787-15/599732962_17857734000570256_5761244514698037720_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=106&ccb=7-5&_nc_sid=18de74&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pbWFnZV91cmxnZW4uQzMifQ%3D%3D&_nc_ohc=e5rR3F_Dfb8Q7kNvwG0abfJ&_nc_oc=AdlDhE044unN1T9kLGDrDupji_J2bzkwDnhh74v7__PH60ihpU7-YOXiIRYxpBPbNdM&_nc_zt=23&_nc_ht=scontent-sea1-1.cdninstagram.com&edm=ANo9K5cEAAAA&_nc_gid=AFioKOY5tE-21oVQkqNylg&_nc_tpa=Q5bMBQG-O1TqH_77BKul3Llf6B15LMFSIO3pBd-SwIxh4CRFblX5Mx9fd7KOqedX_9QMrY8Rv5TyUtf4&oh=00_AfuuVxYWexMhx6g7khZIOXqy9Hx0VK_Q9SWBnT-nrcyZUQ&oe=69A6B178)










![Ever heard of TOON? 👀
It’s the new token-optimized alternative to JSON, built specifically for AI, LLMs, and high-performance backend workflows.
Same structure as JSON… but cleaner, shorter, and way cheaper to send to AI models. ⚡
If you're building with Java, Spring Boot, or microservices, TOON can literally cut your prompt size by 60%, reduce cost, and give LLMs a much clearer schema to work with.
JSON is great for APIs.
TOON is great for AI.
👉 And understanding the difference will put you ahead of 90% of devs.
Save this — it’s the future of AI-ready data formats. 🚀
[TOON format, token efficient data format, JSON alternative, LLM data optimization, Spring Boot AI integration, Java backend AI, prompt engineering tips, structured data for LLM, AI developer tools, backend optimization tricks]
#TOONFormat #JSONAlternative #LLMDeveloper #AIDevelopment #BackendEngineering #SpringBootDevelopers #JavaBackend #PromptEngineering #AIOptimized #TokenEfficiency #DeveloperTools #AICoding #TechContentCreator #BackendBrilliance #SoftwareEngineeringTips #CloudNativeJava #MicroservicesArchitecture #CodingEducation #LearnJava #techinstagram](https://scontent-sea5-1.cdninstagram.com/v/t51.82787-15/583035862_17854716045570256_4168770257495229357_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=110&ccb=7-5&_nc_sid=18de74&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pbWFnZV91cmxnZW4uQzMifQ%3D%3D&_nc_ohc=WDTmvQn_uQ4Q7kNvwGn7LxU&_nc_oc=Adm0XUPDZTGa8pLWHyURUM_ZRd3Q6Z0hokM2DOpZu1_39YecpbjXMWrh4n3JAmroYZ8&_nc_zt=23&_nc_ht=scontent-sea5-1.cdninstagram.com&edm=ANo9K5cEAAAA&_nc_gid=AFioKOY5tE-21oVQkqNylg&_nc_tpa=Q5bMBQFu1DkjRbIu5u9l0edrkIFZTkpeaxKa75pq2gNBEPoYjKpZDmc5LVTJpGUub7y-03Fm5dLJ1xVH&oh=00_AfvOQvUII1yDiJf2EzHbhhzjkU0Et3KEhbAoqmhOcREh2w&oe=69A6B1FF)






![An explainer video on the last topic "Virtual Threads" using Google's Notebooklm. Exceptional video, speech quality.
Felt like going on vacation 😂
Have you used it ?
Comment "google" if you want an explainer video on how to do it.
[Google, NotebookLM, Virtual Threads, Explainer Video, Backend Development, Content Creation]
#notebooklm #google #virtualthreads #java21 #features #backend #development #backendbrilliance
#ai #generations #insta #techworld](https://scontent-sea5-1.cdninstagram.com/v/t51.82787-15/573323442_17853237735570256_7956185743739484727_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=109&ccb=7-5&_nc_sid=18de74&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pbWFnZV91cmxnZW4uQzMifQ%3D%3D&_nc_ohc=mDqKZFNmTBEQ7kNvwGytj-i&_nc_oc=AdmriEqhx0TTXA4kWdEhSmnE86_9qGb6YwLbQX1ZY58QnTJ2rPFRL-Irb51tH6WXkrU&_nc_zt=23&_nc_ht=scontent-sea5-1.cdninstagram.com&edm=ANo9K5cEAAAA&_nc_gid=AFioKOY5tE-21oVQkqNylg&_nc_tpa=Q5bMBQHD5AEVDJqeUdHcpURl2qLUGmRcfg7kOspFPxXYRgklg5usVBKhvE51td8lKjlfBomtpE25k3V9&oh=00_AfuNiojGst7wZvuFKkmSgdNodEsV7vX3x1WQEUDfQxqYTg&oe=69A6C335)



