Giter Site home page Giter Site logo

jacksonkasi1 / qstash-headless-reminder Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 97 KB

Streamlined backend with Express.js, Firebase, and Qstash (Headless Cron) for appointment scheduling. Qstash handles cron jobs seamlessly, retrying on failure, and allowing easy monitoring.

Home Page: https://docbook-backend.vercel.app

JavaScript 100.00%
corn-job firbase firbase-database firebase-fcm firebase-push-notification headless node-js qstash upstash headless-corn

qstash-headless-reminder's Introduction

Qstash Headless Reminder (poc)

No need to rely on Node.js, cron, or npm anymore; Qstash will handle the cron job. If it fails, it will retry itself, and we can also monitor cron jobs.

This repository contains a simple backend for users to create appointments with doctors. Additionally, it will send push notifications to users' mobile devices when the appointment meeting is scheduled.

This repository contains a simple backend built with:

  • Express.js: For handling server-side operations.
  • Firebase (DB): Utilized for managing the database.
  • Qstash (Headless Cron): Handling scheduled tasks seamlessly.

Cons of Legacy Node.js Cron Jobs:

  • Deployment Dependency:

    • Redeploying code can disrupt Node.js cron jobs, leading to potential failures and missed tasks during deployment periods.
  • Limited Monitoring:

    • Traditional Node.js cron jobs lack built-in monitoring, making it challenging to easily track, identify, and troubleshoot issues.
  • Manual Retry:

    • In case of failure, manual intervention is required to trigger a retry, which may lead to delays in critical task execution.
  • Management Complexity:

    • Managing traditional Node.js cron jobs lacks a centralized system, making it more complex to organize and monitor cron tasks efficiently.
  • Server Dependence:

    • Running cron jobs within a Node.js server can limit server resources and hinder scalability, especially in a serverless architecture.

Pros of Qstash (Headless Cron):

  • Automatic Retry:

    • Qstash automates job retry on failure, ensuring tasks are retried without manual intervention, improving reliability.
  • Continuous Operation During Deployment:

    • Redeploying code does not impact Qstash cron jobs, ensuring uninterrupted operation during code updates or deployments.
  • Built-in Monitoring:

    • Qstash provides a management system with built-in monitoring capabilities, simplifying the tracking and troubleshooting of cron jobs.
  • Serverless Support:

    • Qstash supports a serverless approach, allowing for efficient resource utilization without the need for a dedicated server for cron jobs.
  • Reliability and Predictability:

    • Qstash offers a more reliable and predictable environment for cron jobs, reducing the likelihood of task failures.

Note: Firebase, Qstash data, and keys in this repository will be deleted soon.

For more details on optional parameters and configuration, refer to Qstash Documentation.

qstash-headless-reminder's People

Contributors

andalib-oper avatar jacksonkasi1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.