iluwatar / java-design-patterns

Design patterns implemented in Java
https://java-design-patterns.com
Other
90.07k stars 26.61k forks source link

MapReduce design pattern #2927

Open iluwatar opened 7 months ago

iluwatar commented 7 months ago

The MapReduce design pattern is designed to process large volumes of data in a distributed and parallel manner, improving scalability and performance by utilizing multiple processing nodes. Originating from functional programming paradigms, it was popularized by Google as a way to perform distributed processing on huge datasets across many servers. Here’s a breakdown of its intent, main components, and data flow:

Intent

The main intent of the MapReduce design pattern is to allow for the processing of large data sets with a distributed algorithm, minimizing the overall time of computation by exploiting various parallel computing nodes. This design pattern simplifies the complexity of concurrency and hides the details of data distribution, fault tolerance, and load balancing, making it an effective model for processing vast amounts of data.

Main Components

The MapReduce design pattern primarily consists of three components:

Typical Data Flow

The typical data flow in a MapReduce operation involves several key steps:

By breaking down data into smaller pieces that can be processed in parallel, and by organizing the processing so that each stage builds appropriately on the last, MapReduce can efficiently handle tasks that are too large for a single processing unit. This model is well-suited for tasks like large-scale text processing, data mining, and log analysis.

Acceptance Criteria:

rankans commented 3 months ago

@iluwatar Can I start working on this? This is my first time contributing so might need some help as well.

stale[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions.

wizzac commented 1 month ago

Hello, I would like to work on this one, if it's still not taken