What is Microservices architecture?
App as collection of small services.
Monolithic vs Microservices
Monolithic:
βββββββββββββββββββ
β Single App β
β βββββββββββββ β
β β Users β β
β β Products β β
β β Orders β β
β β Payments β β
β βββββββββββββ β
β One Database β
βββββββββββββββββββMicroservices:
ββββββββββββ ββββββββββββ ββββββββββββ
β User β β Product β β Order β
β Service β β Service β β Service β
β + DB β β + DB β β + DB β
ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ
βββββββββββββββ΄ββββββββββββββ
API GatewayBenefits
β Independent scaling β Technology flexibility β Fault isolation β Faster deployment
Challenges
β Complexity β Distributed data β Network latency β Debugging harder
Short Answer
Interview readyPremium
A concise answer to help you respond confidently on this topic during an interview.