VL 6 Flashcards
Monolithic App architecture
Design of a software Program which is composed of all in one piece
Benefits of monolithic architecture
Easy to develop
Simple to test
Simple to deploy
Easy horizontal scaling
Disadvantages of monolithic architecture
Limitation in size and complexity
Too large and complex
Slow start time
Re-deployment of complete app on updates
Reliability
Micro services architecture
Single logical db per service
Built and deployed independently
Scalable
Stateless ( complete request and forget it)
Advantages of micro services
Easier to understand and maintain
Independence of service
No barrier on adopting new technologies
Independent service deployment
Each service scaling
Disadvantages of micro service
Complexity of creating a distributed system
Deployment complexity ( need to implement service discovery mechanism)
Service Mesh
Configurable, low latency infrastructure layer
Handle a high volume of network based interprocess communication among application infrastructure services using API
Micro services Application Framework Components: API Gateway
Server that is the single entry point into the system
Encapsulates internal system architecture and provides APU that is tailored to each client
API Gateway: backends for frontends pattern
Defines separate API Gateway for each client
Service Registry
Db containing. The network location of service instances
Service Registration
Self registration: directly to service registry
3rd party registration: through service manager
Service discovery: problem
In micro services app, each service instance is assigned IP Adress dynamically because of Autoscaling, failures, upgrades
Client-side service discovery
Clients are responsible for determining the network locations of available service instances
Client queries a service registry
Client uses a load balancing algorithm to select one of the available instances and makes a request
Client side service discovery: pros
Straightforward, no moving parts except of service registry
Client can make intelligent application-specific load balancing decisions as it knows about available services instances s
Client side service discovery: Cons
Cons:
• Couples the client with the service registry.
• Implementation of client-side service discovery logic for each programming language and framework used by service clients.