I am about to start developing a POS software as my new project with python and electron js. It is going to be a desktop application. However, my concern is it should work in both cases when desktop is connected to Internet or not. If I use cloud database services like azure or aws, I'll certainly be able to have a POS software that works online. If I use local databases, I'll be able to deploy a software that works offline. What could be the best way so the application works in both cases like: If its connected to Internet, AWS serves as database. If it's not, modifications are stored locally and get updated as soon as desktop goes online.
POS Software can be used by stores with multiple branches so data has to be synchronised all the time.
I'll really appreciate any input in this regard :)
This is my first desktop application software on this scale. I've been doing online stores in php uptil now.
Please bear with me if I couldn't express myself precisely.