Microservices Communication Pattern

Microservice is a single application in a suite of small services. Each microservice communicates via a lightweight protocol e.g HTTP, Message Queues. In accordance with the database per service pattern, each of them has its own database. They must communicate with each other in order to access others data. Basically, there are two patterns that …

Isolation Levels in Transaction

As we have already discussed in the article, isolation specifies that each transaction should be executed independently of other transactions. The level specifies how much isolation can be provided to each transaction. Read Uncommitted It is the lowest level of insolation in a transaction. At this level, data changed during a transaction, which is essentially …

Read Lock vs Write Lock

A lock is a synchronization primitive which limits access to a shared resource among multiple threads. We don’t need locks when only one thread is running or there is no shared resource because a lock is always acquired on a shared resource. Let’s look at what locks can be acquired. Read Lock Multiple threads can …