Company
Date Published
Author
Mayank Verma
Word count
1215
Language
English
Hacker News points
None

Summary

Harness has enhanced the performance and stability of its platform by implementing a Content Delivery Network (CDN) for its user interface services, addressing challenges such as run-time versus build-time public paths and the use of web workers. This CDN setup allows for efficient resource delivery and reduces the load on application servers by caching and serving static resources from geographically distributed servers. The implementation process involved setting specific requirements, such as the ability to operate in various environments and the need for an easy on/off switch for the CDN. Challenges encountered included configuring the public path using Webpack, uploading assets to Google Cloud Storage with specific permissions, and dealing with web worker restrictions due to cross-domain policies. Solutions involved custom Webpack configurations and adapting to the limitations of web worker handling in modern web browsers. As a result, Harness achieved increased speed and uptime for its platform, and future efforts will focus on extending CDN use to micro-frontend child applications.