Hi,
I am just trying to work out what the best way in doing the following..
I am designing some software (in B4J) which will run on the main server and on some sub servers.
The sub servers will host the users data which will be used with B4A/B4i. However to work out what server the user needs to connect to I am using a main server.
I could host everything on the one server, but if things get busy I want to spread it over a few servers.
Since the B4A/B4i app needs to login to both servers, I need to keep all servers in sync with the user logins.
For Example:
User connects to main server and sends login.
Main server replies with IP/Port to the app.
User now connects to the sub server and sends the same login details.
User can now access the files.
If the user changes there login details on the sub server I need to forward that login to the main server and the other sub servers. There could be 4-5 sub servers.
I need both main and sub servers to keep the login in sync.
I was looking though the CloudKVS - synchronized key / value store tutorial. - https://www.b4x.com/android/forum/threads/b4x-cloudkvs-synchronized-key-value-store.63536/#content
Would this be the best way in keeping the login details in sync? Or is there a better way ?
I am only wanting to keep the B4J apps in sync on the server and not the B4A/B4i apps since the B4A/B4i apps will check the server if the login is valid or not.
I am planning on using WebSockets or MQTT to send the data to/from the B4A/B4i apps to the servers.
So, the data I am wanting to keep in sync is the login data between the servers only.
Also, if the login data got sent to the other server (the user changes the login) will this trigger anything on the other server to notify that server the value was updated or does it do it silently in the background.
Can the data be encrypted with the CloudKVS? I noticed with the KeyValueStore 2 it allows messages to be encrypted. Is this the same with the CloudKVS?
https://www.b4x.com/android/forum/threads/b4x-keyvaluestore-2-simple-powerful-local-datastore.63633/
I am just trying to work out what the best way in doing the following..
I am designing some software (in B4J) which will run on the main server and on some sub servers.
The sub servers will host the users data which will be used with B4A/B4i. However to work out what server the user needs to connect to I am using a main server.
I could host everything on the one server, but if things get busy I want to spread it over a few servers.
Since the B4A/B4i app needs to login to both servers, I need to keep all servers in sync with the user logins.
For Example:
User connects to main server and sends login.
Main server replies with IP/Port to the app.
User now connects to the sub server and sends the same login details.
User can now access the files.
If the user changes there login details on the sub server I need to forward that login to the main server and the other sub servers. There could be 4-5 sub servers.
I need both main and sub servers to keep the login in sync.
I was looking though the CloudKVS - synchronized key / value store tutorial. - https://www.b4x.com/android/forum/threads/b4x-cloudkvs-synchronized-key-value-store.63536/#content
Would this be the best way in keeping the login details in sync? Or is there a better way ?
I am only wanting to keep the B4J apps in sync on the server and not the B4A/B4i apps since the B4A/B4i apps will check the server if the login is valid or not.
I am planning on using WebSockets or MQTT to send the data to/from the B4A/B4i apps to the servers.
So, the data I am wanting to keep in sync is the login data between the servers only.
Also, if the login data got sent to the other server (the user changes the login) will this trigger anything on the other server to notify that server the value was updated or does it do it silently in the background.
Can the data be encrypted with the CloudKVS? I noticed with the KeyValueStore 2 it allows messages to be encrypted. Is this the same with the CloudKVS?
https://www.b4x.com/android/forum/threads/b4x-keyvaluestore-2-simple-powerful-local-datastore.63633/