September 21, 2021

Is it good practice for a program to run the whole day?

Is it good practice for a program to run the whole day?

Basically, I want to know if it is common in the industry for devs to write programs that run the whole day — in a scenario similar to mine.

I have a JavaFX program that starts in the morning and only ends at night. It waits for some data to be available on the internet, checks for that data, if available it downloads it, does some calculations, outputs an Excel file, and then just waits and continuously checks for new data to be available at an unknown time later that day. This happens about 8 times each day.

I want to know if this is the way to do it, or if it can be done differently and more efficiently? Maybe there's a way to do it as a web app that would be better?

Any input would be appreciated, thanks!

submitted by /u/CaptainCode314
[link] [comments]