Document
Document
**Definition:**
---
#### **Advantages:**
1. **Immediate Results:**
- **Example:** A trader can buy or sell stocks within milliseconds of a price change,
maximizing profit opportunities.
- **Scenario:** **Traffic control systems** use real-time data to adjust traffic lights and
manage congestion².
3. **Increased Efficiency:**
- **Example:** When you withdraw money from an ATM, your account balance is updated
instantly, preventing overdrafts.
---
#### **Disadvantages:**
1. **High Cost:**
2. **Complex Implementation:**
3. **System Overload:**
**Definition:**
Batch processing involves collecting data over a period and processing it all at once. This
method is suitable for tasks that do not require immediate results.
---
#### **Advantages:**
1. **Efficiency:**
2. **Cost-Effective:**
- **Scenario:** **Utility billing systems** generate and send out bills for utilities like
water and electricity on a monthly basis².
- **Example:** Utility companies can process all customer bills in one go, reducing
operational costs by running the process during off-peak hours.
- **Example:** A business can run batch jobs overnight to compile and analyze sales
data, providing comprehensive reports by the next morning without requiring constant user
input.
---
#### **Disadvantages:**
1. **Delayed Results:**
2. **Error Handling:**
- **Example:** If an error occurs during a batch job in a production line, identifying and
correcting the issue can be challenging, potentially affecting the entire batch.
3. **Resource Intensive:**
- **Example:** Running a batch job to back up a large database can consume significant
system resources, potentially slowing down other operations.
---
- **Payroll Systems:** Calculate and process employee salaries in batches at the end of
each pay period, ensuring timely and accurate payments¹.
- **Utility Billing:** Generate and send out bills for utilities like water and electricity on a
monthly basis, optimizing resource use and reducing costs².
- **Data Warehousing:** Aggregate and process large datasets for business intelligence
reports, providing valuable insights for decision-making³.
---
Batch processing is highly efficient for handling large volumes of data and reducing
operational costs. However, it comes with challenges such as delayed results and complex
error handling, making it essential to consider the specific needs and constraints of each
application.
**Definition:**
---
#### **Advantages:**
1. **Convenience:**
- **Example:** Online stores like Amazon process orders instantly, enabling customers to
buy products 24/7 without visiting a physical store.
2. **Speed:**
- **Example:** A user can transfer money between accounts or pay bills instantly through
their bank's online portal, ensuring timely transactions.
3. **Automation:**
- **Scenario:** **Reservation systems** for flights, hotels, and other services process
bookings immediately³.
- **Example:** When booking a flight, the system automatically updates seat availability
and confirms the reservation in real-time, reducing manual errors.
---
#### **Disadvantages:**
1. **Security Risks:**
2. **Technical Issues:**
- **Example:** During major sales events, an online store might face server overload,
causing delays or preventing customers from completing transactions.
3. **High Maintenance:**
- **Example:** A bank's online platform needs regular updates and security patches to
protect against vulnerabilities and ensure smooth operation.
---
- **E-commerce Transactions:** Platforms like Amazon and eBay process orders and
payments instantly, providing a seamless shopping experience¹.
- **Online Banking:** Banks like HSBC and Citibank offer online services that allow
customers to manage their finances in real-time².
- **Reservation Systems:** Websites like Expedia and Booking.com handle flight and hotel
bookings instantly, updating availability and confirming reservations on the spot³.
---
Online processing is highly beneficial for applications requiring immediate data handling
and user interaction. However, it also poses challenges such as security risks and the need
for constant maintenance, making it crucial to balance the benefits with the potential
drawbacks.