If the requirement is really not to lose any then the file-based persistence manager may be too slow for you.
Use a controller with non-volatile ram setup for retain data. Then use a circular array stored in VAR PERSISTENT. The array size should be as big as the maximum number of userids you intend to buffer.
π
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
What would be an ideal solution to save data before processing them.
I mean I am reading strUserID and I want to persist them before saving them to a MySQL database.
Actually I would like to use 2 tasks. One collecting strUserID while another one handling MySQL connection and sending of them.
The problem that I would like to save the strUserID before sending them thus in case of power outage, I didn't lose any strUserID.
I don't know whether to use collections (persisted) or persistent manager (as txt) or var persistent?
Thanks for your help in advance.
BR!
If the requirement is really not to lose any then the file-based persistence manager may be too slow for you.
Use a controller with non-volatile ram setup for retain data. Then use a circular array stored in VAR PERSISTENT. The array size should be as big as the maximum number of userids you intend to buffer.
How could I set-up a circular array?
Would you mind showing some resources, examples? :)
Thanks for your help in advance.