Thursday, December 8, 2016

How do I create own chatting server on shared hosting?

How do I create own chatting server on shared hosting?


Yes, It is possible. You would need to know a lot on how Android (Any OS you are developing for) works, Network sockets and how to setup and run a server.
I would say you need to be sure on these topics
GCM/Parse or anything of that sort
Ofcourse, if you plan on developing an application which is primarily used for Chatting, then you would want notifications support. GCM/Parse can do that trick. They are not only used for simple notifications You can build an entire chat application just by using GCM. You could have a look at this Create an Instant Messaging app using Google Cloud Messaging (GCM) for an idea. It is easy and simple.
Network Sockets
If you don't want to use GCM or anything else and want to handle the chat part for yourself, then you should know how Network Sockets work on Android. You could create a socket connection where your server acts as a Gateway. You could have ID for each user and when you have to create a chat, you could send an info to the Gateway that the user of ID (X) wants to connect to user with ID (Y). A dedicated socket could be created and the data could be sent and received on real time. I would say this is more faster and efficient for real time data transfer but a lot of work is required on the Gateway side. You could use your own server for this purpose (be sure that you have high spec server(s) if you are planning to compete with WhatsApp). This is more reliable than the GCM counterpart.
Server Side Programming
You would need to know some programming language used in the server side. Java, ASP .NET,PHP,Python,RoR or anything for that matter would do the trick. Find out which one is best for you based on your requirements and your comfortability.
UI/UX
WhatsApp has its success because they provide better UI/UX than any other chat applications out there. It easy to use and faster to initiate a chat. You would want to know more about UI/UX for the mobile OS you are developing for. Having Material design on iOS isn't going to look good (my personal opinion)
Scalability
You could develop the application with a single server for now. But it isn't going to do anything good like WhatsApp. You would need a multiple number of redundant servers if you wish to provide for more users. So, if you are developing a chat application, be sure that you are developing with scalability in mind.
Finally, to conclude, I would say - You can develop a chat application with knowledge and hardwork. But if you want to develop an application like WhatsApp you would need something more than these two - Patience. A lot has to be though before starting the app and if you are developing the application as a single person, You would have to dedicate a lot of time for this.
Success is because of hard work you do after you get tired of doing the hard work you already did.

2nd Answer
You can't do that on a shared hosting account. You would need a VPS or a Dedicated Server to create your own chatting server on your website. I think you can use the integrate the Live Chat software of a third party systems on your shared hosting account though. For some of the most reliable shared hosting providers please visit Top shared web hosting companies . And if you are looking for a VPS Server, please go here Best VPS server providers and choose a reliable VPS Host from the list. And if you are looking for a reliable Dedicated Server, then please visit Best Dedicated Server providers and choose a reliable Dedicated Server for your needs. And for all other types of web hosting services like Reseller, WordPress, Cloud Server Hosting etc please visit Buy Hosting and choose a reliable web host that matches your web hosting needs.

3rd Answer
On Shared Hosting most of the provider would not allow chatting server , as it can spike the load due to regular hit of users on server. So for chatting server it is important to have a Dedicated Server or Clustered Server where you can increase number of server easily as and when your number of users online grows.

4th Answer
You need to ask your web hosting provider, whether they provide Live-Chat on shared hosting account or not. You can use web chat option, in case you need any support for a query.



3 comments:

  1. When your website or blog goes live for the first time, it is exciting. That is until you realize no one but you and your. Web Hosting

    ReplyDelete
  2. I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. Web Hosting

    ReplyDelete
  3. I read this article. I think You put a great deal of exertion to make this article. I like your work. https://onohosting.com/

    ReplyDelete