Jump to content
MakeWebGames

Where do you host your web game and how do you keep it fast?


john.

Recommended Posts

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?

Link to comment
Share on other sites

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 by Guest
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

A0qs9Sg.png

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.

c4zLArO.png

1164563651_ScreenShot2014-03-25at08_36_34.thumb.jpg.0c524fe11c335c91e8dbe995b9d3a71f.jpg

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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 ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...