Hi to all, new member and thought it’d be worthwhile registering here to understand more about webpagetest.
Our aim is to build a customised view of the performance of our companies sites pages and possibly overlay that with information from Google Analytics etc with historical data to try and understand when and where changes have been made to our sites, which impact performance. We could also use that to alert site owners when we do bad things!
Having a brief read through the documentation it seems a private instance would be the ultimate aim, however I understand there’s a delay for setup so we’d prefer to do a proof of concept first using the Google API’s with the understanding of the limited requests we can make per day.
I’m an experienced dev in various languages so my first thought was to:
- create a web app
- run a test when a user request one
- poll the API till the test data is available
- store the results of those tests
- call out (from the webapp) to other datasources such as Google Analytics
- create custom views of the webpagetest data with those datasources
Realising webpagetest data would need to be run as long running batch processes I started thinking how I’d manage that async, polling, storing the results etc which is now making me question the time to deliver.
My preferred language nowadays is node.js and saw this API wrapper GitHub - WebPageTest/webpagetest-api: WebPageTest API wrapper for NodeJS (which can be run either from the console or from a node.js webapp) but having thought about it, I now think it’d make sense to run this as a console app and download the JSON results as a batch process and then consume them within the webapp.
Having read that back it seems obvious now but I’d be keen for any feedback as to how I can get this up and running as quickly as possible.
Thinking more about it, I’d probably not need an “app server” backend, if I just generate the data every day it could be copied to a static html webapp and just use JavaScript to call out to other datasources.
Thanks for any replies