You would frequently find senior engineers asking this question in your code review. But what exactly is idempotency? Idempotency is basically operations that when done once or multiple times, gives you the same result. Have you used this two-way switch? If yes, do you think this is idempotent? (Last I heard, senior engineers were not... Continue Reading →
Implement a file system in Java given n-bytes
Problem Statement Given n - bytes, implement a file system that supports following actions: Create File Update File Read File Delete File If you want a good start point for a small low level design problem, this post on designing a ride hailing service might be a good start. Demystifying Problem Statement When the problem... Continue Reading →
Design and code cab hailing service like Uber
We will use Java as programming language. This project will try to cover the following requirements. We will try to first define entities and then services. We will also build class diagram as we proceed as I don't want to bombard with a picture fill of random boxes and arrows at the end. If you... Continue Reading →
A Tutorial on Implementing a Chat Application like Whatsapp using WebSocket and Spring
What is Websocket? When we run a server side application, we run it on a particular physical port e.g. 8080, 8081. And to access the server side application, we use an IP. Similarly, when we log in to our browser and ask for a particular site, we send to the request our computer's IP as... Continue Reading →