14- Microservices Architecture Working and Important Terms
Important terms for Microservices Architecture
Before we understand how microservices architecture work lets understand the terms given below:
--> Client :
The one who wants to use the services or functionalities provided by the microservices.
--> User Interface :
A user interface is the point of human-computer interaction and communication on a device, webpage, or app.
This can include display screens, keyboards, a mouse, and the appearance of a desktop.
More or less UI or the front end part.
--> Identity Provider:
Manages authentication of user .
Authentication is the practice of verifying the identity of users or other entities as part of an access control system.
While learning microservices via springboot JWT (shortened from JSON Web Token) is widely used for authentication purposes.
--> API Gateway :
An API gateway is an API management tool that sits between a client and a collection of backend services.
An API gateway acts as a reverse proxy to accept all application programming interface (API) calls, aggregate the various services required to fulfill them, and return the appropriate result.
OR
In simple terms single entry point for clients.
Client does not call all services directly.
The request first goes to API Gateway which will forward the requests to appropriate backend services.
--> Service Discovery:
Microservices service discovery is a way for applications and microservices to locate each other on a network. Service discovery implementations within microservices architecture discovery includes both:
• a central server (or servers) that maintain a global view of addresses.
• clients that connect to the central server to update and retrieve addresses.
OR
In simple terms all the URLs or addresses of microservices are tracked by Service Discovery.
6- Remote Service:
A remote service is a process that resides outside of the application server and provides a service to the application.
Image 1- Working of microservices architecture
Explain Working of microservices architecture:
--> Client sends a request via User Interface( webpage,app,etc).
--> Client is authenticated and API gateway forward the requests to appropriate backend services.
--> Service Discovery or Service Registry locates and tracks microservices on a network.
--> Microservices work together or alone according to the functional requirement of the request.
--> The Service Requested by the client is provided.
Comments
Post a Comment