BUILD, HOST AND MANAGE
YOUR CUSTOM API IN LESS THAN AN HOUR

All-in-one platform for Web APIs
http://apispark.com

Stève SFARTZ
ssfartz@restlet.com
VP of Engineering
December 5, 2013
BIO
Steve SFARTZ





VP of Engineering @ Restlet
APISpark devs & ops teams
Restlet Framework dev teams
Scalable & interoperable architectures

Keeping in touch
 ssfartz@restlet.com
 Twitter : @SteveSfartz
 Blog : Think big … mais pas trop !
WEB API PROJECT
TYPICAL LIFE CYCLE

1) Do It Yourself (DIY)
long, risky, expensive but highly flexible

Create

Host

Manage

Use

2) Platform as a Service (PaaS)
integrated, fast, cost effective

Promote
with the Restlet framework

DO IT YOURSELF APPROACH
RESTLET FRAMEWORK
OPEN SOURCE PROJECT STARTED IN 2005

Create (and consume) Web APIs

in a REST style

Editions for

ANDROID

GAE

GWT

JAVA

SE

JAVA

EE

OSGI
LARGELY USED
SELF HOSTED OR EMBEDDED
FILTERING AND ROUTING
MULTI-THREADED AND DYNAMIC

A
B
C
Restlet Resource
Filter

Route 1

A

A

B

B

Route 2

C

C
Router
Route 3
UNIFIED APPROACH
FOR CLIENT AND SERVER SIDES
REST API

Client
proxy

Server
subclass

Annotated
Java interface

Client
resource

HTTP

Server
resource
CONVERSION SERVICE
EXTENSIBLE, SCORING, BEANS DE REPRÉSENTATION

Atom

Form Data

Resource

HTML

XML

JSON

RDF

…

Converter
service

Representation
bean

State
MULTIPLE PROTOCOLS
HTTP COMES FIRST, EXTEND IT TO SUIT YOUR NEEDS

Protocoles
Caching

Authentication

Conditional
requests

Ranged
requests

Restlet
API

Payload

Semantics

Messaging

Restlet
Engine

•
•
•
•
•
•
•
•
•
•

HTTP
AJP
FTP
RIAP
CLAP
FILE
POP3
SMTP
JDBC
SIP
CLOUD INTEGRATION
TUNNEL YOUR IT AND EXPOSE INTERNAL DATA
with APISpark

PAAS APPROACH
APISPARK PLATEFORM

Send us your feed-back
and help us making it
the best PaaS for Web
APIs !
Step 1

BUILD YOUR DATA SOURCE
DIY APPROACH
 Select a database technology
 that scales

 Specify the schema
 tables / sets, keys / queries, indexes

 Setup the database
 On premise or in the Cloud
 Ensure security, high availability and
performances

 From days to weeks
PAAS WAY
BACK END AS A SERVICE
Step 2

CREATE YOUR WEB API
DIY APPROACH
 Select an API framework that
 Lets you be productive and gets you on the way
 Leverages your skills
 Ensures your web API will scale and be secure

 Write the code
 Code, debug, unit tests
 Read, write, update your data

 Package the code
 From days to weeks
PAAS WAY
FULLY AUTOMATED
Step 3

DEPLOY YOUR WEB API
DIY APPROACH
 Choose a deployment target
 Private hosting with firewall / DMZ
 Public hosting : Cloud / Dedicated

 Select an API management solution
 Build your own from Open source, third
party products
 Leverage an API management service :
plug it in tasks and side effects

 Guaranty your SLA
 Test, QA, iterate, benchmark…

 From days to weeks to get started
PAAS WAY
INSTANT DEPLOY AND AUTO SCALE
Step 4

PROMOTE YOUR API
DIY APPROACH
 Write your API documentation
 Annotated your API code and generate ?
 Use HTML tooling ?
 Maintenance costs (versions sync)

 Provide client SDKs
 Write first SDKs
 Pray for community contributions for others ?

 Test, QA, iterate, etc.
 From days to weeks to get started
PAAS WAY
GENERATE CLIENT SDKS
PAAS WAY
BUILT-IN ANALYTICS
DIY VERSUS PAAS
SUMMARY

From weeks to months

Web API manager
Current practice:
• Team of engineers
• Heterogeneous stack
• Complex & expensive
to develop and
to operate

From minutes to hours

Web API definition

Custom code
Web API framework
Hosting
Generic PaaS

API Spark
• creation
• hosting
• management
• usage
All-in-one PaaS
HOW MANY APIS ?
TO BUILD AND MAINTAIN

Browser

HTTP

Connected
devices

Pages + API

Smart
environment

Web Site

Business
Partners

Internal IT
FINAL THOUGHTS
 How to build 1 million API in 2017 ?
– with radically simpler PaaS for Web APIs
– truly democratize Web APIs !

Source: Wired / June 2013
THE ALL-IN-ONE PLATFORM FOR
WEB APIS
JOIN US
 DevOps Engineers
 R&D Engineers
 Internships : R&D, devops

 Location : France (Nantes)
 http://restlet.com/about/hiring
KEEP IN TOUCH!

http://apispark.com
Twitter: @apispark
ssfartz@restlet.com

APIdays Paris - How to Build Your Web API

  • 1.
    BUILD, HOST ANDMANAGE YOUR CUSTOM API IN LESS THAN AN HOUR All-in-one platform for Web APIs http://apispark.com Stève SFARTZ ssfartz@restlet.com VP of Engineering December 5, 2013
  • 2.
    BIO Steve SFARTZ     VP ofEngineering @ Restlet APISpark devs & ops teams Restlet Framework dev teams Scalable & interoperable architectures Keeping in touch  ssfartz@restlet.com  Twitter : @SteveSfartz  Blog : Think big … mais pas trop !
  • 3.
    WEB API PROJECT TYPICALLIFE CYCLE 1) Do It Yourself (DIY) long, risky, expensive but highly flexible Create Host Manage Use 2) Platform as a Service (PaaS) integrated, fast, cost effective Promote
  • 4.
    with the Restletframework DO IT YOURSELF APPROACH
  • 5.
    RESTLET FRAMEWORK OPEN SOURCEPROJECT STARTED IN 2005 Create (and consume) Web APIs in a REST style Editions for ANDROID GAE GWT JAVA SE JAVA EE OSGI
  • 6.
  • 7.
  • 8.
    FILTERING AND ROUTING MULTI-THREADEDAND DYNAMIC A B C Restlet Resource Filter Route 1 A A B B Route 2 C C Router Route 3
  • 9.
    UNIFIED APPROACH FOR CLIENTAND SERVER SIDES REST API Client proxy Server subclass Annotated Java interface Client resource HTTP Server resource
  • 10.
    CONVERSION SERVICE EXTENSIBLE, SCORING,BEANS DE REPRÉSENTATION Atom Form Data Resource HTML XML JSON RDF … Converter service Representation bean State
  • 11.
    MULTIPLE PROTOCOLS HTTP COMESFIRST, EXTEND IT TO SUIT YOUR NEEDS Protocoles Caching Authentication Conditional requests Ranged requests Restlet API Payload Semantics Messaging Restlet Engine • • • • • • • • • • HTTP AJP FTP RIAP CLAP FILE POP3 SMTP JDBC SIP
  • 12.
    CLOUD INTEGRATION TUNNEL YOURIT AND EXPOSE INTERNAL DATA
  • 13.
  • 14.
    APISPARK PLATEFORM Send usyour feed-back and help us making it the best PaaS for Web APIs !
  • 15.
    Step 1 BUILD YOURDATA SOURCE
  • 16.
    DIY APPROACH  Selecta database technology  that scales  Specify the schema  tables / sets, keys / queries, indexes  Setup the database  On premise or in the Cloud  Ensure security, high availability and performances  From days to weeks
  • 17.
    PAAS WAY BACK ENDAS A SERVICE
  • 18.
  • 19.
    DIY APPROACH  Selectan API framework that  Lets you be productive and gets you on the way  Leverages your skills  Ensures your web API will scale and be secure  Write the code  Code, debug, unit tests  Read, write, update your data  Package the code  From days to weeks
  • 20.
  • 21.
  • 22.
    DIY APPROACH  Choosea deployment target  Private hosting with firewall / DMZ  Public hosting : Cloud / Dedicated  Select an API management solution  Build your own from Open source, third party products  Leverage an API management service : plug it in tasks and side effects  Guaranty your SLA  Test, QA, iterate, benchmark…  From days to weeks to get started
  • 23.
  • 24.
  • 25.
    DIY APPROACH  Writeyour API documentation  Annotated your API code and generate ?  Use HTML tooling ?  Maintenance costs (versions sync)  Provide client SDKs  Write first SDKs  Pray for community contributions for others ?  Test, QA, iterate, etc.  From days to weeks to get started
  • 26.
  • 27.
  • 28.
    DIY VERSUS PAAS SUMMARY Fromweeks to months Web API manager Current practice: • Team of engineers • Heterogeneous stack • Complex & expensive to develop and to operate From minutes to hours Web API definition Custom code Web API framework Hosting Generic PaaS API Spark • creation • hosting • management • usage All-in-one PaaS
  • 29.
    HOW MANY APIS? TO BUILD AND MAINTAIN Browser HTTP Connected devices Pages + API Smart environment Web Site Business Partners Internal IT
  • 30.
    FINAL THOUGHTS  Howto build 1 million API in 2017 ? – with radically simpler PaaS for Web APIs – truly democratize Web APIs ! Source: Wired / June 2013
  • 31.
  • 32.
    JOIN US  DevOpsEngineers  R&D Engineers  Internships : R&D, devops  Location : France (Nantes)  http://restlet.com/about/hiring
  • 33.
    KEEP IN TOUCH! http://apispark.com Twitter:@apispark ssfartz@restlet.com