Dealing with releases of single page applications
1–10 of 13 posts
Re: Dealing with releases of single page applications
#2That said, the way I would've architected this is I'd include a build version # into the distro and provided a checkVersion backend service that would return the current build version # for the client side logic to compare it's build # to.
And if you want to go an extra mile maybe a shouldRefresh service that would only return "true" if the changes that were made require a refresh on the client side.
Re: Dealing with releases of single page applications
#3Re: Dealing with releases of single page applications
#4Or you could use framework like for example ember.js and have it out of the box.
Re: Dealing with releases of single page applications
#5yoursite.com/api/v1/call
yoursite.com/api/v2/call
Re: Dealing with releases of single page applications
#6Re: Dealing with releases of single page applications
#7Re: Dealing with releases of single page applications
#8Sounds like a workable solution. That said, the way I would've architected this is I'd include a build version # into the distro and provided a checkVersion backend service that would return the current build version # for the client side logic to compare it's build # to. And if you want to go an extra mile maybe a shouldRefresh service that would only return "true" if the changes that were made require a refresh on…
Re: Dealing with releases of single page applications
#9If this was a problem I was truly concerned about, i'd attack it with discipline and tinkle bit of versioning. If you're making a breaking change to the API perhaps you should increment the major version, and support both, and then sail away the old API when you feel comfortable doing so. yoursite.com/api/v1/call yoursite.com/api/v2/call
Re: Dealing with releases of single page applications
#10Hot reloading deployed production applications is a really intriguing feature of meteor.
I'll bet something similar could be built if someone was using react and redux. Sort of like the local development hot reloading with react-transform-hmr, but running in production. This would make it automatic instead of requiring a browser reload and erasing the users current ui state. The trick would be in optimizing the performance. Using a websocket instead of polling would be a bit more efficient too.