25

I'm developing an application that takes advantages of restaurants' dataset. Each week my system will run a CRON job in order to synchronize the restaurants that are available on a public API to my database.

However, how do I draw the sequence diagram for this CRON job? Who is the actor?

1 Answer 1

34

The actor would be some scheduler (or you can use the Cron object if you like). The target would be your Synchronizer object doing all that fancy web scanning.

enter image description here

You can use a loop fragment to show the repetition. A simple note would do as well :-)

2
  • if i were to generalize it, can the Scheduler actor be Web Server?
    – ericlee
    Sep 21, 2015 at 14:33
  • 3
    I thought Scheduler to be the most general form :-) Of course you can use a Web Server as actor but in your question you were talking of cron which is not a web server at all but some basic OS program.
    – qwerty_so
    Sep 21, 2015 at 14:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.