Type of Web Service : REST Introduction

Share The Knowledge. It Grows !!!

Welcome to my second part of “Types of Web Service – REST”, REST stands for Representational State Transfer. It is the most popular and adapted web service development method in today’s IT world. Like I mentioned in my previous post “Types of Web Services – SOAP Introduction”, SOAP is the standard. REST is not a standard nor a process, it’s an architecture style of Application Programming Interface. You will find many posts mentioning it as a Software Architecture Style of the World Wide Web.

Roy Fielding is the person who introduced and defined the term Representational State Transfer somewhere during 2000. REST follows the principle used by largest distributed application, i.e. WWW. It uses HTTP protocol in almost all cases, it is stateless, cache-able communication protocol, based on client-server architecture. In earlier days CORBA, SOAP, and RPC is used for connecting the different machines. To overcome the disadvantages of these systems, the organization started relying on REST architecture, which uses simple HTTP call to establish the connection in between the machines.

REST Fundamentals
•    Every component of REST architecture is the resource.
•    All these resources can be identified by a URI.
•    All the resources are handled using HTTP methods like GET, PUT, POST, DELETE.
•    All this HTTP method are similar to Read, Create, update and Delete operations.
•    REST is a stateless service. Each request is considered as an independent request.
•    Request carries all the necessary information which is required to understand the request.
•    XML or JSON is used for communications purpose.

REST Advantages
•    REST reduces the dependency on middleware.
•    AJAX, Asynchronous JavaScript can easily consume the service which transfers the response in XML/JSON, like REST.
•    REST is not a protocol or standard, so it gives freedom to develop the web service the way you want to implement it.
•    We get lightweight services, as REST uses JSON to transfer the data.
•    Learning curve of REST is easy than SOAP.
•    Flexibility to get the response in Like XML or JSON.

Share The Knowledge. It Grows !!!

2 thoughts on “Type of Web Service : REST Introduction

  • August 19, 2016 at 4:27 am

    do you have any practical exmapl for rest to share?

  • August 21, 2016 at 5:46 am

    Thanks for reading our blog REST Introduction.

    Yes, soon we will share some more practicals on it.

    Please follow our Facebook and Twitter channels for latest post updates.

    STAI Admin

Leave a Reply

Your email address will not be published.

Ops!! You Can not Copy from The Digital Mentor.