What are the possibilities to queue messages and store them from main application and then do something with those queued messages every 30 minutes.
Application sends emails out everytime 1 of many components is giving a warning and when many are giving warnings then sometimes 7-10 emails are sent out at once.
I want to queue those warning messages, remove duplicants and send email every 30 minutes if needed.
As extra info this application has no database.
Is storing them in some .txt file and then running method with cron jobs great approach? After running the method, then cleaning out .txt file.