Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fetch top words from 40k crawled essays

We will be fetching the top k words from all the essays given in file

A valid word is:

  1. Contain at least 3 characters.
  2. Contain only alphabetic characters.
  3. Be part of our bank of words (not all the words in the bank are valid according to the previous rules)

High-level design

FireFly

Read file having 40k urls

  1. Read url file online
  2. Converted into chunks of API_CALL_CHUNK_SIZE

Read essays chunk by chunk

  1. Get a chunk from the previous step
  2. Use ExponentialBackOffQueueProcessor for reading from Engadget
  3. Validate if words are valid or not
  4. Return Map<String, Long> map for this chunk

Merge all chunks

  1. Merge all maps from chunk
  2. Return the top k words

Tech-Stack

  1. Java, Spring-Boot, Spring-Batching

ExponentialBackOffLogic

ExponentialBackoff

About

Fetch top words from <p> tags in essays

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages