3 ms·
Thank you, you're right I'm loading every item individually async from the official API. Not only are the requests unnecessarily large, it can take a while to l
by MrAwesomeSauce 10y ago
Thank you, you're right I'm loading every item individually async from the official API. Not only are the requests unnecessarily large, it can take a while to load with a large number of comments. Definitely something to work on and fix.
- ben_jones 10y agoWrite a couple hundred lines of your favorite language and throw it up on Google App Engine. Have the code query all relevant threads/comments and store them in GAE's free memcached service. It should fall perfectly into the free tier, and if not the $300 free trial should last you a full year. Finally have the angular2 app query your GAE project directly and you should be looking at < 50 ms loads of much more efficient json data. Wish I worked for Google, but I just like GCP (currently migrating my company's infrastructure to it).
- MrAwesomeSauce 10y agoOh thanks for that mate will definitely look into this, especially the free tier
- boulos 10y agoThanks for the shout out, Ben! I sadly have to correct you though: our $300 free trial for all of GCP is time limited to two months. That said, you're right about App Engine and it's free tier, it goes a long way! Since Firebase is built on Google Cloud, you can easily still use Firebase for the "front end" / client, and serve it up as a json response as suggested. Disclosure: I work on Cloud at Google.