For our first Akka application, we are going to implement the Word Count using the MapReduce
method. The premise of the application is to accept complete sentences as a string and count the number of words across the input sentences.
We will take certain English sentences and run them through our Word Count Map Reduce application to count the number of occurrences of each word. The overall application will be broken into multiple tasks, such as performing specialized computations and computing the word count. The following diagram explains the different computational duties that will be assigned for each of the tasks:
Each sentence goes through the notions of the following:
Map task: It is defined as mapping the words within the sentence. We count the actual words in the sentence and discard certain STOP words such as "a", "is", "the", "to", and so on. For the selected words, we assign the numerical count value of 1. Subsequently, the list is passed on to the Reduce...