Purpose: Helps getting started with the "Actor Model" and modelling our typical programming use cases.
Approach: A new Fileactor per file name :"abc.txt" so if we have 100 files, 100 file actors
- FileActor : Every fileactor will parse the file and create a new child lineActor for all lines to be parsed and "tell" it to parse it. On receiving processing notification, it will "tell" ArchivalActor to process it for archival.
- LineActor The line actor will parse the line as per business logic, send it to CassandraActor. Additionally if it's the last line of file , it will "tell" file Actor that processing is completed.
- CassandraActor: For dumping records in DB.
- ArchivalActor : To archive the file once it's processed.