Wellzesta’s auto-scaling API improves performance, saves energy and reduces costs

Posted by John M. Robinson MD, PhD on August 23, 2024

 

Figure 1 shows a diurnal usage of Wellzesta’s cloud-based services, where demand is greater during the day than at night. API request frequency can increase eightfold during the course of a day from roughly 4 requests/sec at 4AM ET to  roughly 30 requests/sec at 11AM ET.  To accommodate changes in demand and to conserve resources and energy, Wellzesta employs autoscaling for both client-side and server-side technologies. 

image-Aug-23-2024-02-41-16-4212-PM

Figure 1. Plot of the frequency of requests to the Wellzesta API as a function of time for a period of one week. API request frequency can increase eightfold during the course of a day.

All Wellzesta software is containerized. Containers for the API run on cloud run instances with 2CPUs and 5GB RAM. To meet demand, the number of API instances scales from a minimum of 2 to 5 or more. The minimum of 2 instances provides real-time redundancy should one instance fail.