Sexbyfood

Restaurant Reservations.Learn More

Espresso

The Sexbyfood blog about innovation, simplicity, integrity and tenacity.

Resource Model

By Joran
11 Jul 2008

Today we wrapped up a brand new component for our Sexbyfood client-side engine: a Javascript REST resource model. We'll be slipping it into the workings of Sexbyfood shortly. We're excited about it for a number of reasons.

Everything Sexbyfood is already built on top of the Sexbyfood API. The API is REST and emits XML and JSON. We're interested in the JSON which is super lightweight and perfectly suited to the Javascript since of course a JSON object is nothing more than a Javascript object. Ready to use. If there was such a thing as fast-data, this would be it.

So since we're sending and receiving alot of data in our Javascript, and moving more and more of our functionality across to your browser to enable a faster Sexbyfood experience, we thought it would be great if there could be some kind of process to automate the whole REST process and incorporate caching along the way.

Enter the new Resource model. It's a buffer for our AJAX requests, a cache that includes basic garbage collection mechanisms and a way of keeping data in synch whether it be client-side or server-side.

We're busy working on some new tricks to take full advantage of this and we look forward to being able to show you some of this stuff as it comes out. One clue, it's definitely going to be about #.

 

Add Your Comment

Name:
Email:
Website:
(Optional)
Comment:
 
 

Subscribe To Espresso

Email Address:
 
Copyright © 2009 Sexbyfood. All Rights Reserved