Category: Tech Learnings

Just a random collection of my tech learning notes

  • CORS – Cross Origin Resource Sharing

    The browser has a CORS mechanism which  restricts the loading of resources from another domain. CORS defines a way in which a browser and server can interact to determine whether it is safe to allow the cross-origin request The header which controls accesses isAccess-Control-Allow-Origin So if this header is not present, the CORS request fails.…

  • Handling Distributed Transactions

    Let’s say there is a monolith – it takes help of Order service-> Payment service to create an order and do the payment. There are several steps involved here adding items, creation of order, payment updating of order and payment status.This can be done easily and as an atomic operation in a monolith using Transactions.…