Imagine you are in a group project, the task is pretty complex :p and everyone is looking at each other, wondering who is going to take the lead? Does this situation sounds similar to you? I remember we used to play some sort of game like "Rock, Paper, Scissor" or "Eeny, meeny, miny moe" (I never did this but my sister). Similarly, distributed systems have their own ways of … [Read more...] about Leader Election with ZooKeeper: Simplifying Distributed Systems Management
java
Top 5 Common Design Patterns
Design patterns could make a difference in the way you write code. The thing we all need to understand is that we will come across many people who could write code, but there will be very few who write the code in a way that is scalable, maintainable, free of smells and most importantly readable. And to make a shift, it is important to know and understand different design … [Read more...] about Top 5 Common Design Patterns
Freedom From Redundancy Is A Trade-off
Code reusability is the holy grail for software development. You might have heard that developers should write code once and reuse it everywhere. Or, never write the same code twice... and a lot of things on similar lines. But have you ever questioned this? Is redundancy such a bad thing after all? Don't you think these statements are subjective? Applied to specific … [Read more...] about Freedom From Redundancy Is A Trade-off
Trie Data Structure Implementation | (PUT, GET, DELETE)
What would you do if your professor ask you to come up with a solution for a symbol table that is targeted only for string-based keys which are Faster than Hashing and more Flexible than BSTs? Trie Data Structure is the solution that you will be looking for. Trie is a fast search and miss data structure when it comes to storing key-value pairs where key is a string. This … [Read more...] about Trie Data Structure Implementation | (PUT, GET, DELETE)
Advent Of Code 2020 – Day 7 – Handy Haversacks
Finally, Directed Weighted Graphs have made their way to the Advent Of Code 2020 on Day 7. If you are unfamiliar with graphs then I highly recommend you to go through the below articles: Undirected Graphs and Graph Processing This above article will give you enough information to get you started with today's problem. On this note, let's start with today's problem. We … [Read more...] about Advent Of Code 2020 – Day 7 – Handy Haversacks
How To Add Custom JNDI Resource Factory That Will Return Your Custom Object
This is legacy stuff, which means you either stuck somewhere or you are about to get stuck somewhere. Am I right or am I right? :D The JNDI stuff is really confusing especially if you have not seen the younger architecture of the web. So, let's talk about the earlier architecture and System Design where it was used. Monolith Architecture Mostly all of the legacy … [Read more...] about How To Add Custom JNDI Resource Factory That Will Return Your Custom Object
Long Polling Implementation With Java and Spring Boot
Long polling is a concept that was being used aggressively in the past. It was the technique that made web feel like real-time. I think a little history would help you to understand better. The Brief History Of Internet If you are old enough then you would know that web in its early days was very boring. And by boring I mean static, no moving parts. It simply … [Read more...] about Long Polling Implementation With Java and Spring Boot
Spring MVC – Build Project In Java With Gradle From Scratch (No XML)
Hi folks, after a long time I revisited Spring MVC because of some project requirement and in the next moment, I was dealing with all sorts of configurations. If you have worked on Spring MVC before (not SpringBoot), you will know what am I referring to. All sorts of XML files (web.xml and spring-context etc). And to be clear I hate all that clutter. So, instead of dealing … [Read more...] about Spring MVC – Build Project In Java With Gradle From Scratch (No XML)
Big Query: How to Fetch Data In JSON Format By Consuming BigQuery’s REST API(s)
BigQuery is revolutionizing the way Big Data is maintained and processed. Its "server-less" architecture is not just enterprise friendly but also developer friendly as it takes care of all the hardware configuration and scalability matrices on its own. As a developer you just need to know the process of data extraction and that is all. All the performance related hard-work … [Read more...] about Big Query: How to Fetch Data In JSON Format By Consuming BigQuery’s REST API(s)
JSON Web Token: 8 Easy Steps to Understand and Implement JWT
This article is going to be a piece of complete information about the JSON Web Token. If you find JWT hard, difficult to grasp, and just want an easy answer to the question "What the heck is JWT?" then this article is for you. This article is going to be a complete answer to all your questions. The entire article is divided into sub-parts for easy understanding. The … [Read more...] about JSON Web Token: 8 Easy Steps to Understand and Implement JWT