UML sequence diagram: how can I complete a cron job?

I am developing an application that takes advantage of the restaurant dataset. Each week, my system will run a CRON job to synchronize the restaurants available in the open API with my database.

However, how to draw a sequence diagram for this CRON job? Who is the actor?

+10
source share
1 answer

The actor will be some kind of scheduler (or you can use the Cron object if you want). The target will be your Synchronizer object that performs all this fantastic web crawling.

enter image description here

You can use the loop snippet to show the repetition. A simple note will also do :-)

+16
source

All Articles