Hi Everyone,
I am learning Scala and Akka Streams, I would kindly like to request for help on enhancing my small Akka Streams Program so that it can scale with increase in data. Below are the two functions of the Program;
a. convertTxtToPDF: This function converts raw text files to PDF files
b. setPwdLock: This function sets a password on PDF files generated
It takes below time for processing;
i. 1000 text files takes 8 mins (50 parallelism)
ii. 3000 text files takes 14 mins (150 parallelism)
iii. 10000 text files takes 47 mins (500 parallelism)
I noted that with increase in files, the longer it takes to process. Kindly help me enhance the Program to scale with increased data i.e processing should take less time with increased number of text files.
Please find the attached code for the Program.
Kind Regards,
Emmanuel.