Technologically, Web 2.0 implies, as a rule, talking about Ajax, HTML5, CSS3. We propose to consider the level that is located below - something that ajax often works with, or, to some extent, most of the current sites. This topic will discuss the API and the possibility of effective use of CloudServer by developers.
So, we will monitor the server (it is assumed that we are using the server with linux) and deploy a new machine from the template (the template is created in advance; it is also assumed that all software in this template is horizontally scaled) in case of a heavy load on the server, and also we will hang it before two new loadbalancer servers with the roundrobin algorithm.
Why it may be necessary? Here is the simplest example: the database no longer cope with read requests. We make a replica of the master-master and give users the opportunity to see the site, not errors.
The example will be in python. Base class for querying APIs:
')
BASE_URL = 'https://cc.activecloud.com/client/api'
API_KEY = 'Your API Key'
API_SECRET = 'Your secret key from API'
Read more