Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When should cfthread be used?

Would you please give a simple scenario where threading is necessary? Thank you, Nich

like image 844
n_kips Avatar asked Dec 02 '25 08:12

n_kips


1 Answers

I used it in a situation where we needed to initiate some back end data processing to tabulate data prior to the user executing some reports. So after login we would fire off a task using cfthread to build the warehouse data for the user. Worked great!

So think of cfthread as a way to execute an asynchronous task on demand. Extremely useful in the right situation!

like image 51
scrittler Avatar answered Dec 04 '25 06:12

scrittler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!