Creating web services
Upcoming SlideShare
Loading in...5
×
 

Creating web services

on

  • 338 views

How to create twitter-like webservices. See also http://stage.vambenepe.com/archives/1801#comment-1075 and http://www.infoq.com/news/2011/09/ArchitecturalMirages

How to create twitter-like webservices. See also http://stage.vambenepe.com/archives/1801#comment-1075 and http://www.infoq.com/news/2011/09/ArchitecturalMirages

Statistics

Views

Total Views
338
Views on SlideShare
338
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Creating web services Creating web services Presentation Transcript

  • Creating API for your web application
    Adam Nemeth, @aadaam
  • Every webapp can be ported to the mvc pattern
    Theorem I.
  • Every webapp can be ported to the entities-services-templates pattern
    Theorem II. (this is what actually happens mostly)
  • IF YOUR TEMPLATES ARE FREE OF business LOGIC, SERVICES CAN BE SEPARATED
    Theorem III.
    Free of logic: See [Parr,2002]
  • YOU can always divide your templates to contextual and non-contextual to the given service
    Theorem IV.
    i.e. Master Layout and service-specific template
  • Publish the data you fill your templates with their raw structure
    Step 1.
    i.e. serialize the key-value map of your template as JSON
  • Make your services available without the non-service context templates as well
    Step 2.
    i.e. to do HIJAX
  • Make your authorization abstract to your services
    Step 3.
  • Control 3rd party access to your services
    Step 4
    i.e. create an OAuth-gateway
  • Separate all of your services to this layer and create only services your application uses
    Invariant through the project