MobiSocial DevOps on AWS

About MobiSocial Inc.

Mobi Social is a Stanford based start-up focusing on the social networking field. In order to open the Chinese market, they chose to build a competitive development team in China. Its product, Omlet Arcade, has millions of users and growth of more than 500,000 each month.

Challenges:

Previously, the existing architecture for Mobi Social gift system can’t support its business since the rapid increase of the users and more frequently for new application versions released. Generally, when update a component, the processes are as follows:

1. Developers submit the code to the repository

2. Ops use code to compile the executable file manually

3. Prepare the underlying environment, which applications rely on

4. Synchronize the executable file to the application in the test environment

5. Test the function and performance

6. Deploy to the production environment

Obviously, it is particularly cumbersome. A simple function update will takes more than one month. Furthermore, they should prepare at least three environments for dev, test and prod. But how to ensure the consistency confused them. What’s more they can’t tolerate any downtime during the new version deployed. The worst part is that they have to buy many devices in case of the traffic peak. Those increase the expenses, up to $50,000 each year.

Solutions & Architecture

AWS Beanstalk is inherently capable of blue-green deployment, so it can completely meet Mobi Social’s demand. By using swap url, it can redirect the traffic to the new version smoothly.

We recommended Mobi Social using CodeCommit, CodeBuild, and CodePipeline. The detailed information is as follows:

1. Developers put the code to the CodeCommit first,

2. the CodePipeline triggered, caused the CodeBuild compile source code, run tests and produce software packages. In the meanwhile, a lambda function invoked, clone the blue environment as the green environment,

3. When the software packages are ready, they will be deployed in the green environment,

4. Another Lambda function invoked, send a request. If the status code is 200, swap the url and delete the blue environment.

Also, we suggested them using Cloudformation to create the resources for the reason that Cloudformation provisions the resources in a safe, repeatable manner, allowing them to build and rebuild the infrastructure and applications, without having to perform manual actions.

Also, we suggested them using Cloudformation to create the resources for the reason that Cloudformation provisions the resources in a safe, repeatable manner, allowing them to build and rebuild the infrastructure and applications, without having to perform manual actions.



Outcome

“AWS helps us build a perfect CI-CD process. By leveraging AWS DevOps services, we no longer need manual operation. Everything is automated. This helps cut down the time from 1 month to 1 week during new version released. Also, the availability has been increased to 99.9999% by leveraged AWS DevOps Service.”, said by William, the leader of development team in China.

Furthermore, Cloudformation improve the efficiency when creating the resources. What they need is just modify/update the template. They have built a comprehensive monitoring/alarm system with Cloudwatch and Cloudtrail, which enables them take action when something goes wrong in time.

In the return-visit meeting, they mentioned that only one person should be involved in the daily Ops workload currently compared with the three persons in past. Besides, they don’t need to buy the devices any more, which help them save $50,000 each year.

“Wangsu is the most professional cloud computing provider I have met. They help us solve all the problems that confused us all the time. They really put the customers first and help create value”, said by River, the PM in Mobi Social.

About the Partner ——— Wangsu

Wangsu, founded in 2000, with thousands of employees in the world. Its customers include more than 60% of the China Fortune 100, along with startups, nonprofits, and innovative organizations of all kinds. Until now, Wangsu has successfully provided many solutions based on AWS DevOps Service.