The game packaging process is boring and cumbersome. How to improve the packaging efficiency?

Introduction: In order to simplify business processes and achieve high performance and cost optimization, Whale Flag Games finally chose to use Alibaba Cloud Serverless function orchestration and function calculation to perform packaging operations, which perfectly solves the pain points.

Author: break loose, Ali cloud solutions architect


Shenzhen Jingqi Tianxia Network Technology Co., Ltd. was established in 2016. It is an online entertainment game developer and operator integrating publishing, operation and sales. The company has more than 100 employees, and more than 100,000 people are online at the same time operating the game platform.


In the game industry, it is necessary to integrate the specific channel information and channel SDK according to different promotion channels to divide the mother package into different channel packages. The mother bag of the game generally has a size of several hundred M to G. The packaging process is constantly executed in the daily game publishing, and because there are many game channels, there are generally more than 10, and it is often necessary to perform packaging operations at the same time.


The process of game packaging is boring. Usually, a fixed computer is used to package them in the order of each target channel, which is inefficient and cumbersome to work. Whale Flag Game hopes to have a simple set of concurrent processing operations to improve packaging efficiency, and hopes that the packaging machine can release no more resources after the packaging is completed.


These requirements are precisely the problems that Serverless is good at solving.


1. Don't care about the server


Managing one or two servers may not be troublesome. Managing thousands or even tens of thousands of servers is not that simple. Any server may fail. How to automatically identify the failure and remove the problematic instance is a problem that Serverless technology can solve.


2. Automatic flexibility


Today's Internet applications are designed as a scalable architecture. When the business has obvious peaks and valleys, or when the business has temporary capacity requirements (such as marketing activities), the serverless platform can achieve automatic elasticity in a timely and stable manner.


3. Billing based on actual resource usage


The serverful way of using cloud resources is based on occupancy rather than usage. For example, if a user purchases three ECSs on the cloud, then no matter how much CPU and memory the user actually uses these three ECSs, he needs to pay for these three. The overall cost of an ECS. In the serverless mode, the user pays for the resources actually used. For example, a request actually uses a 1core2g specification resource for 100ms, then the user only needs to pay for the unit price of the specification multiplied by the time (that is, 100ms).


4. Less code, faster delivery


Serverless architecture-based code usually uses back-end services heavily to separate data and state management from the code; in addition, a more thorough FaaS architecture also hands the runtime of the code to platform management. This means that for the same application, the code in Serverless mode will be much less than in Serverful mode, so it will be faster whether it is distributed or launched. Serverless platforms can also usually provide very mature code construction and release, version switching and other features to improve delivery speed.



Ali cloud computing function FC is a high flexibility, low cost, operation and maintenance-free, event-driven Serverless platform to help Bai Wan developers to concentrate on business development, without having to purchase and manage server infrastructure, technological innovation to help enterprise customers to quickly deliver and achieve commercial value.



Advantages of Alibaba Cloud Function Computing FC


In China’s first "Cloud Native User Survey Report" released by the China Academy of Information and Communications Technology, Alibaba Cloud Serverless products accounted for 66% of domestic serverless users based on the technical training and rich application practices of Double Eleven. %, far exceeding the sum of other cloud vendors, and is considered to be the first choice for domestic serverless users.


At the Trusted Cloud Conference of the Institute of Information and Communications Technology, Alibaba Cloud Function Computing passed 21 tests including basic capability requirements, platform observability, service performance, service security and service measurement accuracy, and finally passed the Trusted Cloud Function as a Service with full marks. Competency certification.



What are the common application scenarios of function calculation FC?


  1. Scenarios of sudden traffic peaks such as spikes and big promotions


In industries such as new retail, online education, and game interactive entertainment, companies often face the problem of large-scale promotion scenarios with large bursts of traffic and unable to accurately predict business peaks and valleys; at the same time, the resource budgeting process is complicated, operation and maintenance costs are high, and resource utilization Rate cannot be guaranteed.


Function calculation FC 100 milliseconds is extremely flexible to solve the resource bottleneck of the enterprise's sudden traffic. Event-driven provides end-to-end solutions between 20+ cloud products; FC provides 1ms granularity and pays on demand, resource utilization is 100%, and does not pay for idle resources .


  1. Live interaction, audio and video transcoding and other scenarios


In such scenarios, companies often face demands that are computationally intensive, require a large amount of computing resources in a short time, and have peak-to-valley characteristics; at the same time, self-built services are costly, and general-purpose products in the industry do not meet highly customized requirements. Based on this kind of pain points, function computing FC can support highly customized FFmpeg environment, flexible and lightweight, and smooth migration without modification.


  1. Web API/ front and back end, image processing, AI scene


This is also one of the common scenarios of function computing FC. In such scenarios, companies often face problems such as multi-terminal adaptation, inconsistent front-end and back-end standards, low R&D efficiency, and difficult operation and maintenance; and data, pictures, scripts, etc. are difficult to maintain, low resource utilization, and high costs. And these difficulties are precisely that function calculation FC can be easily solved.


Function calculation FC supports one-click serverlessization of multi-language and multiple framework types of web applications, which greatly improves iteration efficiency; at the same time, it supports serverless timing tasks and automatic expansion, which greatly reduces operation and maintenance costs, and pays on demand to reduce server resource costs.



Alibaba Cloud Function Computing FC helps Whale Flag games simplify packaging, improve efficiency and reduce costs


To simplify the business processes to achieve high performance and cost optimization, the Flag whale chose to use aliyun S erverless function Arrangement and function calculation mode to perform packed operations, pain point perfect solution.


Based on the Serverless architecture, Alibaba Cloud Function Computing provides a highly available and high computing power service platform, with millisecond-level elastic scaling capabilities, rapid expansion and contraction of the underlying layer, rapid expansion when the traffic peaks, to respond to peak pressure, and appropriate reduction when the traffic is low In order to optimize resources, the cost control is optimized while providing stable computing power.



What value does function calculation FC bring to the Whale Flag game?


Efficiency improvement : Use function to calculate FC's 100-millisecond expansion capacity, use task scheduling ability to process concurrent processes, and improve the execution efficiency of packaging. The entire packaging process requires T=P*N (P is the packaging time of a single package, and N is The number of target packages) is increased to P, no matter how many channel packages are played, the total execution time is about P, ​​achieving sufficient concurrent processing.


On-demand cost : When an event is triggered, a calculation instance is generated, and resources are automatically released when the calculation is completed, and only billing is required for working hours.


Complete monitoring: automatically supports various fine-grained monitoring during execution (execution time, execution details, call status).


Customer testimony:


"The solution of using function calculations very elegantly helped Whale Flag Games build a running environment for game packaging, and the ability to execute concurrently as needed maximizes the efficiency of packaging. This solution also opens up a direction for us to integrate independent Stateless work tasks can be better realized by handing over to function calculations."

---Technical person in charge of Whale Flag


related products

Function Computing FC : Highly flexible, low-cost, free of operation and maintenance, and event-driven Serverless platform, which has helped 100,000 developers focus on business development and quickly deliver commercial value.

Original link: https://developer.aliyun.com/article/782073?

Copyright statement: The content of this article is voluntarily contributed by Alibaba Cloud real-name registered users. The copyright belongs to the original author. The Alibaba Cloud Developer Community does not own its copyright and does not assume corresponding legal responsibilities. For specific rules, please refer to the "Alibaba Cloud Developer Community User Service Agreement" and the "Alibaba Cloud Developer Community Intellectual Property Protection Guidelines". If you find suspected plagiarism in this community, fill in the infringement complaint form to report it. Once verified, the community will immediately delete the suspected infringing content.

Guess you like

Origin blog.csdn.net/alitech2017/article/details/114701121
Recommended