-
POTD #14 – Count Subarrays with given XOR | Geeks For Geeks
Category: UncategorizedProblem Statement Geeks For Geeks: https://www.geeksforgeeks.org/problems/count-subarray-with-given-xor/1 Given an array of integers arr[] and a number k, count the number of subarrays having XOR of their elements as k. My Approach This problem is same as yesterday’s problem. Instead of sum, here its xor.
-
Learning Notes #31 – Outbox Pattern | Cloud Pattern
Category: UncategorizedToday, i came across https://www.milanjovanovic.tech/blog/outbox-pattern-for-reliable-microservices-messaging which explains about Outbox pattern, which enables atleast-once delivery mechanism. In this blog, i jot down notes on outbox pattern for better understanding. In distributed systems, ensuring data consistency and reliable communication across multiple services is a significant challenge. The Outbox Pattern is a proven architectural solution to this…
-
Learning Notes #30 – Queue Based Loading | Cloud Patterns
Category: UncategorizedToday, i learnt about Queue Based Loading pattern, which helps to manage intermittent peak load to a service via queues. Basically decoupling Tasks from Services. In this blog i jot down notes on this pattern for my future self. In today’s digital landscape, applications are expected to handle large-scale operations efficiently. Whether it’s processing…
-
Learning Notes #29 – Two Phase Commit Protocol | ACID in Distributed Systems
Category: UncategorizedToday, i learnt about compensating transaction pattern which leads to two phase commit protocol which helps in maintaining the Atomicity of a distributed transactions. Distributed transactions are hard. In this blog, i jot down notes on Two Phase Commit protocol for better understanding. The Two-Phase Commit (2PC) protocol is a distributed algorithm used to…
-
Learning Notes #28 – Unlogged Table in Postgres
Category: UncategorizedToday, As part of daily reading, i came across https://raphaeldelio.com/2024/07/14/can-postgres-replace-redis-as-a-cache/ where they discussing about postgres as a cache ! and comparing it with redis !! I was surprised at the title so gave a read through. Then i came across a concept of UNLOGGED table which act as a fast retrieval as cache. In…