Android Question what is the best protocol for an app with 1m users

Discussion in 'Android Questions' started by alimanam3386, Jan 1, 2018.

  1. alimanam3386

    alimanam3386 Active Member Licensed User

    Hi guys,

    Imagine an application you want to create for/with 1 million users. What protocol do you use for this volume of connections?

    my options for server side are :

    • WebSocket ( jServer library - b4j )
    • MQtt ( I run a broker or MqttClient )
    • Node JS ( my knowledge is weak about it )

    What do you think ? jServer (use B4J ) can handle 1m connection ?

    my vps server has , 10gb ram , intel i7 processor
     
    Last edited: Jan 1, 2018
  2. Erel

    Erel Administrator Staff Member Licensed User

    alimanam3386 likes this.
  3. alimanam3386

    alimanam3386 Active Member Licensed User

    the main role of server is to handle the messages of users to each other ( P2P )
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    You should use Firebase Push framework to send messages while your app is not running.

    Once your app is running then you can use WebSockets + regular handlers to send messages. WebSockets are used for server events and regular handlers can be used to send larger pieces of data.

    As your app grows you can add more servers to the backend.
     
    Peter Simpson and alimanam3386 like this.
  5. alimanam3386

    alimanam3386 Active Member Licensed User

    Thanks Erel
     
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