Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: cron job separation #22

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

Nadeera3784
Copy link

This pull request involves relocating the cron job from the www.ts file to a separate server. The key changes and reasons for this modification are outlined below:

Changes Made:

  • startCronJobs() function removed from www.ts
  • startCronJobs() moved to new server as cron.ts
  • Cron server start command added to the package.json
  • Instruction added to the documentation

Reasons for the change:

  • By offloading the cron job to a separate server, we can reduce the load on the main application server, enhancing its performance and responsiveness.
  • Running the cron job on a dedicated server minimizes the risk of it being affected by the main server's workload or potential downtimes.
  • This change allows for easier scaling of both the main application and the cron job independently, improving overall system scalability.
  • Separating concerns between the main application logic and scheduled tasks simplifies maintenance and future updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant