Performance is key to the success of any application. Even though an app is feature-rich if it's not responsive to user actions it might lose its userbase. WaveMaker is a platform enables our users to develop web, mobile applications. We strive to enable top notch performance of these apps. Towards this goal, with each release, WaveMaker introduces changes aiding in optimization of generated apps in terms of code, build outputs & serving of the apps. The optimizations are made available to the customers out of the box. It requires minimal or no changes to be done by low code developers while building an app in WaveMaker, thus easing the process of building faster apps.
This feature is part of WaveMaker 10.5 release. Checkout more details on what is included this release.
As per the Google stats link shared above, BBC lost 10% of its users with each additional second the site took to load & Pinterest gained 15% users signup when the perceived load times were reduced to 40%. So, performance is one of the important factors to consider in app development. An app with good performance can help businesses in better signups, enhanced user engagement & result in improved sales.
Performance in WaveMaker
WaveMaker is a low code platform that continuously works on performance optimizations so that it helps customers to not only build quickly but deliver application that load fast. WaveMaker adopts the best practices that are evolving in the world of web applications and brings those to its customers & applications.
When a user accesses an app, the speed with which it loads & becomes responsive is a testimony to its performance. Each page in the application infact needs multiple resources to be loaded. The loading speed is a function of below-listed factors,
- Size of the resources loaded by the page
- Network Speed
- Number of HTTP Resource Requests required to build the page
- Time spend on the server in crafting the response
- User perception of app readiness
WaveMaker generates Angular code for the applications. Thus has the flexibility to leverage Angular build tools to optimize the application for better load times. Besides, if third party dependencies are required, modular libraries are preferred. WaveMaker component library of 100+ rich widgets. Still, the application build is only composed of components used. Below is the summary of optimizations that are delivered over past releases,
- Treeshaking/Dead Code Elimination, with the help of Angular Production Build & modular component library
- Lazy Loading of Routes & Components, so that user is served with just the required code as they navigate pages of the app
- Enable modern compression algorithms such as gzip & brotli for all the requests reducing the network load & time.
With the current release i.e., version 10.5, WaveMaker team is pleased to announce support for deployment of frontend artifacts onto a Content Delivery Network, which can help in reducing the download time of static resources by ~30%.
Content Delivery Network
With CDN, the content is served from the CDN-edge server closest to the user location helping in faster load times. With caching & other optimizations CDN also reduces the amount of data origin servers must provide, thus reducing hosting costs. With its distributed nature CDN can ensure better availability and can handle failures better than any origin servers. With all these benefits CDN ensures consistent user experience for an app across the geographical locations.
To enable an application to make its artifacts served over CDN, the developer needs to handle additional operations such as,
- Configure the Origin source & Content Delivery Network
- Managing build artifacts with each release
- Cache invalidations to ensure the user is served latest response
- Additional operations based on CDN provider & more
But we wanted our low code developer to have access to all the CDN goodness very easily. So WaveMaker has made it available on click of a button, literally. With the current release, when the user deploys the WaveMaker app by clicking the "Deploy" button, it is deployed on AWS with CDN support without any additional configuration. This convenience is only available in the first phase of the deployment pipelines of the application. Note that, applications are deployed to this phase so that the app can be tested by the team & only last for limited period of time. See deploying to live phase.
CDN intergration with WaveMaker
Under the hood, WaveMaker handles all operations required for CDN deployment of apps as listed below,
- Upload the static assets of the project to Amazon S3
- CloudFront which is AWS-CDN service provider configured with all the required properties.
- Updates the deployed project to serve static assets from Cloudfront CDN.
Thus ensuring the customers benefit from CDN advantages for every app developed with no additional effort.
However, for deploying onto production, the customers may prefer their cloud service provider with the help of CI, CD pipelines. Here is the documentation on how to configure your CI,CD pipeline to deploy to CDN. In the subsequent releases, we will also support one-click deployment to deploy on customer cloud providers.
Below are the stats from WaveMaker testing with CDN integration comparing the download times of static assets for some of the standard sized applications,
|Reduced Download Time
As stated, improving performance is a continuous endeavor for WaveMaker & more optimizations will be delivered to the customers with each release. So, stay tuned for more. Also please share your thoughts or feedback on the optimizations achieved or other approaches to improve the performance of WaveMaker apps to firstname.lastname@example.org