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


Meet Smart Devops Assistant: Vision, Stack and Journey so far
PRs that review themselves. Tests that write themselves. Stand-ups that summarise themselves. Say hello to Smart DevOps Assistant (SDA)...
Ankit Agrahari
Aug 27, 20256 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


AES Algorithm with GCM Mode in Java
In this post we will encrypt and decrypt a given phrase using AES algorithm in GCM mode. This will be more on how to do it. I am not an...
Ankit Agrahari
Apr 9, 20226 min read


Day to Day Lambda & Functional Programming in Java 8
If you have seen lately, everyone has shifted to Java 8 and is more or less trying to move from lengthy code blocks to few lines/precise...
Ankit Agrahari
Mar 28, 202212 min read


Custom Iterators in Java
This is a bit embarrassing to start with, but lets say I got this question and was quite dumb stuck on how to write a custom iterator....
Ankit Agrahari
Feb 12, 20224 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-iad3-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=9HJrHYNL0BYQ7kNvwHsONZO&_nc_oc=Adn_XyoPuaagevo0yQbuN2i3HosEAr3LbzOJ5GuQ1rf3DtFG5IIN6YbDX1w-z0Lcqow&_nc_zt=23&_nc_ht=scontent-iad3-1.cdninstagram.com&edm=ANo9K5cEAAAA&_nc_gid=xsRVHHnZe0-xwd4epFovvQ&_nc_tpa=Q5bMBQEQ1ceOuWawq4_a_xE4URKCF1TSdISOezMrtT9iFvM2hrS-hnXlZn8SijFJQ9KhKqSiHdmbHaAX&oh=00_AfvQMikvgHtDIdEmKgXrPBb3Yd9CMm8QvkAn5RNxGycvng&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-iad3-2.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=id9FdbNZvHcQ7kNvwFP-mHI&_nc_oc=Adk8q84Lf-UC62qr7ztSKyS0EZFwWWeaL3gJi1V7QD6NhSOJZhD9eyh2nBb7Q6um6Jo&_nc_zt=23&_nc_ht=scontent-iad3-2.cdninstagram.com&edm=ANo9K5cEAAAA&_nc_gid=xsRVHHnZe0-xwd4epFovvQ&_nc_tpa=Q5bMBQEEn7ZDHSI_Z88fVrnlxCkbtWsyqOLjU3Wa3uk2CLe4KGoSgCgKMRUO06M1K5mlXvUaaEmvjHVD&oh=00_AftGY27XF7I-Dc96tcKXEDM-DbrpoXisy44qKHp3R3RFNQ&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-iad3-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=JNghgNRKYWMQ7kNvwHwUf9P&_nc_oc=AdlAtl8myfTEeZ99TkvNFw8UF8DQnck1HhWN6em_ndEdWB38yWgzImiwXJkE1abF45w&_nc_zt=23&_nc_ht=scontent-iad3-1.cdninstagram.com&edm=ANo9K5cEAAAA&_nc_gid=xsRVHHnZe0-xwd4epFovvQ&_nc_tpa=Q5bMBQFvawXXRM3UzFZZdy2RLYIN5yG_-09bG9YAq-Wy0kSz1QcMgIORccXAZCWuH6Bb5ndyikvyWHMh&oh=00_AftPWjJkCoEzdlj8hjMkejxuD4dsA6GclD442y0gM6KOsw&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-iad3-2.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-fkQ7kNvwH_UMFE&_nc_oc=Adngqmj0rfrCANuwbRyN0ijign-lOnOBlZS3upemxGQGs6zquuzR29NW5W61H4w9d24&_nc_zt=23&_nc_ht=scontent-iad3-2.cdninstagram.com&edm=ANo9K5cEAAAA&_nc_gid=xsRVHHnZe0-xwd4epFovvQ&_nc_tpa=Q5bMBQGVTda8whUU17kXKgyKFTwJ0cCCm1dVjAE8zW4rsaRGQnrjeJfx53pgWEUMhIg3FWdK-nn1qo8G&oh=00_Afsg9SKjdNRlR1dfYk3cjWikts9sffbfqvA7IccvuXyTwA&oe=69A68EFB)
![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-iad3-2.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=MMcJIYajBBYQ7kNvwFkalJ0&_nc_oc=AdnLiRmbSy-ntRVY_ULkoq15gWxmPliSXBZlWqTnSbvOUVo9X3eD2vJGb_16fNiVd30&_nc_zt=23&_nc_ht=scontent-iad3-2.cdninstagram.com&edm=ANo9K5cEAAAA&_nc_gid=xsRVHHnZe0-xwd4epFovvQ&_nc_tpa=Q5bMBQE6lscJzto_6wDg5MeurlYeb2HXiJgNxhC98iOqIkI-HOOiRvZOOrrPdljTZQxwQecURtY3ImFe&oh=00_AftGOOsLRQyj61UqqHzhvGHnjGKt1qIsg4J56FfHOg2qJw&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-iad3-2.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_Dfb8Q7kNvwG177QI&_nc_oc=Adl8b1N0N1GvR_w8KRA0HCKhOPUhp9X_tyFmEKo4r-GhfshSSis0FVrBR31xIlS32Js&_nc_zt=23&_nc_ht=scontent-iad3-2.cdninstagram.com&edm=ANo9K5cEAAAA&_nc_gid=xsRVHHnZe0-xwd4epFovvQ&_nc_tpa=Q5bMBQG_GTzjpnCQsOv4qkOb7AKZIlc6lHISh449mkTaaNhu6Z88Hv-o1mYB-NM0eRPqXYDhq0hu_srJ&oh=00_Afspw69UcGmTkMT-vYkeSROgbpUZQPyKLfktkK3tiprfrg&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-iad3-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_uQ4Q7kNvwEDVxcl&_nc_oc=AdkqbAK9dxpqAClUoqsmQA9kNlQGRA1AvTG4t0gXFGiCP0e84uUZKfARN4lXryHXcxc&_nc_zt=23&_nc_ht=scontent-iad3-1.cdninstagram.com&edm=ANo9K5cEAAAA&_nc_gid=xsRVHHnZe0-xwd4epFovvQ&_nc_tpa=Q5bMBQEWLwCs0CdIzTqPmjAOz-hMp-P3JvsgrQ47CS_ri2fMFu4KtRYU6HwFD64kDlOmJf-AVOy777NH&oh=00_AfvNb7a7TJFk86aK4YiyJJ7ZOqjiN1RM8I8B0Ea72GIn9w&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-iad3-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=mDqKZFNmTBEQ7kNvwH08O3l&_nc_oc=Adl_yD7sr_rHo8OwDZOCqh5Y5JSYlju0EN7JFH7Cl9mQtrULdLG1Lnz6MNYYyk7AeQ0&_nc_zt=23&_nc_ht=scontent-iad3-1.cdninstagram.com&edm=ANo9K5cEAAAA&_nc_gid=xsRVHHnZe0-xwd4epFovvQ&_nc_tpa=Q5bMBQEcm_JZoXlIQWIhvQy8Mkwn6pKhnRjR5fhnQ2XSmBcHZNqdV40wG96YLqEVjqPNUqaefcMLwvii&oh=00_Aft-7uIVYXqQR2oN_GSzKa9-zHaQ3Ap5peIs0ugdzwHjBQ&oe=69A6C335)



