restful web services @ankaraphp meetup

Post on 10-Apr-2017

161 Views

Category:

Presentations & Public Speaking

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

RESTfulWeb Services

little little into the middleRESTful Web Services

What is it?

Why do we need?

Before

Now

After

Alternatives?

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

bon appétit

Pros & Cons

Questions & Remarks

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

by Roy Thomas Fielding

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

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

finally?What is it?

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

the WWW.”

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

put your great subtitle hereWhat We do

WWW Mobile API Anywhere!

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

Mobile App Development

Platform independent

Layered StatesAny client - Any Server Resource Organised

API

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

services(micro) ”“

fzk

inspired by Java - Sun MicrosystemsWORA + A!

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

Anywhere

Before?

Look at the timeline

SOAPSimple Object Access Protocol

RPCRemote Procedure Call

WSDLWeb Services Description Language

RESTful

NOW

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

application(s).

Who uses?

Twitter Facebook Pinterest Instegram Snapchat

After

Let’s discuss!

‘17‘18

‘23

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

Pros & Cons

Security?

Complexity?

Fast?

Simplicity

Well-defined/structured

WORA + A

WHAT WHY WHERE WHEN WHO HOW

Questions & Remarks ???

fatih@karatana.comFatih KaratanaLead Software Architect @ Turksat

Get in Touch github.com/fatihzkaratana

THANKS FOR WATCH !!!

top related