Architecture , API (1)
Architecture , API (1)
Spring Architectures
Spring framework architecture
1. Spring MVC
2. Spring Boot/layered/monolithic architecture
3. Microservices
1) Spring MVC – model view and controller -> UI code and backend code
are pres
https://www.javatpoint.com/spring-mvc-tutorial
database
customer
UI or frontend Microservice2
(react js) Dataabse2
resttemplate
order
Microservice3
Dataabase3
API – application programming interface https://www.geeksforgeeks.org/what-is-an-api/
communication between request and response
req req
Customer request
API
custid
savCustomer Process the request
Name
findCustoner performs database
Email activity and send back
updateCustomer the response
Mobile
deleteCustomer
……
resp resp
user url/endpoints
customer/save
customer/find
customer/update
customer/delete
Mainly 2 types :-
Stateless API Stateful API
Stateless APIs do not store the client Stateful APIs store the client state on
state on the server between requests. the server between requests like history
REST APIs – POST, GET, DELETE, PUT of the client who is updating it, when
created when updated.
Access token API
More scalable Less scalable
Spring