I needed to implement a utility server that monitors several custom variables that will be sent from any other server. To track variables, you must use a collection of key values, either the JDK or user-defined.
Here are a few considerations -
- Storing all variables in server memory is intense all the time.
- This server should be a very lightweight server, and I do not need heavy database operations.
Is there a specific stream collection that can serialize data after threshold memory and retrieve it based on need?
I hope I clearly define the problem statement.
Please suggest if any other approach is better.
source share