Chapter 13. Deploying and Maintaining Flash Virtual World

We have built a Flash virtual world throughout the book. We are getting close to deploying the virtual world in production environment. There are some other topics that are useful after creating the entire virtual world.

What is the next step. We will see how to scale the virtual world to meet the high loading requirement. We will also compare different hosting solutions to host the socket server.

After several months of effort put into the virtual world, we want to find out how we can earn money by operating the virtual world. We will discuss several sources of making money from the virtual world.

Hosting the virtual world

After creating the Flash virtual world, our next issue will be finding a server to host it. As it requires the process execution of the socket server and the use of socket binding, we cannot host SmartFoxServer in the normal web hosting plan. We have two options of hosting. We can either host on hosting that is designed to support SmartFoxServer or hosting that allows us to execute a socket server process.

Hosting that supports SmartFoxServer

Shockwave Server hosting (http://www.shockwaveserver.com/) is the hosting partner of SmartFox that provides hosting that has the SmartFoxServer ready for running. The benefit of using it is that we almost do not need to set up anything to plug in the virtual world code and run on the hosting.

Hosting SmartFoxServer in dedicated server

We can also apply for the hosting of dedicated server or Virtual Private Server (VPS) hosting. Renting dedicated server or VPS means we have full control of the server that can run anything under the hosting agreement. We can set up the Java Runtime Environment and SmartFoxServer ourselves and configure the port in firewall to get it to work. VPS and dedicated server usually charge from 10 dollars to several hundred dollars depending on the server setting. SmartFoxServer uses around 600 MB-800 MB RAM and I would suggest using the dedicated server hosting that comes with around 1GB RAM or more.

Media Temple (http://mediatemple.net/webhosting/dv/) provides virtual dedicated hosting where users can switch between the $50, $100, and $150 plan at anytime to adapt the usage of the SmartFoxServer.

The Planet (http://www.theplanet.com/) hosting provides dedicated server hosting so that users can choose one of their server configurations and rent the server for several hundred dollars per month.

Another approach is to put our own physical server in the data center. It will be around several hundred per month. The benefit of using our own server is that we can take control of everything, including the hardware configuration. However, it requires more advanced server hosting techniques.

Some data center provides the Apple Mac mini server hosting service. Hosting such as Mac Mini collocation (http://www.macminicolo.net/) and Mac Mini World (http://www.macminiworld.net/) lets users rent a Mac Mini in their data center or ship their own Mac Mini to the data center. The staff will then set up the Mac Mini for the users to remote control them. Beacuse SmartFoxServer can host in Mac OS, it is a nice solution for hosting the server.

Hosting SmartFoxServer in cloud service

Cloud service is a kind of Internet-based computing service that is flexible and scalable at a reasonable price. In contrast to the dedicated server, we are not renting a physical machine. We rent the computing service from the cloud service provider. We can then launch an instance and host the virtual world.

The benefit of the cloud computing service is the flexibility to start/stop the hosting and scale up or down at any time. The cloud service provides charge only on the up time of the instance. That means we can launch the SmartFoxServer for several hours for testing in development and we only pay for that several hours instead of a whole month. After deploying the server in production, we can choose from charge per minute or charge per month.

Rackspace Cloud (http://www.rackspacecloud.com/) and Amazon Elastic Compute Cloud (http://aws.amazon.com/ec2/) are two cloud service providers. They both provide similar pricing and features.

There is a preconfigured Amazon Machine Image with SmartFoxServer Pro set up in Ubuntu OS. We can use this image in the Amazon Elastic Compute Cloud.

Comparing the hosting solution

The three approaches come with their own advantages and different requirements on administrating the hosting. The following table compares the three hosting solutiona:

Shockwave hosting

VPS/Dedicated server

Cloud computing

Setup fee

$900 - $2600

Mostly Free

Mostly Free

Cost monthly

$80 - $110

$10 - $500

$20 - $600

Long term contract

1 year required

Mostly no

Mostly no

Pay monthly

Yes

Yes

Yes (optional)

Pay on demand

No

No

Yes

SmartFoxServer installation

Pre-installed

DIY

DIY

Hosting administration diffi culty

Low

Medium

High

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.152.242