Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Ajax Prediction

2,217 views

Published on

Published in: Technology

Ajax Prediction

  1. 1. Making Magic Happen: Predicting User Behavior in AJAX applications Jonathan Boutelle Uzanto Consulting
  2. 2. Who am I? <ul><li>www.uzanto.com </li></ul><ul><li>www.jonathanboutelle.com </li></ul>
  3. 5. HTML Server Http request Initial Html User action Html (with data embedded) Dbase Vanilla Web App (circa 2000) User action Html (with data embedded) …
  4. 6. HTML Http request Initial Html User action Html (with data embedded) Vanilla Web App (circa 2000) User action Html (with data embedded) … Server Dbase
  5. 7. Rich Internet App (circa 2003) Http request for app App (lActionScript and Flash) downloads User action that requires data Data UI Client Manager Server Dbase
  6. 8. Rich Internet App (circa 2004) Http request for app App (Flash and ActionScript) downloads User action that requires data Optionally preload data UI Client Manager Server Dbase
  7. 9. Ajax Application (circa 2005) Http request for app App (HTML + Javascript) downloads User action that requires data Always preload data UI Client Manager Server Dbase
  8. 11. Building a model of user behavior <ul><li>Build naïve model </li></ul><ul><li>Validate and refine model </li></ul><ul><li>Be metric driven </li></ul><ul><ul><li>Responsiveness: % user data requests that were met with pre-fetched data </li></ul></ul><ul><ul><li>Efficiency: the % of pre-fetched data that ended up being used </li></ul></ul>
  9. 13. Preload Cost <ul><li>the extra cost assumed by preloading: </li></ul><ul><li>{cost of download} * </li></ul><ul><li>(1-{odds data will be requested}) </li></ul>
  10. 14. Preload Value <ul><li>value of reduced latency * </li></ul><ul><li>odds the data will be requested </li></ul>
  11. 15. Download if value > cost <ul><li>Value = value of reduced latency * odds the data will be needed </li></ul><ul><li>Cost = cost of download * odds the data won’t be needed </li></ul>
  12. 16. Value vs. Cost Odds the data wll be used 100% 0% value cost
  13. 17. Increasing Value of Preload Odds the data wll be used 100% 0% value cost
  14. 18. Decreasing Value of Preload Odds the data wll be used 100% 0% value cost
  15. 20. value cost Odds content will be requested Importance of low latency

×