Parottasalna

AI, Backend Engineering & Architecture Guides

  • POTD #13 – Subarrays with sum K | Geeks For Geeks

    Category:

    Problem Statement Geeks For Geeks: https://www.geeksforgeeks.org/problems/subarrays-with-sum-k/1 Given an unsorted array of integers, find the number of continuous subarrays having sum exactly equal to a given number k. My Approach 1 (Brute Force) Initially i tried to solve it via bruteforce, but got timedout. My Approach 2 (Optimal) After some time, searched for an approach,…

  • Learning Notes #27 – Rate Limit Requests

    Category:

    Today, i learnt about Rate Limiting Using Redis which is very strange for me. In many blogs, they mentioned implementing redis as a rate limiter, and the code is written in server side. Shouldn’t be offloaded to the gateway ? Many such questions arised. In the mean time, i re-learned the rate limit concept.…

  • Learning Notes #26 – Types of Unique ID Generations

    Category:

    Today, i learnt about various types of id generations. ID Generations are a key part in handling data, uniquely identifying entities. My goto ID generation is UUID4. You might have seem some debates on UUID vs ULID for better performance. Related: https://parottasalna.com/2024/06/09/benchmarking-uuid4-vs-ulid-for-db-indexing/ In this blog i jot down notes on various ID generations, for…

  • Learning Notes #25 – Valet Key Pattern | Cloud Patterns

    Category:

    Today, I learnt about Valet Key Pattern, which helps clients to directly access the resources without the server using a token. In this blog, i jot down notes on valet key pattern for better understanding. The Valet Key Pattern is a security design pattern used to provide limited access to a resource or service…

  • Learning Notes #24 – Competing Consumer | Messaging Queue Patterns

    Category:

    Today, i learnt about competing consumer, its a simple concept of consuming messages with many consumers. In this blog, i jot down notes on competing consumer for better understanding. The competing consumer pattern is a commonly used design paradigm in distributed systems for handling workloads efficiently. It addresses the challenge of distributing tasks among…