Return to Video

Task Queues & Cron Jobs - Developing Scalable Apps with Java

  • 0:00 - 0:02
    So let's look at another feature that is needed
  • 0:02 - 0:06
    to build scalable applications, task queues. So why do
  • 0:06 - 0:08
    we need task queues? Well at this time this
  • 0:08 - 0:11
    picture should be no surprise to you. Our dear
  • 0:11 - 0:16
    users accessing our application from various devices. And our
  • 0:16 - 0:19
    application for turning the response. Technically this response must
  • 0:19 - 0:22
    be returned within 60 seconds from the request. But
  • 0:22 - 0:25
    that's a long time. We've talked about the importance
  • 0:25 - 0:28
    about returning a response as quickly as possible to
  • 0:28 - 0:30
    our dear users. And we don't want them to
  • 0:30 - 0:33
    wait, even for seconds, right? And certainly not 60
  • 0:33 - 0:37
    seconds. You want to deliver that response as quickly as
  • 0:37 - 0:40
    possible. But let's say that the user activity triggers
  • 0:40 - 0:43
    something big to happen. For example, the user adds a
  • 0:43 - 0:47
    new conference and as a consequence of that 10,000
  • 0:47 - 0:51
    emails should be sent out to notify other users about
  • 0:51 - 0:54
    this conference. First of all, that's not possible within
  • 0:54 - 0:57
    60 seconds. And secondly, you certainly don't want the
  • 0:57 - 1:00
    poor user that just registered the conference to wait
  • 1:00 - 1:04
    for this to happen. Remember, the screen update depends on
  • 1:04 - 1:06
    your response so even seconds are crucial to keep
  • 1:06 - 1:10
    your application responsive. Come to the rescue are task
  • 1:10 - 1:14
    queues. This is exactly the problem task queues solve.
  • 1:14 - 1:16
    And it may not be emails triggering the need for
  • 1:16 - 1:19
    this, it could be something else. For example, an
  • 1:19 - 1:21
    image needs to be analyzed or a video needs to
  • 1:21 - 1:25
    be re-encoded. Many things that are not needed to
  • 1:25 - 1:28
    complete the request for the user, could use task queues
タイトル:
Task Queues & Cron Jobs - Developing Scalable Apps with Java
概説:

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

English subtitles

改訂 Compare revisions