No menu items!


    With the massive growth of the Internet and the adoption of mobile phones, many games today aim to attract people from all over the world as users. These games have millions if not millions (or possibly millions) of gamers from all over the world playing your game. Obviously, at this scale, game developers need a platform that can provide a highly available and reliable solution. So it’s not uncommon to see Friday night funkin unblocked games 911 developers moving their platforms to the US cloud.

    In this article, we’ll look at a relatively simple problem: creating a leaderboard for a game. If you are using a traditional on-premises relational database, this problem can be difficult. You must find an effective solution to generate real-time results for millions of users worldwide.

    the answer? Using Redis Cloud Database Redis has an API setup that can help you achieve this. Combined with Alibaba Cloud’s ability to manage Redis clusters, your needs will be optimally met. In this guide, we will use the Python programming language to do this.



    The main idea of ​​this demo is to use a caching layer (Redis) instead of database access to create leaderboards in gaming applications. This approach is suitable for large-scale databases that require real-time responses.



    Although not essential, a basic understanding of lerner and rowe net worth is an added bonus (sample code is in Python). Since we are using Redis, it is also good to read Redis to get a better idea of ​​what Redis is.

    I won’t go into creating a Friday night funkin unblocked games 911 radio group as you can read and execute the separate commands in this step-by-step guide. It is simple and easy to set up.


    The Process

    Configure Flexible Computer Service (ECS) and ApsaraDB for Redis Friday night funkin unblocked games 911 Bachelor Gulch. This tutorial uses Ubuntu 16.04 as the operating system, but the solution itself can be performed on any operating system. The code may be slightly different depending on your US operating system of choice.

    Log in to the ECS server:

    ssh -i root


    Follow The Steps To Install The Environment:

    rm /usr/bin/python # change python to version 3 ln ln -s /usr/bin/python3 /usr/bin/python apt-get update # Update Ubuntu export LC_ALL = C # set local apt-get install python3 – pip # install pip pip install redis # install python-redis apt-get install apache2 # install apache mkdir /var/www/python # set environment a2dismod mpm_event a2enmod mpm_prefork cgi

    Change /etc/apache2/sites-enabled/000-default.conf

    —– <VirtualHost*:80> DocumentRoot/var/www/python <Directory/var/www/python> Options + ExecCGI DirectoryIndex </Directory> AddHandler cgi-script .py ErrorLog ${APACHE_LOG_DIR}/ error.log CustomLog $ {APACHE_LOG_DIR} /access.log Shared </VirtualHost> —–

    Place the file in /var/www/ and edit the configuration on line 8 (source code below).


    • Edit the permissions on the file.
    • chmod 755 /var/www/python/
    • Restart Apache.
    • Restart the apache2 service.
    • Go to your web browser and type in the public IP address. You should see it working now.
    • Description of the code
    • Below is a sample code in Python, which I will explain in more detail.

    Code Description


    Connect To Redis (Line 8):

    r = redis.StrictRedis(host=”, port=6379, db=0, password=”)

    For this to work properly, you will need to update the hostname and password. You can get the “connection address” during ApsaraDB to create Redis. This is also the password you set during creation.


    Adding The Score To The Leaderboard (Line 16):

    r.zincrby(leaderboardName, players, random.randint(1,100,000,000))

    LeaderboardName is the key you set for the name of your leaderboard, player is the player’s username or id, and the last parameter is where you enter the score (which in this case is a random number).


    Get The Highest Score In The Top 10 (Line 19):

    r.zrange(leaderboardName, 0, 9, desc = True, with scores = True);

    LeaderboardName is the key you set for the name of your leaderboard, friday night funkin unblocked games 911, the second parameter is where you want to start (0 is start) and the third parameter is where you want to stop (-1 is end to show). The value desk = true scores should be sorted in descending order (default by default) while withscores = true scores should be renamed (default by default).


    Get The Current State Of The Player (Line 30):

    • zrevrank(leaderboardName, player) +1
    • LeaderboardName is the key you set for your leaderboard name and player username or ID. You will need to add a (+1) because the range in the database starts at 0 instead of 1.
    • Get the player’s (or someone’s) current score (line 34):
    • zscore(scoreName, player);
    • LeaderboardName is the key you set for your leaderboard name and player username or ID.
    • Run the code
    • Below is the expected response from the code when you run it on a web server in the US.



    Friday night funkin unblocked games 911 stores data in memory and product maturity makes it f Allows access to millions of requests per second. Let stretch. This makes it an excellent database for use cases and other caching needs.

    For more information, please visit sbxhrl.


    Please enter your comment!
    Please enter your name here

    Must Read