functions-samples
The gist
Our great sponsors
functions-samples | The gist | |
---|---|---|
66 | 26 | |
11,972 | 5,182 | |
0.4% | 4.9% | |
6.8 | 9.7 | |
5 days ago | 3 days ago | |
JavaScript | TypeScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
functions-samples
-
I just realized how expensive Firebase is for Social Media Apps
I tried to make a reddit like app. I used both realtime-database and firestore as database. The billing of the two is different from each other. I used realtime-database for frequently updated data (like or upvote, downvote count for ex.) and firestore for more stable and large data (post, comment, community and user data..). While doing this, I only used database rules, I did not use Cloud functions. So, I suggest you use a hybrid database to minimize your bill as much as possible and you can do amazing things with database rules. Have a good works.
- Unity and firebase read and write permission.
-
Setting up an auto-email micro function for Firebase RTDB
const functions = require("firebase-functions"); // // Create and deploy your first functions // // https://firebase.google.com/docs/functions/get-started // // exports.helloWorld = functions.https.onRequest((request, response) => { // functions.logger.info("Hello logs!", {structuredData: true}); // response.send("Hello from Firebase!"); // });
-
Send notification email after email has been verified
Try something along these lines…? https://github.com/firebase/functions-samples/tree/main/Node-1st-gen/quickstarts/email-users
-
Moving my Android app to Google cloud
Cloud Functions for Firebase - Pros: Aligns to my app which uses Firebase; Cons: have to use Typescript which I have no experience with
-
Is it safe to assume the user won't be able to manually call my Firebase functions from the frontend?
Cloud Functions run on Google's servers and are part of your project, so only you and your project collaborators can deploy that code.
-
React TODO list app but with a twist?
That would be a Firebase Cloud Function. Check their latest list of YouTube tutorials, they'll guide you through creating an app with full Firebase features.
- how to host node js app in firebase?
-
In One Minute : Firebase
Cloud Functions for Firebase
-
What are Firebase Extensions? How can they speed up your app development?
Cloud Functions are a serverless solution that allows you to run backend code in response to HTTPS requests or even more ⚡ powerfully, in response to events triggered by other Firebase products.
The gist
-
Object Narrowing in Typescript with Graphile Worker
Graphile worker has been great for me because it's a library that works with Postgres that allows me to queue jobs and execute them on the server without adding too many additional layers of complexity for being able to accomplish async tasks. (I'm aware of how popular bull is, but I don't want to add another data-store only for async tasks)
-
Job Schedulers for Node: Bull or Agenda?
Bull is currently in maintenance mode, we are only fixing bugs. For new features check BullMQ, a modern rewritten implementation in Typescript. You are still very welcome to use Bull if it suits your needs, which is a safe, battle-tested library.
-
Are there any generally accepted standards for inter-microservice communication? Or does everyone just go it their own?
I use bullmq with node
-
Next.js background jobs
You might consider using a queue for processing the request. I've found bullMQ, which works with Redis, to be a nice developer experience.
-
What is a good background scheduler?
BullMQ is a pretty solid choice: https://github.com/taskforcesh/bullmq It's the successor of Bull: https://github.com/OptimalBits/bull
-
How to schedule tasks in a Node.js app 🕙
BullMQ
-
First time building microservice-based application
For Node.JS you can use something like BullMQ (https://github.com/taskforcesh/bullmq) and then dispatch jobs to the message queue with your worker handling the jobs. You can read about an example for Bull MQ here (https://deadsimplechat.com/blog/best-nodejs-schedulers/#2-bull)
-
Is my health check endpoint good enough?
bullmq seems like an open issue
-
Help implementing Heroku Data For Redis (+bull & throng) / `ioredis`
In order to try and mitigate the OOMs. I read the Background Jobs in Node.JS with Redis blog post and implemented Heroku Data For Redis with ioredis, BullMQ and Throng,
- BullMQ – fastest, most reliable, Redis-based distributed queue for Node
What are some alternatives?
firebase-js-sdk - Firebase Javascript SDK
bull - Premium Queue package for handling distributed jobs and messages in NodeJS.
wordler - find solution to wordle every day and create an issue for each day
Bee-Queue - A simple, fast, robust job/task queue for Node.js, backed by Redis.
flutterfire - 🔥 A collection of Firebase plugins for Flutter apps.
better-queue - Better Queue for NodeJS
hyperform - ⚡ Lightweight serverless framework for NodeJS
RedisSMQ - A simple high-performance Redis message queue for Node.js.
quickstart-android - Firebase Quickstart Samples for Android
kue - Kue is a priority job queue backed by redis, built for node.js.
Fly CDN - A set of useful libraries for Edge Apps. Run locally, write tests, and integrate it into your deployment process. Move fast and maybe don't break things? Because, gosh darnit, you're an adult.
bree - Bree is a Node.js and JavaScript job task scheduler with worker threads, cron, Date, and human syntax. Built for @ladjs, @forwardemail, @spamscanner, @cabinjs.