RESTful Web Services @AnkaraPHP meetup

27
RESTful Web Services

Transcript of RESTful Web Services @AnkaraPHP meetup

Page 1: RESTful Web Services @AnkaraPHP meetup

RESTfulWeb Services

Page 2: RESTful Web Services @AnkaraPHP meetup

little little into the middleRESTful Web Services

What is it?

Why do we need?

Page 3: RESTful Web Services @AnkaraPHP meetup

Before

Now

After

Alternatives?

Page 4: RESTful Web Services @AnkaraPHP meetup

backslash ınız düz bassın!

bon appétit

Pros & Cons

Questions & Remarks

Page 5: RESTful Web Services @AnkaraPHP meetup

What is it? REpresentational State Transfer, A new way to talk, since 2000

by Roy Thomas Fielding

Page 6: RESTful Web Services @AnkaraPHP meetup

walk in some great detailsWhat is it?

Performanceuser-perceived performance and network efficiency[

Scalabilityincreases the scalability of pure server components

Simplicity of a Uniform InterfaceA simple, well-defined, structured text-based response structure

Visibilitycommunication between components

Portabilitycomponents by moving program code with the data

Reliabilityresistance to failure at the system level

Page 7: RESTful Web Services @AnkaraPHP meetup

RESTful principles: simple, lightweight & fastWhat is it?

Resource identification through URI/users/Galileo

Uniform interfacePUT, GET, POST, and DELETE

Stateful interactions? Stateless!Put the state information in in the payload or reponse

Self-descriptive messagesHTML, XML, plain text, PDF, JPEG, JSON, and others

Page 8: RESTful Web Services @AnkaraPHP meetup

finally?What is it?

Traditional thinking: ”A Web service is a method of communications between two electronic devices over

the WWW.”

Page 9: RESTful Web Services @AnkaraPHP meetup

Why do we need?REST in piece ((((:

Page 10: RESTful Web Services @AnkaraPHP meetup

put your great subtitle hereWhat We do

WWW Mobile API Anywhere!

Page 11: RESTful Web Services @AnkaraPHP meetup

Enlarge your application mobility with RESTful web services: Windows Phone, Android, iOS, Mobile Web ”“

Mobile App Development

Page 12: RESTful Web Services @AnkaraPHP meetup

Platform independent

Layered StatesAny client - Any Server Resource Organised

Page 13: RESTful Web Services @AnkaraPHP meetup

API

Integrate your services with ANY 3rd partyvendors/softwares or internal

services(micro) ”“

fzk

Page 14: RESTful Web Services @AnkaraPHP meetup

inspired by Java - Sun MicrosystemsWORA + A!

Write your services Once regarding data or request and Run it to Anyone from

Anywhere

Page 15: RESTful Web Services @AnkaraPHP meetup

Before?

Page 16: RESTful Web Services @AnkaraPHP meetup

Look at the timeline

SOAPSimple Object Access Protocol

RPCRemote Procedure Call

Page 17: RESTful Web Services @AnkaraPHP meetup

WSDLWeb Services Description Language

RESTful

Page 18: RESTful Web Services @AnkaraPHP meetup

NOW

Page 19: RESTful Web Services @AnkaraPHP meetup

RESTful is the RockStarAll the most popular and huge companies use RESTful services for their own

application(s).

Page 20: RESTful Web Services @AnkaraPHP meetup

Who uses?

Twitter Facebook Pinterest Instegram Snapchat

Page 21: RESTful Web Services @AnkaraPHP meetup

After

Page 22: RESTful Web Services @AnkaraPHP meetup

Let’s discuss!

‘17‘18

‘23

Page 23: RESTful Web Services @AnkaraPHP meetup

Alternatives

Asynchronous APIsWebSockets, MQTT, AMQP, Stomp, WebHooks

SDKs

Orchestration / Experience APIstakes generically-modeled data elements and/or

features and prepares them in a more specific way for a targeted developer or application

Binary ProtocolsApache Thrift, Google Protocol

Buffers

Page 24: RESTful Web Services @AnkaraPHP meetup

Pros & Cons

Security?

Complexity?

Fast?

Simplicity

Well-defined/structured

WORA + A

Page 25: RESTful Web Services @AnkaraPHP meetup

WHAT WHY WHERE WHEN WHO HOW

Questions & Remarks ???

Page 26: RESTful Web Services @AnkaraPHP meetup

[email protected] KaratanaLead Software Architect @ Turksat

Get in Touch github.com/fatihzkaratana

Page 27: RESTful Web Services @AnkaraPHP meetup

THANKS FOR WATCH !!!