eli5: When an app updates, how are people on the old version still able to use it?

240 views

I know this isnt the case 100% of the time but could someone pls explain. sorry im dumb and bad at tech

In: 0

7 Answers

Anonymous 0 Comments

How clients (apps) and servers communicate can be quite simple or quite complicated. A simple way to communicate is using something called JSON (JavaScript Object Notation) and a login attempt may send this data. This data isn’t special it will likely be identical to how it was sent to your computer to display below.

“`
{
payload: login,
session: 0,
data: {
username: An_0w1,
password: Password123,
}
}
“`

I have told the server that I want to log in and given it the info it needs to try to log me in. The server can then respond with all the info I need to stay logged in or it can tell me it failed to log me in, which may look like this.

“`
{
payload: login_response,
session: ebc4c39712006984136a13fdcb7a81d3
data: {
code: 200 (success)
}
}
“`

From there the client can request whatever it needs. maybe it wants to load posts it can send a message with the `request_posts` payload. The server can the send the post data.

Lets say I update my app, these messages don’t need to change. I can use the same messages if a new payload is added the old app wont know about that so it wont be able to use it, but that wont change how the app actually acts.

People seem to think that if the code isn’t exactly the same made the same way on the same stuff that for some reason its different, but its not. When software creates data to be used externally programmers want to make it universal so that they never need to rewrite it again for something else.

You are viewing 1 out of 7 answers, click here to view all answers.