Essential Data Modeling Checkpoints for cracking the System Design InterviewData modeling strategy is the key skill that will be tested during a system design interview. Your data modeling strategy signals the interviewer whether requirements/priorities are understood correctly or not. There are no graphical illustrations or...Jan 21, 2024 路 5 min readrahulraj.io
A better deletion approach than soft deleteYou might have heard about soft deletes in backend applications. We add a column in DB table indicating whether the record can be marked for deletion. We still have those records in DB, just that we may not consider them. Seems like a clean approach ...1HJan 9, 2024 路 3 min readrahulraj.io
Different ways to write concurrency safe database operations in spring bootRecently came across a very interesting resource on Twitter that talks about "lost update anomalies" in databases. It was very brief without explanation. This is my humble attempt to explain it as intuitive as possible 馃檪 Loss update anomaly happens ...Jan 7, 2024 路 4 min readrahulraj.io
Design Search AutoCompletion using plain JavaThis article intends to discuss the low-level implementation of Search Autocompletion using Java. Let's cut the crap and directly mention that we will be using Trie data structure for the use case. We're not going to discuss in depth about Trie data ...Mar 25, 2023 路 4 min readrahulraj.io
How to design a Singleton class - An Interviewer's point of viewThis is a very popular Java interview question being asked ever since Java became popular! This is such a simple question that opens up the whole room for the Interviewer to ask a whole lot of follow-up questions. One can evaluate Java basics, design...Mar 12, 2023 路 4 min readrahulraj.io