A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

Why do RESTful applications to be simple, lightweight, and fast ?

The following below ethics inspire RESTful applications to be simple, lightweight, and fast:-

  • Resource identification through URI: RESTful applications use resources identification based on Uri concepts. RESTful web service disclosures a set of resources and it finds the goals of the collaboration with its clients. Resources are recognized by URIs, which offer a global addressing space for resource and service discovery. 

  • Uniform interface: HTTP methods are most commonly used in a REST based architecture. Resources are used via a stable set of four create, read, update, delete operations: PUT, GET, POST, and DELETE. PUT forms a new resource, which can be then deleted by using DELETE. GET saves the current state of a resource in nearly representation. POST handovers a new state onto a resource. 
  • Self-descriptive messages: Resources are decoupled from their representation so that their content can be retrieved in a variety of formats, such as HTML, XML, plain text, PDF, JPEG, JSON, and others. Metadata almost the resource is available and used, for example, to control caching, detect transmission errors, negotiate the appropriate representation format, and perform authentication or access control. 
  • Stateful interactions through hyperlinks: Each interaction with a resource is stateless; that is, request messages are self-contained. Stateful interactions are created on the idea of explicit state transfer. Several techniques exist to exchange state, such as URI rewriting, cookies, and hidden form fields. State can be implanted in response messages to point to valid future states of the interaction.

LEARN TUTORIALS

.

.