Click here to load reader
Upload
roger-rafanell-mas
View
485
Download
1
Embed Size (px)
Citation preview
Execution Environments for Distributed Computing
RESTvs
SOAP
EEDC
343
30
Master in Computer Architecture, Networks and Systems - CANS
Homework number: 2
Roger Rafanell [email protected]
2
Content
Distributed Systems
– Part 1: Definitions
– Part 2: REST
– Part 3: SOAP
– Part 4: Conclusions
3
Part 1 - Definitions
Representational State Transfer (REST)
“Is a web service architectural style based on the existing HTTP protocol and markup languages, designed for
operations on data.”
4
Part 1 - Definitions
Simple Object Access Protocol (SOAP)
“Is a web service protocol specificationfor exchanging structured information
designed to offer application logic as a service.”
5
Part 2 - REST Overview
Data oriented– Expose a API over the internet to handle CRUD operations on DATA.
Simplicity– Based on HTTP and URIs standards.
– Creating clients (consume).
Flexibility– Allows many data formats such JSON (better browser support).
– JSON fits better for parsing data.
Lightweight – Requests can be short and can take 10 times less than SOAP ones.
Performance– Better performance and scalability.
– Reads can be cached on client browsers, not like SOAP.
Complex to build– More complex to develop services than SOAP.
6
Part 3 - SOAP Overview
Logic oriented– Expose OPERATIONS over the internet as a service.
Simplicity– More easy to develop services than REST (toolkits).
Security– SOAP supports SSL (just like REST) it also supports WS-Security
adding some enterprise security features. Reliability
– SOAP, not like REST, has successful/retry logic built in and provides end-to-end reliability.
Atomicity– SOAP offers ACID transactions over a service while REST it
isn’t ACID compliant.
7
Part 3 – Adoption on business
SOAP usual adoption on business: Security/transactional-dependent business.
– Banks – Paypal,…
REST usual adoption on business:– Yahoo (Flickr, del.ici.ous,…)
– Google (since 2006)
8
Part 4 - Conclusions
Unless you have a special reason to use SOAP use
REST but, choose according your services needs!
9
Q&A
10
Fields of application
Thank You!