Monday, 25 May 2026

Microservices Questions and Answer

 How the .NET core kestrel web server Works?

 Libuv manager I/O

Sagar Pattern

Breaks a transaction into a sequence of smaller local  transaction . If a step fails , They system executes compensating transactions to undo preceding changes(Approval or Rejected flow)

CQRS

Command Query Responsibility segregation

Command - one Microservices

Query - One Microservices 

Idempotency

  • When same button pressed multiple time
  • API header Need to add with Idempotency-key 
  • IMemoryCache - will hold the key and handle id(Redis cache)
ConCurrency
     If a same resources in the requested multiple time
     Lock - Feature

Rate Limiter

  • No. of request a client can make to your API in a time frame
  • Middleware need to configure


Strategy Pattern:
Used for below codings
  • Payment
  • Routing
  • Data Compression
Syn program in Microservices

  • HTTP Rest
  • GRPC









No comments:

Post a Comment