Updating App with users in it ???
Unanswered
Barbary Lion posted this in #help-forum
Barbary LionOP
I'm fairly new to this web based dev world, do I need to worry about users being in the app when I update it ? (push and get vercel to rebuild production)
Is it a non issue? Or do I need users logged out ? If it's a global app, users will be on all the time, how is that processed handled?
Is it a non issue? Or do I need users logged out ? If it's a global app, users will be on all the time, how is that processed handled?
7 Replies
Siamese Crocodile
Hey, it depends on your use case. You can see the browser as a snapshot of the code. Once the user downloads it, it doesn't automatically refresh. So if the user has the browser with your website open for 20 days without refreshing or navigating away from that page it will be the outdated code.
Barbary LionOP
What is the usual practice to prevent that ? or how are people normally updating apps with live userbase
Siamese Crocodile
Never make a breaking change 😛 So when talking about new API stuff. Always have it behind versioning so that you can deprecate the old route and have it there for 2 weeks or something
Siamese Crocodile
But it really depends, so lets say you have a game or something where everybody needs to be on the same version, that you need to build a system that forces the update, something with pulling or websockets
@Barbary Lion I'm fairly new to this web based dev world, do I need to worry about users being in the app when I update it ? (push and get vercel to rebuild production)
Is it a non issue? Or do I need users logged out ? If it's a global app, users will be on all the time, how is that processed handled?
have a look at this https://vercel.com/docs/concepts/deployments/skew-protection
@joulev have a look at this <https://vercel.com/docs/concepts/deployments/skew-protection>
Barbary LionOP
Had a look very cool