The Complete Responsive CMS Blog created by Francesco Malagrino

Rest Introduction and Architecure

Category: Technology & Written by Francesco Malagrino On December-17-2021 19:03:47

What is Rest?

The Rest Stands for  Representational State Transfer

Representational means format : such as XML , JSON, YAML, HTML etc.

State means Data

Transfer means carry data between consumer and provider using the HTTP  protocol

In the following picture a typical Rest Architecture


As you can see something called Rest API :

What is a REST API?

API Stand for Application Programming Interface.

A REST API is an intermediary API  that enable two application comunicate with each other over HTTP, much more like the servers communicate to Browser

Now the API that has the following constraints is know as RESTful API

Client-server Architecture : The client is the front-end the server is the back end of the service.

It is important to note that both of these entities are independent of each other.

Stateless : No data should be store on the server durng the processing of the request transfer. The state of the session should be saved at the clients end.

Cacheble : The client should have the ability to store responses in cache. This greatly improves the performance of the API:

Uniform Interface : this constraiint indicates a generic interface to manage all the interfaction between the client and the server in a unified way, which simplifies and decouples the arhitecture

Layered System : The server can have multiple layers for implementation. This layered architecture helps to improve scalability by enabling load balancing.

Code on Demand : This constraint is optional. This constraint indicates that the functionality of the client applications can be extended at runtime by allowing a code download from the server and execturing the code



Share your thoughts about this post
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Recent Posts

Rest Introduction and Architecure

December-17-2021 19:03:47

Welcome to my Blog

April-20-2021 22:03:03