Our games run in the player's browser. Behind them, reached through our REST API, sits the game server: the component that holds the mathematics, the sessions and the wallet calls. Your own platform can be built in any technology; this page describes the machine that runs the game server.
The game server is installed on your server, locked to your domain. This page is the specification of that server.
The requirements are the same. Where the game server runs is agreed as part of your commercial terms.
Needs none of this. It talks to the game server through the API, in any language. The integration is documented at docs.casinowebscripts.com.
Essential for every installation. Recommended hosting: CloudWays or FastComet, where all of this is pre-configured.
Domain, server, a support ticket and CloudFlare: ready in about 30 minutes
Read moreLinux with Bash and the standard command-line tools
Read moreApache 2.4+ or LiteSpeed, PHP 8.3, MySQL 8, Memcached
Read moreSSL certificate, phpMyAdmin or cPanel, SFTP access, disk space
Read more13 required extensions, including the SourceGuardian loader
Read morePHP settings, MySQL mode, .htaccess support, session cookies
Read moreFor custom server setups and self-managed hosting (AWS, DigitalOcean and the like). A custom setup must cover both the Basic and the Advanced requirements.
HTTPS, DOCUMENT_ROOT and HTTP_HOST must be set correctly
Read moreWrite access for the web server to the runtime directories
Read moreThe games are HTML5. Nothing is installed on the player's device; this is what the browser needs.
Operating system: Windows, Linux or macOS.
Minimum hardware:
Recommended hardware:
Recommended browsers: Google Chrome and Firefox.
Operating system: Android or iOS, the latest version or at most 3 years old.
Recommended browsers: Safari on iOS and Google Chrome on Android.
Every game is built mobile-first and plays in portrait and landscape. No app store, no download: the player opens a link.
The response time of the games is the most important asset of any online gaming business. Players do not tolerate waiting "for the game to think". When we designed the game server and the games, the goal was to make them as fast and efficient as possible: advanced caching, efficient queries and optimised code.
The response time is influenced by the number of players playing at the same time and by the power of the server hardware. Since the code is optimised, it is the server's job to have enough resources to keep up with the requests. Below are server recommendations by the maximum number of players you expect. All of them come from real tests that we performed on our software installed on various servers; CWSAPISOFT.com is our parent studio's domain used exclusively for server testing.
The tests below show what server to order for the number of players you expect.
| Server type | RAM CPU cores | Concurrent users | Average response time | Peak concurrent users | Response time at peak | Replay | Server cost / month | Cost per 100 users | *Potential profit |
|---|---|---|---|---|---|---|---|---|---|
| VPS | 8GB 4 cores |
100 | 0.484s | 192 | 1.112s | View test replay | $100/mo FastComet.com |
$100/mo | $1,658,880/mo |
| DS | 4GB 2 cores |
150 | 0.248s | 299 | 1.110s | View test replay | $41/mo CloudWays.com |
$27/mo | $2,583,360/mo |
| DS | 8GB 4 cores |
200 | 0.404s | 400 | 1.509s | View test replay | $200/mo CloudWays.com |
$100/mo | $3,456,000/mo |
| DS | 16GB 8 cores |
320 | 0.214s | 522 | 0.727s | View test replay | $320/mo CloudWays.com |
$100/mo | $4,510,080/mo |
| DS | 16GB 8 cores |
330 | 0.293s | 635 | 0.727s | View test replay | $320/mo CloudWays.com |
$97/mo | $5,486,400/mo |
| DS | 32GB 16 cores |
500 | 0.247s | 823 | 0.682s | View test replay | $500/mo CloudWays.com |
$100/mo | $7,110,720/mo |
| DS | 32GB 16 cores |
700 | 0.457s | 900 | 1.688s | View test replay | $500/mo CloudWays.com |
$71/mo | $7,776,000/mo |
| DS | 64GB 32 cores |
1,000 | 0.373s | 2,000 | 0.479s | View test replay | $847/mo CloudWays.com |
$85/mo | $17,280,000/mo |
| DS | 128GB 64 cores |
2,500 | 0.494s | 4,000 | 0.580s | View test replay | $1,680/mo CloudWays.com |
$67/mo | $34,560,000/mo |
| DS | 128GB 64 cores |
3,000 | 0.665s | 5,000 | 0.815s | View test replay | $1,680/mo CloudWays.com |
$56/mo | $43,200,000/mo |
Server type: VPS = virtual private server, DS = dedicated server. Hosting prices are the providers' list prices at the time of each test.
The game server scales vertically, by adding CPU and RAM. Since it runs on PHP-FPM, the server API adjusts the number of workers by itself, so you do not need to tune the server configuration. The ratio between RAM, users and server cost stays almost constant: for every $1 spent you can serve about one more concurrent user, so $100 of server serves about 100 concurrent users. As the server grows, RAM and CPU get cheaper per user: 500 users on 16 GB cost about $1 per user, while 3,000 users on 128 GB cost about $0.57 per user.
Important: the tests were performed with loader.io. We define "concurrent users" as players who click SPIN in the exact same second, so 1,000 concurrent users means 1,000 players clicking SPIN every second. In most games the animations run for one or two seconds after the click, so only at peak time would 1,000 players produce 1,000 concurrent requests.
*Potential profit a month is estimated with a 2% house edge, players betting $1 a spin and clicking SPIN once every 3 seconds, for only 12 hours a day; the low-traffic hours are excluded completely.
Recommended hosting companies: CloudWays if you need someone to help with managing and monitoring the server, otherwise AWS if you have a developer who manages and monitors it.
| FastComet | vs | CloudWays |
|---|---|---|
| Uses cPanel, which makes server handling easier for developers, but it takes more resources and slows the server by around 15 to 20%. | No cPanel, but a management panel of its own. The servers are more efficient, with fewer tools that may not be necessary. | |
| Support helps with all sorts of things: investigations, updates, monitoring, problems. | Support installs extensions and services for an advanced support fee of about $100 a month. | |
| Scales only up to 128 GB and takes several hours. | Scales up to 384 GB and takes about 10 minutes. |
A top social casino has around 6 million users a month, according to statistics gathered by statista.com. According to casino.org, a player loses around $38 on average at slot games. A player betting $1 a round would need at least 800 rounds on a 95% RTP to lose $38.
Careful monitoring of the response time, the uptime and the server resources keeps the players' experience pleasant and tells you when it is time to upgrade the hardware. We recommend that the hosting company monitors the server during the first weeks of activity, to make sure that no memory or connection limit on their side slows the games down. Depending on the number of players, you may need more RAM, more CPUs, or larger values for the Apache "workers" and "children" settings.
Tell us how many players you expect and we will tell you which server to get, and give you the text for your host's support ticket.