Using:
- Google Cloud Datastore - Horizontally Scalable NoSQL Document Database
- Google Cloud Pub/Sub - Provides reliable, many-to-many, asynchronous messaging between applications.
- Google Cloud Storage JSON - Lets you store and retrieve potentially-large, immutable data objects.
- Google Cloud Stackdriver Logging - Writes log entries and manages your Stackdriver Logging config.
- Google+ API - The Google+ API enables developers to build on top of the Google+ platform.
- GC Lets you split traffic between versions by default, would be great for A/B testing a new performance-factored feature.
- Looks like GC also offers MongoDb and Managed SQL as part of their package
- Definitely slow to deploy, 5+ minutes each time.
- Datastore seems pretty standard CRUD stuff in Node.js at least, seems cool.
toDatastoremethod used to convert to Datastore format, have to explicitly remove keys from indexs. Has pagination built in to apparently. - Express Multer used to store images in memory during upload. Post method chains several command together, using
next()and then uploads the file to GC Cloud and returns image toreq.fileto be saved to Datastore. - For Oauth Consent Screen, you can not only register Authorised Callback URLs but also Authorised Javascript Origins
- Using RedisLabs powered Memcache (serverless) to persist sessions between versions and deploys.
- Idea of a worker.js with its own .yaml file. Can deploy that .yaml file separately which then defines it as a new service! In this case the worker tries to find more info on a book and update it!
- This is a pretty mental testing idea - proxy requres within node requires and stub out what they return https://github.com/thlorenz/proxyquire. See example in https://github.com/GoogleCloudPlatform/nodejs-getting-started/blob/master/6-pubsub/test/worker.test.js#L68