HI, Gaurav Sen, I have subscribed to This is my first video from your channel. I really fell in love with your content and explanation. I am an SDE-2 and working hard for SDE-3. video made to focus more on the product eng and Technical solutions. Thanks a lot.
I have got one question. Lets say there are two hash functions. Now each of the M servers are going to have M*2 copies. But, consider a scenario where the hash of one server mod M and the second hash of another virtual server mod M comes out to be the same? Let the hash values be as follows: H1(2) = 40 H2(5) = 20 As we can see above, the hash values are fairly different. But, H1(2) % 5 = 40 % 5 = 0 H2(5) % 4 = 20 % 5 = 0 In this case, both the hashes are different but the virtual server 5 is pointing to the same location as the actual server 2. Isn't it conflicting?
such a coincidence, it just happen to me last night but the different is i need to review my manager code who always complain about shi**y code but insist to do the same.
don't you think for updating the location its better to have a seperate service where delivery partner sends location updates to which updates the cache instead of delivery matching service since it could have a lot of persistent connections and can be scaled independently, because there may be few orders in a day and some days can have large orders which would make the load on delivery matching service quite high, because anyway we have to update the location of drivers, or am i missing something?
I like how you pointed out the manager might be lax about the teammate's behavior and their reasoning. Most people just say "if they're good manager, they'll respond well" and then waddle away, while missing all the nuances (like the manager can't afford to lose XYZ team member). Thanks for playing through the situation. Your empathy developed from workplace battle scars really show ❤
I know a billionaire who let go of a good employee, because he complained about being bullied by a brilliant jerk. Fast forward a year, and the brilliant jerk insulted the billionaire in front of multiple teams, using swear words. That's when he finally realised his mistake, and fired the jerk. Our trust in him had hit zero though.