Background Jobs, DNS, CDN Flashcards
What are background jobs?
Tasks that run behind the scenes to handle operations that don’t need to be completed instantly.
What is an event-driven background job?
Triggered by specific events in the system, such as user actions or system-generated events.
How do event-driven background jobs work?
An event occurs, logged or sent to a message queue, and a background worker processes it asynchronously.
Give three examples of event-driven background jobs.
- Email Notifications
- Image Processing
- Payment Processing
What are the benefits of event-driven background jobs?
- Immediate responsiveness
- Decouples user-facing operations from heavy backend tasks
What is a schedule-driven background job?
Runs at specific times or intervals based on a predefined schedule.
How do schedule-driven background jobs work?
A scheduler triggers the job at the set time or interval to perform a designated task automatically.
Provide three examples of schedule-driven background jobs.
- Daily Reports
- Database Backups
- Cache Cleaning
What are the benefits of schedule-driven background jobs?
- Automates repetitive tasks
- Ensures consistency by running tasks at regular intervals
What is a returning results background job?
Processes a task in the background and provides the result to the user or system once complete.
How do returning results background jobs work?
A user requests a task, the job processes it asynchronously, and the result is returned when complete.
List three examples of returning results background jobs.
- File Downloads
- Data Analysis
- Video Rendering
What are the benefits of returning results background jobs?
- Handles long-running tasks without blocking the user interface
- Notifies users when the task is complete
What are the key characteristics of background jobs?
- Event-Driven: When an event occurs
- Schedule-Driven: At predefined times/intervals
- Returning Results: When results are requested
Why use background jobs?
- Improves Responsiveness
- Handles Long-Running Tasks
- Ensures Reliability
- Scalability
What are message queues used for in background jobs?
To queue tasks for background processing.
Name three examples of tools for managing background jobs.
- RabbitMQ
- Celery
- Cron
What is DNS?
The Domain Name System translates human-readable domain names into machine-readable IP addresses.