CloudCron | A simple distributed cloud friendly cron for the masses | Serverless library
kandi X-RAY | CloudCron Summary
kandi X-RAY | CloudCron Summary
If you google around looking for a "cloud friendly cron" that runs on AWS, you’re out of luck. You’re probably just trying to solve one thing: to run a crontab on AWS.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of CloudCron
CloudCron Key Features
CloudCron Examples and Code Snippets
Community Discussions
Trending Discussions on CloudCron
QUESTION
We have web application used by customers and they have option to create reports. Report contains email and scheduled time(Ex: every day, 9 a.m.).
When the scheduled time matches the current time web app does some work and sends result to the email.
I have one requirement where I need to implement scalable cron architecture on top of swf.
My needed architecture looks like below:
- User creates report (DONE)
- Webapp saves report to the db and sends report data and timer to the cron microservice through SQS(simple query service). (DONE)
- Cron microservice reads incoming SQS messages and sends back SQS message when timer elapsed. (NEED THIS)
- Webapp reads SQS message and triggers Data Analyzer and Emailer function to send analyzed data. (DONE)
From I read about SWF service is we can create cron jobs and SWF autoscales. How can I create scalable cron microservice using SWF?
Open to any suggestions...
P.S. Web app is written in nodejs, it will be very good to write microservice in nodejs.
Update 1: After spending some time researching possible solutions, I found https://github.com/capside/CloudCron project. But it relies on cloudwatch event. For many scheduled tasks it may charge a lot IMO.
Update 2: Banjo Obayomi suggested to use Lambda function with SQS and CWE.
Solution 1:
- Webapp sends SQS message.
- SQS message triggers Lambda function1
- Lambda function creates CWE rule
- CWE rule triggers Lambda function2
- Lambda function2 sends SQS message back to webapp.
Limitations: We can only create 100 CWE rules per region. It means webapp can not generate more than 100 reports with scheduled date.
...ANSWER
Answered 2018-Nov-05 at 19:30Sounds like you can use AWS Lambda to be your ingesting point, have the function trigger from incoming SQS messages, do your processing and then send SQS message back.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install CloudCron
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page