Skip to content
An application environment service for Anthill platform
Branch: 0.1.dev0
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Environment Service

When the game starts, it should know where the actual services located, to communicate with. That's why each game has a well-known address of the Environment Service hardcoded in it. So other services can move without side effects.

This service solves two problems:

  1. There should be one well-known location to start communication from;
  2. Production environment should be divided from development with no side effects


Please refer to the Documentation for more information.

A Sandbox

While the game is being developed, usually it runs on special development environment to ensure the real players are not affected. And eventually, should be switched to production. However, usually the "environment switch" would require a new game build with new environment information. Yet every new build should be tested before shipping ... in development environment.

That's why the game hardcodes only these things:

  1. Environment Location (e.g.
  2. Game Name (e.g. thegame) and Game Version (e.g. 1.0)

That's where the service kicks in: the actual environment is based on the version information, server side.

Environments or Game Versions could be configured at Admin Service.

At the end of the day, the Environment Service points client application to the right Discovery Service location (based on the environment).

API Versions

Games tend to be outdated once in a while, yet the online services may progress constantly. This service allows to bind specific version of game to a specific version of API. Once new version of the the API released, older versions of games may still use old API.


Each environment could have custom variables defined, completely game-specific.

For example an ID of some ad provider, or analytics account. Or URL of the website to open when player hits "help topics".

You can’t perform that action at this time.