devjournal

System Design: CAP Theorem

System Design: CAP Theorem

Imagine you and a friend are watching the same live football match but on different devices. One device shows the final whistle has blown, while the other still displays a tense final minute on the clock. Frustrating, right? This seemingly simple scenario highlights a fundamental concept in distributed systems: the CAP theorem. Before we dive deeper into trade-offs and debates regarding the CAP theorem let's first understand what CAP stands for: consistency: consistency in CAP theorem(different than the consistency in ACID) stands for the guarantee that the read receives the most recent write. Availability: Guarantee that a read returns data…
Read More
[Roast: Day 16] – My `utils` Folder

[Roast: Day 16] – My `utils` Folder

The majority of the work today has been continuations of work from yesterday, just implementing business logic on the routes of my application. So, I figured I’d take a break from writing about that to talk about three functions that I’ve created to do very specific things in my application. What's a utils folder? This is the directory where you put all of your little functions that have a hard time finding a home, but your application couldn’t live without them. A utils folder is the dumping ground for the unsung heros of many applications. When you have to perform…
Read More
[Roast: Day 5] – Creating flow using useState

[Roast: Day 5] – Creating flow using useState

Today it seemed that I’m not moving as quickly as I have the past few days. I started work today on the card that most of the user interaction happens with. And since this is the part I care the most about, this is also taking the most time! I spent a good couple of hours fighting with the form, trying to implement an animation for the form labels. I did eventually get it, but after working on it for so long, I feel like I need a bit of a break. Either way, I found a solution for the…
Read More
FOLLOWERS SPIKE IN 7 HOURS ON DEVTO

FOLLOWERS SPIKE IN 7 HOURS ON DEVTO

I have been on devto for a year and few months, my followers are barely up to 10, I've also written just one post. At midnight, I made a post about a cors issue I was facing and how it was resolved, nothing spectacular or serious. I woke up this morning to make some edits to the post, I realized I gained over a 100 followers. I was excited and checked if my post got some traffic but nothing serious, less than 25 readers.Don't get me wrong, I am happy with the followers but I'm just curious to know what…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.