Welcome to the Part-2 of Security Engineer Interview Questions
Press enter or click to view image in full size
In Monolithic architecture, the entire application is built as one large unit. All components (like User Interface, Business Logic, Database and Web Servers) are combined into a single, unified system. The components are highly interdependent i.e changing one part of system can affect other part. It is based on single deployment i.e any change requires the whole system to be redeployed.
Advantage : Easy to develop and easy to deploy
Disadvantage : Hard to scale and tough to debug.
In Micro-service architecture, the application is broken down into smaller, independent services that each handle a specific function.
For example : authentication, authorization, chat box, payment processing, etc. The components are independent and can communicate with each other via APIs (Application Program Interface). Each microservice can be deployed, maintained, and scaled independently.
Advantage : Easy to scale, fault-tolerant and independent service deployment
Disadvantage : Complex and Requires a sophisticated infrastructure