A scheduler in software is a system component that manages and controls the execution of tasks, processes, or jobs based on predefined rules and timing. It determines which task runs, when it runs, and for how long.
Scheduler
πΉ Types of Schedulers in Software
1οΈβ£ CPU Scheduler (Process Scheduler) π₯οΈ
β Found in operating systems, it decides which process gets CPU time.
β Uses scheduling algorithms like FCFS, Round Robin, Priority Scheduling.
π Example: Windows Task Manager schedules processes efficiently.
2οΈβ£ Job Scheduler π
β Handles scheduled batch jobs, reports, and automated workflows.
β Used in enterprise IT systems, cloud platforms, and databases.
π Example: Cron Jobs in Linux, Windows Task Scheduler, Jenkins for CI/CD.
3οΈβ£ Task Scheduler π
β Manages background tasks within applications.
β Often used for automated backups, email notifications, and recurring tasks.
π Example: A task scheduler in a web app sends daily reports at midnight.
4οΈβ£ Database Query Scheduler π
β Optimizes query execution time by scheduling database operations efficiently.
π Example: MySQL event scheduler runs stored procedures at scheduled times.
β Schedules cloud-based workloads, container deployments, and microservices.
π Example: Kubernetes Scheduler assigns pods to nodes.
πΉ Why is Scheduling Important?
β Efficiency: Ensures optimal use of system resources (CPU, memory).
β Automation: Reduces manual intervention in running repetitive tasks.
β Performance: Prevents overload and improves system responsiveness.
β Scalability: Helps manage tasks across distributed systems.
πΉ Key Takeaways
πΉ A scheduler manages task execution in software & systems.
πΉ Used in OS, cloud computing, databases, automation, and DevOps.
πΉ It ensures efficiency, automation, and resource management.
Scope
Scope refers to the boundaries or limits within which something is defined, accessed, or applicable. It is widely used in software development, project management, and security.
Soft-delete
Soft deletion is a technique used in databases and applications in which data is not permanently deleted but marked as "inactive" or "deleted." This allows for data recovery and maintains historical records.
Soft-delete
πΉ How does soft delete work?
1οΈβ£ Instead of deleting a record, a "deleted" flag (e.g., is_deleted = TRUE) is set.
2οΈβ£ The data remains in the database but is hidden from normal queries.
3οΈβ£ If needed, the record can be restored by changing the flag.
π Example (SQL Soft-Delete)
sqlCopyEditUPDATE users
SET is_deleted = TRUE
WHERE user_id = 123;
Instead of deleting the row, it marks it as deleted.
π Restoring a Soft-Deleted Record
sqlCopyEditUPDATE users
SET is_deleted = FALSE
WHERE user_id = 123;
πΉ Soft-Delete vs. Hard-Delete
Feature
Soft-Delete
Hard-Delete
Data Recovery
β Possible
β Not possible
Performance Impact
π¨ Can slow queries (more filtering)
β‘ Faster deletion
Storage Usage
π More space required
β Less space used
Audit & History
β Retains history
β No record remains
πΉ When to use soft delete
β When data recovery is needed (e.g., user accounts, transactions).
β For auditing and logging (e.g., keeping a history of deleted records).
β To prevent accidental data loss in applications.
πΉ When to Use Hard-Delete?
β When storage is a concern and data is no longer needed.
β For compliance reasons where data must be completely removed.
β For temporary data that does not need recovery.
πΉ Soft-delete marks data as deleted instead of removing it.
πΉ Allows recovery and auditing and prevents data loss.
πΉ Used in databases, SaaS applications, and enterprise systems.
Service
In software, a service is a self-contained unit of functionality that performs specific tasks and can run independently or as part of a more extensive system. Services are commonly used in operating systems, web applications, cloud computing, and microservices architectures.
JFW supports 11 services, such as Identity, CDN, Security, Billing, Payment, ...
Statement
In project management, a statement refers to a formal document or declaration that defines key aspects of a project, such as its objectives, scope, deliverables, constraints, and assumptions. Statements help set clear expectations and guide project execution.
Subscription
In software and business, a subscription is a pricing model in which users pay a recurring fee (monthly, yearly, or for a custom period) to access a product or service.
Subscrption Type
A Subscription Type defines the duration and conditions of access to a service or product. For example, a 90-day subscription allows users to access the service for 90 days from the activation date, after which they must renew or extend it.
Subscription Type
Common Subscription Types by Duration
Short-Term Subscriptions
7 days (weekly)
30 days (monthly)
90 days (quarterly)
Long-Term Subscriptions
6-month (semi-annual)
1-year (annual)
Lifetime (one-time payment for permanent access)
Subscription Renewal Types
Auto-Renewal: Automatically renews after 90 days unless canceled.
Manual Renewal: Users must manually renew after 90 days.
One-Time Access: No renewal, expires after 90 days.
System
It is JFW or service, an object without a specified Brand.