I have a Node.js web application and a postgres database being hosted on a raspberry pi on my local network. They are being frequently accessed by other devices on the local network during the work day, and any system downtime results in the delay or failure of operations.
What are some possible solutions to this issue? Do I need to deploy the Node.js web application using something like Heroku or is there a way that I could add redundancy by hosting the Node.js web application on multiple different machines to allow the application to keep running in the event of a crash?