I have a monitoring application which via gui displays that status of a number of application servers. It works by sending a status request to the app server. The app server in turns queries the status of all it components, builds up a status response message and sends that message to the monitoring app. The monitoring app writes information in the status message to the database, which in turn is displayed on the GUI. The entire monitoring app is done in JavaSE.
My problem is this...the database struggles to keep up due to the sheer amount of data it needs to persist.
My solution that i thought up is to assign priorities to components of the status message and based on the priority i will persist it to the DB.
Is there possibly a better solution to this problem?