by cgrealy · 4y ago · 0 comments
Offline mode adds a cost to every new feature, even if it's just deciding if you are going to support said feature offline.
If you're dealing with sensitive data, it also means you need a way to secure that data on the client device.
I'm not saying apps shouldn't have an offline mode, but software engineering resource isn't free and most businesses would need to justify the cost of offline (even if it's just an opportunity cost).
It does not force you to replicate your functionality.
What forces you to replicate your stack is poorly designed architecture.
Not necessarily true if you can run the same code on the client as you do on the server.
Plus, you frequently don’t want to architect your client code the same as your server code (you’re not going to run a bunch of micro services on the client side for example)
Maintaining multiple sources of truth is hard, especially if multiple people are working on the same data.
What was the user load like? Performance / latency?
You can absolutely implement offline in a web application (Google drive does this). Obviously, you need to be online to get the app in the first place, but once it’s cached, you should be good to go.
Again, it’s a cost-benefit analysis for the business.
You might be at a remote site, or on a plane with no Wi-Fi.
But, yeah, if those are common use cases for your app, you should absolutely be designing for offline.
Your job may literally involve entering data at a remote site with sketchy-to-no internet (mines, farms, geological surveys, etc).