My team is developing a java-socket programming with push notifications based realtime chat application for android and ios.
We have worked a lot on the code and built it.But there are a few questions that are worthy to be answered before scaling the application.
1)Is java based socket programming scalable for a billion users?Is it the best way to make a chat application.
2)How many poeple can a chat room handle?Is it possible to add about 500-1000 participants?
3)Does this all depend on the physical server(performance) and what will be the expense?
Please help if you know anyone of the answers and thankyou in advance.