Jan 8th, 2009, 12:56 AM
Help in designing a data access using AJAX
I am developing a calendaring application in which I need to give the functionality to users to associate their contacts as the members of the events.
For this I am designing a AJAX based data access to fetch the core information of the contacts like their name, group and email address.
I would like to know what options I can look at the server side to fetch this info in quick time. I was thinking of following, please advice me considering the pros and cons of these approaches:
1) DB based approach: Every time a request to fetch contacts comes to the server, I fetch the data from the DB, may be few relevant columns, and send all the records to the web client
2) I keep the relevant contact info in the cache so that this info can be furnished from there without making a DB call.
3) Some other option.
Please advice which option will be better & if there is any technology/framework which can be leveraged here, it will help a lot.