pegasas opened a new issue, #15330:
URL: https://github.com/apache/dolphinscheduler/issues/15330

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar feature requirement.
   
   
   ### Description
   
   After seeing all local & large distributed job-scheduling framework, 
   I found that we may consider extending a key process in job-scheduling ---- 
**Trigger**, which allows user to defines their custom trigger in distributed 
runtime environment.
   
   Apparently quartz has considered this situation, but not extend into 
distributed environment.
   seeing 
https://www.quartz-scheduler.org/documentation/quartz-2.1.7/tutorials/tutorial-lesson-04.html
   
   Also seeing our community is ready to support streaming task.
   streaming task is unbounded, which means that if we wants to combine it with 
bounded batch job, we must defined a new trigger type for that.
   With this mechanism, we could do better with combining streaming task & 
batch task.
   
   Here's our architecture.
   
   
   Benefits from the best plugin in dolphinscheduler.
   We should consider to add trigger SPI plugin.
   
   Overview:
   
   - All trigger should trigger by **Event**
   - **Event Delivery** should based either **Push** or **Pull** mode.
   - Trigger only at the start on the workflow for easy implementation.
   
   still needs to consider consistency between master/worker.
   
   ### Use case
   
   - Use case #1: TimerTrigger
   This is common case. which is currently widely supported by dophinscheduler 
and all other job-scheduling framework
   - Use case #2: MQTrigger
   for example, after receive a message with some pattern, we should start a 
new workflow.
   - Use case #3: HTTPTrigger/TCPTrigger/SMTPTrigger
   very popular. after we make a HTTP call with dophinscheduler-api, we should 
start a new workflow. even we can trigger pipeline after we receive an email 
from external 3p team.
   
   - Use case #4: Combine Streaming & Batch Job
   In common scenarios, we often use streaming to do some near-real-time OLAP 
job, which requires batch job for backfill supplyment in case some unexpected 
error happens in streaming.
   
   ### Related issues
   
   [[DSIP-16][Task] Support stream 
task](https://github.com/apache/dolphinscheduler/issues/11352)
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to