Skip to main content

Posts

Showing posts from September, 2026

Microservices Pattern - SAGA, CQRS

 SAGA  a failure-management and data-consistency pattern used in distributed microservices architecture. Definition: A sequence of local transactions that update data across multiple independent services Eventual Consistency: Instead of locking resources globally across a network like traditional ACID transactions, each step commits locally and triggers the next step via events or messages . Compensating Transactions: If a step fails halfway through the sequence, the saga runs a series of undo operations (compensations) to roll back the changes made by the preceding Core Coordination Methods Choreography: Decentralized approach where each microservice publishes domain events that passively trigger the next service Orchestration: Centralized approach where a dedicated coordinator object tells each participant exactly which local transactions to run and when. [ 1 , 2 ]

Type Script

 

Asp.Net Core + EF core

  Model Binding Entity Framework ------------------------

JavaScript - once again

 1. find largest numbe in an array Array functions arr.reduce() arr.filter(); let arr =[87, 54, 24, 94, 29]; const topArr = arr.filter((val)=> {return val>80;}); console.log(topArr);

Docker (container, hub, image)

 Docker container Docker hub Docker Image - Docker hub (https://hub.docker.com/)where we can find docker images ===================================================================                                                                       Docker Commands: =================================================================== 1. docker pull imageNam e     (docker pull imageName:version)      2. docker run imageName (pulls image if not available and create container )     (docker run -d imageName)  (detach mode)    (docker run --name newName -d imageName) (t o create name of container other than default name) >docker run -e MYSQL_ROOT_PASSWORD=demo --name mySQLserverLatest mysql Build a container from the image  ...

Claude Code basic

pre-requisite: node (install node on the system)  Install with command - (claude cli installation)     npm install -g @anthropic-ai/claude-code As installation complete, put the command : claude commands useful: 1. /terminal-setup 2. /init --> summarize in .md file (route of project directory) # and give instruction, will be remembered or added to claude.md file, so  Claude will take care of it. /memory 3. To add context       - put @ and path of the file.     - open file and select where you want to make change 4. /exit --> to exit the chat session     /compact -->compacts the chat and context into small summary /clear --> clears entire session context and chat history press ESC twice --> rewind to a previous point in the session 5. Custom Command inside .claude folder, can create a .md file. User the name of file as command. Written instruction/prompt in the file, will be executed as an when the custom command ...