0
 
	
  
Crea&ng	
  APIs	
  with	
  the	
  WSO2	
  Pla6orm	
  
	
  
	
  
Sagara	
  Gunathunga	
  	
  	
  	
  	
  	
  
Senior...
API	
  	
  
Sources	
  –	
  h;p://ismart-­‐ledtv.blogspot.com/2013/06/Toshiba-­‐42L6200U-­‐42-­‐Inch-­‐1080p-­‐120Hz-­‐3DP...
Contract	
  &	
  ImplementaUon	
  	
  
Sources	
  -­‐	
  h;p://www.fujifilmholdings.com/en/sustainability/acUvityreport/csr...
 Contract	
  &	
  ImplementaUon	
  	
  
Sources	
  -­‐	
  h;p://www.fujifilmholdings.com/en/sustainability/acUvityreport/cs...
Façade	
  Pa;ern	
  	
  
Provide	
  a	
  unified	
  interface	
  to	
  a	
  set	
  of	
  interfaces	
  in	
  a	
  subsystem...
API	
  Façade	
  pa;ern	
  	
  
Facade	
  
MediaUon	
  
Backend	
  Services	
  
 API	
  Façade	
  	
  
AuthenUcaUon	
  
• Basic	
  Auth	
  
• OAuth	
  
• SAML	
  
• NTLM	
  
• Social	
  login	
  
Author...
MediaUon	
  	
  
QoS	
  
• Basic	
  Auth,	
  OAuth	
  
• WS-­‐Security	
  
• WS-­‐RM	
  
• Store	
  and	
  Forward	
  	
  ...
MediaUon	
  	
  
•  It	
  is	
  possible	
  to	
  combine	
  façade	
  and	
  mediaUon	
  layers	
  into	
  a	
  single	
 ...
API	
  Façade	
  pa;ern	
  &	
  WSO2	
  plajorm	
  	
  
Facade	
   MediaUon	
  
Backend	
  
service	
  
WSO2	
  ESB	
  
•  High	
  performance	
  ESB	
  based	
  on	
  Apache	
  Synapse	
  	
  
•  Provides	
  message	
  and	
 ...
API	
  creaUon	
  with	
  WSO2	
  ESB	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  API	
  	
  	
  	
  	
  	
  	
  	...
WSO2	
  ApplicaUon	
  Server	
  
•  Lightweight	
  applicaUon	
  server	
  based	
  on	
  Apache	
  Tomcat	
  	
  
•  API	...
API	
  creaUon	
  with	
  WSO2	
  AS	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  API	
  	
  	
  	
  	
  	
  	
  	
...
API	
  creaUon	
  with	
  WSO2	
  AS	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  API	
  	
  	
  	
  	
  	
  	
  	
...
WSO2	
  Data	
  Services	
  Server	
  
•  Encapsulate data access logic and expose as standard services
–  RESTfull data s...
API	
  creaUon	
  with	
  WSO2	
  DSS	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  API	
  	
  	
  	
  	
  	
  	
  	...
WSO2	
  Business	
  Process	
  Server	
  
•  Expose	
  business	
  process	
  wri;en	
  in	
  BPEL	
  as	
  services	
  an...
API	
  creaUon	
  with	
  WSO2	
  BPS	
  
	
  	
  	
  	
  	
  API	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  OrchestraUon	...
WSO2	
  Business	
  Rule	
  Server	
  
•  Business	
  rules	
  are	
  exposed	
  as	
  services	
  
•  Default	
  rules	
 ...
API	
  creaUon	
  with	
  WSO2	
  BRS	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  API	
  	
  	
  	
  	
  	
  	
  	...
API	
  Everywhere	
  	
  
The	
  idea	
  is	
  to	
  embed	
  API	
  Gateway	
  capabiliUes	
  into	
  carbon	
  based	
  ...
API	
  Everywhere	
  	
  -­‐AS	
  	
  
API	
  Everywhere	
  	
  -­‐AS	
  	
  
Thank	
  You	
  
Upcoming SlideShare
Loading in...5
×

Creating APIs with the WSO2 Platform

472

Published on

Creating APIs with the WSO2 Platform

Published in: Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
472
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
24
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Creating APIs with the WSO2 Platform"

  1. 1.     Crea&ng  APIs  with  the  WSO2  Pla6orm       Sagara  Gunathunga             Senior  Technical  Lead   WSO2              
  2. 2. API     Sources  –  h;p://ismart-­‐ledtv.blogspot.com/2013/06/Toshiba-­‐42L6200U-­‐42-­‐Inch-­‐1080p-­‐120Hz-­‐3DP-­‐LED-­‐TV-­‐Smart-­‐TV.html    h;p://www.huffingtonpost.com/hillel-­‐fuld/  
  3. 3. Contract  &  ImplementaUon     Sources  -­‐  h;p://www.fujifilmholdings.com/en/sustainability/acUvityreport/csr/fpd/index.html,    
  4. 4.  Contract  &  ImplementaUon     Sources  -­‐  h;p://www.fujifilmholdings.com/en/sustainability/acUvityreport/csr/fpd/index.html,            API   Contract     API   ImplementaUon    
  5. 5. Façade  Pa;ern     Provide  a  unified  interface  to  a  set  of  interfaces  in  a  subsystem.   Facade  defines  a  higher-­‐level  interface  that  makes  the  subsystem   easier  to  use  
  6. 6. API  Façade  pa;ern     Facade   MediaUon   Backend  Services  
  7. 7.  API  Façade     AuthenUcaUon   • Basic  Auth   • OAuth   • SAML   • NTLM   • Social  login   AuthorizaUon   • OAuth    Scope   • XACML   SLA   • Thro;ling   • Scaling   • Billing       AnalyUc   • RealUme  events   • Business   Intelligence   • Reports   Management     • Publishing     • SubscripUon   management   • Token  management           Discovery   • Search   • DocumentaUon     • Swagger     • Samples     • Forum  
  8. 8. MediaUon     QoS   • Basic  Auth,  OAuth   • WS-­‐Security   • WS-­‐RM   • Store  and  Forward     Connectors     • SalesForce   • Gdoc,  Gmail   • Twi;er     • ………….   Tasks   • Inbuilt   • Custom     TransformaUons   • XSLT   • XQuery   • Smokes   • XPath   Content  Switching   • SOAP  1.1/1.2   • JSON   • XML   • Text   • CVS           Transport  switching   • HTTP/S   • JMS   • AMQP   • MQTT   • SMTP  
  9. 9. MediaUon     •  It  is  possible  to  combine  façade  and  mediaUon  layers  into  a  single  layer  to   reduce  latency  and  maintenance  overhead  but  generally  it  is  recommended   to  keep  these  two  layers  separately       •  When  WSO2  Business  Process  Server  used  in  mediaUon  layer  it  actually   perform    “Service  OrchestraUon”     •  If  the  backend  service  is  API-­‐friendly  then  it  is  possible  to  omit  this  layer  so   that  API  façade  directly  call  backend  services  but  this  is  depends  on  business   level  requirements  as  well      
  10. 10. API  Façade  pa;ern  &  WSO2  plajorm     Facade   MediaUon   Backend   service  
  11. 11. WSO2  ESB   •  High  performance  ESB  based  on  Apache  Synapse     •  Provides  message  and  service  mediaUon     •  Facilitate  to  expose  exisUng  legacy  system  as  APIs     •  API  implementaUons  can  be   •  A  REST  API   •  A  Proxy  Service    
  12. 12. API  creaUon  with  WSO2  ESB                          API                    MediaUon                          Backend  service       Backend  service     API     API     Proxy   API     SOAP   XML   TEXT   CVS   Binary   FIX   SAP   EJB   VFS   Pass-­‐through   JMS   AMQP   MQTT   API   Gateway   MediaUon  
  13. 13. WSO2  ApplicaUon  Server   •  Lightweight  applicaUon  server  based  on  Apache  Tomcat     •  API  implementaUons  can  be   •  JAX-­‐RS  service   •  JAX-­‐WS  Service     •  Jaggery    REST  service     •  Axis2  REST  or  SOAP  service   •  Can  be  also  used  to  host  back  end  service.     •  Binary  services  based  on  Protocol  Buffer      
  14. 14. API  creaUon  with  WSO2  AS                          API                                                            Services  on  AS       API     API     API   Gateway   JAX-­‐RS   JAX-­‐WS   Jaggery   Axis2   Pass-­‐through  
  15. 15. API  creaUon  with  WSO2  AS                          API                            MediaUon                          service  on  AS       API     API     Proxy   API     API   Gateway   MediaUon   JAX-­‐WS   Axis2   Binary     Binary  (TCP)   HTTP/JMS  HTTP/S   HTTP/S  
  16. 16. WSO2  Data  Services  Server   •  Encapsulate data access logic and expose as standard services –  RESTfull data services –  SOAP 1.1/1.2 based services •  Support for service management & QoS features –  Security , Transactions Throttling, Caching ,Data Federation •  In-built data sources and ability to create your own –  RDBMS – MySQL, Oracle, DB2, MS-SQLServer, Postgresql –  NoSQL - Cassandra, MongoDb –  Google spread sheet, Excel , CSV
  17. 17. API  creaUon  with  WSO2  DSS                          API                                                            Data  Services         API     API     API   Gateway   REST   SOAP   Pass-­‐through  
  18. 18. WSO2  Business  Process  Server   •  Expose  business  process  wri;en  in  BPEL  as  services  and  execute  them   •  Based  on  Apache  ODE  engine   •   Support  for  WS-­‐BPEL  2.0,  BPEL4WS  1.1  ,  BPMN   •   Full  persistent  support  for  long-­‐running  processes    
  19. 19. API  creaUon  with  WSO2  BPS            API                      OrchestraUon                    Backend  service       Backend  service     API     Business   Process   API   Gateway   OrchestraUon     Service  
  20. 20. WSO2  Business  Rule  Server   •  Business  rules  are  exposed  as  services   •  Default  rules  engine  is  Drools  but  possible  to  plug-­‐in  any  engine   supported  for  JSR-­‐94     •  Basic  rule  support  also  available  in  WSO2  ESB  as  a  mediator  
  21. 21. API  creaUon  with  WSO2  BRS                          API                                                            Rule  Services         API     API     API   Gateway   REST   SOAP   Pass-­‐through  
  22. 22. API  Everywhere     The  idea  is  to  embed  API  Gateway  capabiliUes  into  carbon  based  products   to  provide  API  management  capabiliUes  without  another  network  hop.     •  For  small  deployments  API  Store  ,  API  Publisher  and  Key  Manger  can   also  embedded  into  same  carbon  instance       •  Reduce  latency     •  Reduce  cost  for  small  or  medium  scale  deployments   •  Not  a  replacement  for  distributed  API-­‐Manager  deployments.    
  23. 23. API  Everywhere    -­‐AS    
  24. 24. API  Everywhere    -­‐AS    
  25. 25. Thank  You  
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×