You can access all the tutorial resources, including deployment script (Terraform), related source code, sample data, and instruction guidance, from the GitHub project: https://github.com/alibabacloud-howto/solution-online-leaderboard-redis
For more tutorials around Alibaba Cloud Database, please refer to: https://github.com/alibabacloud-howto/database
https://github.com/alibabacloud-howto/solution-online-leaderboard-redis
Use terraform to provision ECS and Redis instances that used in this solution against this .tf file: https://github.com/alibabacloud-howto/solution-online-leaderboard-redis/blob/main/deployment/terraform/main.tf
For more information about how to use Terraform, please refer to this tutorial: https://www.youtube.com/watch?v=zDDFQ9C9XP8
In the file: https://github.com/alibabacloud-howto/solution-online-leaderboard-redis/blob/main/deployment/terraform/main.tf
If you do not specify the provider parameters in the environment, please set your Alibaba Cloud access key, secret key here.
provider "alicloud" {
# access_key = "${var.access_key}"
# secret_key = "${var.secret_key}"
region = "ap-southeast-1"
}
ssh root@<EIP_ECS>
sudo apt-get update
sudo apt-get install openjdk-8-jdk
apt install maven
wget https://github.com/alibabacloud-howto/solution-online-leaderboard-redis/raw/main/source.tar.gz
tar xvf source.tar.gz && cd source
vim src/main/java/test/GameRankSample.java
mvn clean package assembly:single -DskipTests
java -classpath target/demo-0.0.1-SNAPSHOT.jar test.GameRankSample
Running result:
Alibaba Clouder - July 25, 2018
Alibaba Cloud Community - May 5, 2022
JJ Lim - December 6, 2021
Alibaba Clouder - December 19, 2018
Alibaba Clouder - December 16, 2019
Alibaba Clouder - March 24, 2021
When demand is unpredictable or testing is required for new features, the ability to spin capacity up or down is made easy with Alibaba Cloud gaming solutions.
Learn MoreHelp enterprises build high-quality, stable mobile apps
Learn MoreAlibaba Cloud (in partnership with Whale Cloud) helps telcos build an all-in-one telecommunication and digital lifestyle platform based on DingTalk.
Learn MoreAlibaba Cloud’s world-leading database technologies solve all data problems for game companies, bringing you matured and customized architectures with high scalability, reliability, and agility.
Learn MoreMore Posts by ApsaraDB