6. 6
walk in some great details
What is it?
Performance
user-perceived performance and network
efficiency[
Scalability
increases the scalability of pure server
components
Simplicity of a Uniform Interface
A simple, well-defined, structured text-based
response structure
Visibility
communication between components
Portability
components by moving program code with the data
Reliability
resistance to failure at the system level
7. 7
RESTful principles: simple, lightweight & fast
What is it?
Resource identification through URI
/users/Galileo
Uniform interface
PUT, GET, POST, and
DELETE
Stateful interactions? Stateless!
Put the state information in in the payload or
reponse
Self-descriptive messages
HTML, XML, plain text, PDF, JPEG, JSON, and others
23. 23
Alternatives
Asynchronous APIs
WebSockets, MQTT, AMQP, Stomp,
WebHooks
SDKs
Orchestration / Experience APIs
takes generically-modeled data elements and/or
features and prepares them in a more specific way for a
targeted developer or application
Binary Protocols
Apache Thrift, Google Protocol
Buffers