Return to Video

Cron Jobs - Developing Scalable Apps with Java

  • 0:00 - 0:03
    So we've talked about push and pull queues now. But
  • 0:03 - 0:06
    what if you just want to do something at regular intervals?
  • 0:06 - 0:10
    For example, perform a backup, remove temporary files or send a
  • 0:10 - 0:14
    daily report at midnight every day. That's exactly what a Cron
  • 0:14 - 0:17
    job does. It's a scheduler. An app engine cron job
  • 0:17 - 0:19
    is very similar to a cron job in Unix, if you
  • 0:19 - 0:23
    have worked with that. So, cron is a scheduler within app
  • 0:23 - 0:27
    engine that allows you to specify tasks that are executed regularly.
  • 0:27 - 0:30
    Cron is perfect to use to perform background tasks, which
  • 0:30 - 0:34
    are not directly initiated from user activity. For example, to
  • 0:34 - 0:37
    run batch or synchronization jobs of different kinds and back
  • 0:37 - 0:41
    ups, etc. The cron job is very easy to configure
  • 0:41 - 0:44
    and there are two things you need to specify. First
  • 0:44 - 0:46
    of all, the URL that should be called. This is
  • 0:46 - 0:49
    where you place the code you want to execute and
  • 0:49 - 0:52
    then you also need to specify the schedule which controls
  • 0:52 - 0:57
    when the task URL is called and as with the Queues there is a ten minute
  • 0:57 - 1:00
    limit for dynamic instances. If you want more
  • 1:00 - 1:02
    time than that, you can use resident instances.
タイトル:
Cron Jobs - Developing Scalable Apps with Java
概説:

more » « less
Video Language:
English
Team:
Udacity
プロジェクト:
UD859 - Developing Scalable Apps
Duration:
01:04

English subtitles

改訂 Compare revisions