john. Posted March 24, 2014 Share Posted March 24, 2014 We just launched a web game yesterday on a pretty bad shared host. We improved the speed a lot by implementing cache, however it leans towards getting a VPS or Cloud Server instead. How do you maintain your game to be at good performance? Better servers? Improve code? What should we focus on first? How many players does your game have? What kind of hosting do you use? How do you maintain your project to keep good performance? Quote Link to comment Share on other sites More sharing options...
Zettieee Posted March 24, 2014 Share Posted March 24, 2014 Keep your queries well written. IE: instead of SELECT *. Use SELECT email,name,login,etc,moreso,andon, FROM I use a private server - you'd be better on a nginx server (they are cheap and fast). Quote Link to comment Share on other sites More sharing options...
Guest Posted March 25, 2014 Share Posted March 25, 2014 (edited) I still use shared hosting (http://vidahost.co.uk). Or if I need more control I head over to DO and grab a droplet (http://digitalocean.com). DO is also used for any Node I do. Using a CDN certainly helps with page load speed and delivery of the static content. MaxCDN, or a rather untraditional Cloudflare CDN. Optimise your queries. Minify your scripts. Have you worked out whether it's the slow queries and code execution, or the fact it's slow because of unoptimised images? Maybe you just need a quality host. Edited March 25, 2014 by Guest Quote Link to comment Share on other sites More sharing options...
HauntedDawg Posted March 25, 2014 Share Posted March 25, 2014 I still use shared hosting (http://vidahost.co.uk). Or if I need more control I head over to DO and grab a droplet (http://digitalocean.com). DO is also used for any Node I do. Using a CDN certainly helps with page load speed and delivery of the static content. MaxCDN, or a rather untraditional Cloudflare CDN. Optimise your queries. Minify your scripts. Have you worked out whether it's the slow queries and code execution, or the fact it's slow because of unoptimised images? Maybe you just need a quality host. I agree, Grab a droplet from digital ocean. I have around 6 droplets with them. Quote Link to comment Share on other sites More sharing options...
sniko Posted March 25, 2014 Share Posted March 25, 2014 I agree, Grab a droplet from digital ocean. I have around 6 droplets with them. I agree. Digital Ocean is awesome! In your browser, bring up the developer console, and head over to "Network". Here you'll see the slow elements. Quote Link to comment Share on other sites More sharing options...
Dave Posted March 25, 2014 Share Posted March 25, 2014 I agree. Digital Ocean is awesome! In your browser, bring up the developer console, and head over to "Network". Here you'll see the slow elements. Roll DigitalOcean using Nginx, PHP-FPM (through sockets) with a front facing Varnish cache server with ESI blocks for dynamic content with memcache. Now that's some fast stuff. Also I find the Safari timeline displays what's slowing you down a bit better. Quote Link to comment Share on other sites More sharing options...
benlucraft Posted March 25, 2014 Share Posted March 25, 2014 I would really recommend this host as I use them and have not had a single problem! Also really cheap too! http://www.crazydomains.co.uk/ Quote Link to comment Share on other sites More sharing options...
john. Posted March 25, 2014 Author Share Posted March 25, 2014 I still use shared hosting (http://vidahost.co.uk). Or if I need more control I head over to DO and grab a droplet (http://digitalocean.com). DO is also used for any Node I do. Using a CDN certainly helps with page load speed and delivery of the static content. MaxCDN, or a rather untraditional Cloudflare CDN. Optimise your queries. Minify your scripts. Have you worked out whether it's the slow queries and code execution, or the fact it's slow because of unoptimised images? Maybe you just need a quality host. Yes, all scripts have been minified. The queries are optimized and cached as far as my knowledge goes. Our conclusion is that a better host would definitely help and we're considering a new one. How important is it that the VPS/Droplet etc. is in the same country area? Quote Link to comment Share on other sites More sharing options...
john. Posted March 25, 2014 Author Share Posted March 25, 2014 Edit: We updated our host. The game is now running 7,5 x faster and has good ms. :D Quote Link to comment Share on other sites More sharing options...
sniko Posted March 25, 2014 Share Posted March 25, 2014 Edit: We updated our host. The game is now running 7,5 x faster and has good ms. :D Awesome. Care to share the host and the spec (with a fancy colour-coded spec table containing new server spec and old server spec? :D) Quote Link to comment Share on other sites More sharing options...
john. Posted March 25, 2014 Author Share Posted March 25, 2014 Awesome. Care to share the host and the spec (with a fancy colour-coded spec table containing new server spec and old server spec? :D) The other developer actually had a droplet on http://digitalocean.com/ and we decided to try it out - with success. I will see If I can find the spec, it was a shared host. However we are much happy with the new performance for now, so now we'll focus on bug fixes and features! Quote Link to comment Share on other sites More sharing options...
Zettieee Posted March 25, 2014 Share Posted March 25, 2014 How did you find the setup on DO? Quote Link to comment Share on other sites More sharing options...
sniko Posted March 25, 2014 Share Posted March 25, 2014 How did you find the setup on DO? Easy, of course! ;) Quote Link to comment Share on other sites More sharing options...
Zettieee Posted March 25, 2014 Share Posted March 25, 2014 I like the idea of nginx, really I do. But I cant really recommend it 100% to people yet. Quote Link to comment Share on other sites More sharing options...
Djkanna Posted March 25, 2014 Share Posted March 25, 2014 How did you find the setup on DO? Extremely easy at this end too.:D Quote Link to comment Share on other sites More sharing options...
Dave Posted March 25, 2014 Share Posted March 25, 2014 I like the idea of nginx, really I do. But I cant really recommend it 100% to people yet. We run on our large scale eccommerce stores upon it. It's drastically accelerating over the use of Apache. Quote Link to comment Share on other sites More sharing options...
john. Posted March 25, 2014 Author Share Posted March 25, 2014 How did you find the setup on DO? I have to agree with the earlier posts, it was easy. The documentation was pedagogical and well written too which helped a lot. Quote Link to comment Share on other sites More sharing options...
SRB Posted March 26, 2014 Share Posted March 26, 2014 DO rocks. Not for the feint hearted that don't wish to play at command line level though. Note IF in doubt, always use: rm -rf / In the command line! Edit No, seriously, DONT! Quote Link to comment Share on other sites More sharing options...
john. Posted March 26, 2014 Author Share Posted March 26, 2014 DO rocks. Not for the feint hearted that don't wish to play at command line level though. Note IF in doubt, always use: rm -rf / In the command line! Edit No, seriously, DONT! Read about a guy who posted that he had been hacked a couple of years ago, apparently he had executed that command himself, after seeing an administrator on the forums having in its signature saying something differently about the commands real purpose. Social engineering, lol! Quote Link to comment Share on other sites More sharing options...
sniko Posted March 26, 2014 Share Posted March 26, 2014 Read about a guy who posted that he had been hacked a couple of years ago, apparently he had executed that command himself, after seeing an administrator on the forums having in its signature saying something differently about the commands real purpose. Social engineering, lol! Hahaha! How about; chattr -R +i / And all the files are there and functioning, we just can't modify it ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.