Insert:    
Visibility:     Module:   

Monday, February 06, 2012

Handel's Blog

Minimize

3 Day Weekend and REST

Posted by: Michael Stephens on 5/28/2010

Before we head out on a 3 day weekend for memorial day it seems like a good time to talk about a Handel Research project Lee Pepper has been working on named bandicoot. REST stands for Representational State Transfer and has been popularized by Google, FaceBook and Twitter.  Rest involves using the low level HTTP protocol to transfer data back and forth.  Currently in our production systems we have been using WCF and SOAP messages. 

Lets explore this idea a bit more..

So to run a Google search for “hello” you could type in to the browser

 http://www.google.com/search?q=hello

What this does is uses a query parameter. What if querying RiteTrack was that easy? Well with bandicoot it is.

 

To recover data all we need to is go to a website like this

http://localhost/api.ashx/dtPerson/85056

What this does is it pulls back a dtPerson record with personid 85056. 

We can rewrite this as

http://localhost/api.ashx/dtPerson?q=where personid=85056

We can have any more fun by typing

http://localhost/api.ashx/dtPerson/85056?output=html to get..

 

image

Using the format parameter we can return .json .xml .csv and .html from the request. No matter what language you are in, you will be able to consume the data.

So we have demonstrated that the average web developer can now pull data from the system using advanced queries and provide readable results.  The system is fully rest capable and we are examining taking this system to production.

One was last thought though.. Why would we abandon our production WCF system.  For that I'll leave you with a graph of 500 requests. (Red is Bandicoot, Blue is WCF)

Image

Lee Pepper has given us a 640% speed increase.  Pretty impressive!

Create a trackback from your own site.

1 Comment

    • Aug 08 2010, 1:39 AM David Winegar
    • Can REST make me coffee though?

Leave A Comment



Please enter the CAPTCHA phrase above.



  
  

Archive

Maximize
  

Featured Posts

Maximize
  

 

Minimize
  

Recent Comments

Minimize

"You guys make me so proud. Way to go Tracey and Harika." Read more
by Even Brande on Skydiving Teaches

"Yes, I've experienced the cold of Laramie too. I could trade some of those days for a different place, but would never trade our summers! I love Laramie and its people!" Read more
by Danny on Winter in Wyoming

"This is a great idea!" Read more
by Frankie on Short on Time, Patience, or Both? Try a Business Card Scanner the Next Time You Add Contacts to RiteTrack

"Great post, preventative services are certainly such a great asset to all involved!" Read more
by Michael Perrenoud on President's Corner: Why Prevention Is Still Far More Cost Effective than Dealing with After-the-Fact Consequences

"Great job guys!" Read more
by Nate on Three Handelites Compete in the 2011 West Yellowstone Rendezvous

  
Copyright 2011 by Handel Information Technologies