Category: Uncategorized
-
POTD #16 – Count Pairs whose sum is less than target | Geeks For Geeks
Problem Statement Geeks For Geeks : https://www.geeksforgeeks.org/problems/count-pairs-whose-sum-is-less-than-target/1 Given an array arr[] and an integer target. You have to find the number of pairs in the array whose sum is strictly less than the target. My Approach Sorted the array and used two pointer approach to find the possible pairs.
-
Learning Notes #40 – SAGA Pattern | Cloud Patterns
Today, I learnt about SAGA Pattern, followed by Compensation Pattern, Orchestration Pattern, Choreography Pattern and Two Phase Commit. SAGA is a combination of all the above. In this blog, i jot down notes on SAGA, for my future self. Modern software applications often require the coordination of multiple distributed services to perform complex business operations.…
-
Learning Notes #39 – Compensation Pattern | Cloud Pattern
Today i learnt about compensation pattern, where it rollback a transactions when it face some failures. In this blog i jot down notes on compensating pattern and how it relates with SAGA pattern. Distributed systems often involve multiple services working together to perform a business operation. Ensuring data consistency and reliability across these services is…
-
Learning Notes #38 – Choreography Pattern | Cloud Pattern
Today i learnt about Choreography pattern, where each and every service is communicating using a messaging queue. In this blog, i jot down notes on choreography pattern for my future self. What is the Choreography Pattern? In the Choreography Pattern, services communicate directly with each other via asynchronous events, without a central controller. Each service…
-
Learning Notes #37 – Orchestrator Pattern | Cloud Pattern
Today, i learnt about orchestrator pattern, while l was learning about SAGA Pattern. It simplifies the coordination of these workflows, making the system more efficient and easier to manage. In this blog i jot down notes on Orchestrator Pattern for better understanding. What is the Orchestrator Pattern? The Orchestrator Pattern is a design strategy where…