Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Design patterns for pre initialize data for one task [closed]

I have working on developing scheduling application as a start up and application take some time to complete. during the scheduling process I cannot use service calls to load data, because it will reduce the performance. It may cause to terminate the process if data access failed.

So I need to load required data before starting the scheduling process and discard that data after completing the schedule. This is some kind of caching but it doesn't need all the features in caching like check for expiries, discard expiries update new changes etc. Need to load once a month only for the scheduling.

So can somebody tell me what is the best design pattern to handle that situation. Thanks

like image 538
Akila Avatar asked Feb 22 '26 19:02

Akila


1 Answers

Well that's a place for Prototype pattern, but you should also consider using some caching framework and just disable all fancy features like expiration, pinning, etc.

like image 182
Marcin Szymczak Avatar answered Feb 24 '26 12:02

Marcin Szymczak



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!