10

Click here to load reader

EEDC SOAP vs REST

Embed Size (px)

Citation preview

Page 1: EEDC SOAP vs REST

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]

Page 2: EEDC SOAP vs REST

2

Content

Distributed Systems

– Part 1: Definitions

– Part 2: REST

– Part 3: SOAP

– Part 4: Conclusions

Page 3: EEDC SOAP vs REST

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.”

 

Page 4: EEDC SOAP vs REST

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.”

 

Page 5: EEDC SOAP vs REST

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.

Page 6: EEDC SOAP vs REST

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.

Page 7: EEDC SOAP vs REST

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,…)

– Twitter

– Google (since 2006)

Page 8: EEDC SOAP vs REST

8

Part 4 - Conclusions

Unless you have a special reason to use SOAP use

REST but, choose according your services needs!

Page 9: EEDC SOAP vs REST

9

Q&A

Page 10: EEDC SOAP vs REST

10

Fields of application

Thank You!