I’m new to security and load balancing techniques and hoping to learn them in case I need to in the future. I’m a webserver newbie hoping to learn and apply advance techniques. Any help or links to tutorials would be appreciated.
Currently. my 1 VPS server will composes of:
For now I’m on development and planning phase. I was told that the chat app will be RAM intensive and might require 4GB to 8GB to serve 100-1000+ concurrent users, hence I’m exploring scalability options.
The other options is to use their the Chatservice" to offload MEMcached processes at prices and msg exchanges, respectively:
Keep overall cost under $60 USD and retain more benefits if I can have a Digitalocean networking solution instead.
Start with Layer 4 load balancing and hopefully move on to 7 if advised.
My questions are:
Reading the DO tutorials led me to this slightly modified diagram for an ideal setup: http://www.lumiereyeg.ca/wp-content/uploads/2016/09/Ideal-setup-1.png with 2 isolated memcached servers (hmm, better 3?) Would this work ideally? Is it possible that the chat app can have it’s own Ha-proxy loadbalancer and be connected to a Slave database or a Redis+mysql instance? (security wise, what’s the ideal server app between a haproxy and the memcached cluster so SSL is applied?)
Correct me if I’m wrong: I hope to serve Canadians in the Alberta province and the only Canadian server is Toronto (not quite PCI compliant until later this year). So, it’s one option to use the San Francisco server for Memcached instance as it’s 500 miles less. Lastly, is it possible to private network with other VPS servers that is not digitalocean? Are there risks?
Lastly, if 4GB RAM is optimal for 1000+ connection, would 1 GB x 2 memcached server suffice and I slowly increase?
Thanks so much for any help. I certainly need to practice and test things out. Links to the right tutorials would help.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!