Android Tutorial [B4X] CloudKVS - synchronized key / value store

Discussion in 'Tutorials & Examples' started by Erel, Feb 15, 2016.

  1. luke2012

    luke2012 Well-Known Member Licensed User

    Hi all,
    how to check if the KVS Server remote machine is available?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Call RefreshUser. It will send a request to the server.

    If the server is not available then you will see a message in the logs:
    Error sending task: ...

    It is printed from JobDone.

    If Job.Success it true then the server is available.
     
    luke2012 likes this.
  3. luke2012

    luke2012 Well-Known Member Licensed User

    Within the server db I see that the deleted items (put with Null as Value) still there.
    So I think that it's a logical deletion. All deleted items will be preserved within the server db and never (phisically) deleted ?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    The value itself is deleted. The <user, key> tuple is kept.
     
    luke2012 likes this.
  5. luke2012

    luke2012 Well-Known Member Licensed User

    Can I use the test / development server as demo server for my customers ?
    So if a user ask me for a demo Of my app I let him download the client app (my customized app) that use the b4x test server ?
     
    Last edited: Jan 27, 2017
  6. Erel

    Erel Administrator Staff Member Licensed User

    If the usage is lightweight then you can. I recommend you to use your own server as this one is reset from time to time.
     
  7. luke2012

    luke2012 Well-Known Member Licensed User

    Thanks for your reply @Erel.
    Which is the reset interval ?
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    Every few days usually.
     
    luke2012 likes this.
  9. luke2012

    luke2012 Well-Known Member Licensed User

    I want to push my CloudKVS Client App to PlayStore but I wish to implement a license checking system.
    I'm thinking to implement Licensing library within my Client App.

    Is there any problem or limitation to do this within an CloudKVS Client App ?
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    No. Nothing special with CloudKVS.
     
    luke2012 likes this.
  11. luke2012

    luke2012 Well-Known Member Licensed User

    Hi All,
    I have two b4j web servers (CloudKVS & DataCollectionServer) running on a linux machine.
    How to stop a specific server (for example started as "java -jar kvs_server.jar") and let the other server running ?
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    Please start a new thread for this question in B4J questions forum.
     
    luke2012 likes this.
  13. luke2012

    luke2012 Well-Known Member Licensed User

    Hi Erel.
    I don't known how to estimate the (right) HW requirements (CloudKVS Server) to support a B4X Cloud with many users.

    For example, my new customer ask me to implement a solution based on the KVS Cloud with this requirements:

    1) An Android CloudKVS Client (Customer) that can put many items (each item is a type with about 10 fields).
    2) The Cloud must be accessible by 1000 users (customers) from WWW.
    3) The AutoRefresh is set to 0.01

    Is there a way to estimate the hardware requirements based on the current version of CloudKVS solution ?

    Thanks in advance for the reply.
     
  14. Erel

    Erel Administrator Staff Member Licensed User

    luke2012 likes this.
  15. luke2012

    luke2012 Well-Known Member Licensed User

    The reference system where the test was made is "Core i5, 8gb ram. The hard disk is quite fast (not SSD)": (https://www.b4x.com/android/forum/threads/server-performance-measures.37502/#content).

    So the PI boards (also last version) is not suitable for a Cloud with thousands of users (from 1000 to 5000) ?
     
  16. DonManfred

    DonManfred Expert Licensed User

    I guess no. You need to setup a more powerful machine.
     
    Erel and luke2012 like this.
  17. Erel

    Erel Administrator Staff Member Licensed User

  18. PhiloSophical

    PhiloSophical Member Licensed User

    I have installed the example client project in post#1 - but am getting this error logged:-

    Error sending task: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

    This when connecting to https://www.b4x.com:51041/cloudkvs

    Running on a Nexus 10. - B4A 6.5 - OkHhtputils2 version 2.20

    Any thoughts?
     
  19. Erel

    Erel Administrator Staff Member Licensed User

  20. PhiloSophical

    PhiloSophical Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice