Parottasalna

AI, Backend Engineering & Architecture Guides

  • 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…

  • POTD #11 – Longest Consecutive Subsequence | Geeks For Geeks

    Category:

    Problem Statement Geeks For Geeks – https://www.geeksforgeeks.org/problems/longest-consecutive-subsequence2449/1 Given an array arr[] of non-negative integers. Find the length of the longest sub-sequence such that elements in the subsequence are consecutive integers, the consecutive numbers can be in any order. My Approach 1. Sort the array.Initialize two variables: 2. Loop through the array starting from the…

  • Learning Notes #23 – Retry Pattern | Cloud Patterns

    Category:

    Today, i refreshed Retry pattern. It handles transient failures ( network issues, throttling, or temporary unavailability of a service). The Retry Pattern provides a structured approach to handle these failures gracefully, ensuring system reliability and fault tolerance. It is often used in conjunction with related patterns like the Circuit Breaker, which prevents repeated retries…