there is a possibility to buffer them in the messaging component on prem and deactivate the trigger which is sending them to DB when you detect a DB outage.
Buffering in integration component is not advisable as those messages will get lost when integration component restarts.