Serve
Register
Return User
OAuth Request
OAuth Redirect
Challenge Response
Access token
Save token
Redirect to website
Create standup
Trigger function
Create standup document
Send question
Send message
Save answer
Trigger function
Problems...
Unpopular Opinion:
Googles Documentation is bloated and lacks code examples
Angular Firebase:
No proper documentation page
Firebase:
Important documentation hidden on stackoverflow
Cold starts:
Terrible performance for low traffic apps
Functions Speed:
Comparably slow for average work
Firestore:
Slow query speeds and only partial batch support
HTTPS Function has a very non-deterministic behaviour
Syntactically correct, should execute properly or log errors.
Neither logging nor execution is happens reliably
export const stupid_function = functions.https.onRequest(
async (request, response) => {
const body = request.body;
console.log("New request from " + body.id)
await db.collection("some_document")
.doc(body.id)
.set(body);
console.log("Saved request in firestore");
response.status(200).send();
// Code that does some heavy lifting and time intesive stuff
console.log("Now doing loads of work")
doLoadsOfWork();
console.log("Loads of work finished");
}
);