Home / Companies / Octopus Deploy / Blog / Post Details
Content Deep Dive

Managing all consumers of your JavaScript library as tenants

Blog post from Octopus Deploy

Post Details
Company
Date Published
Author
Lee Meyer
Word Count
1,582
Language
English
Hacker News Points
-
Summary

Lee Meyer discusses the use of Octopus Deploy to manage the deployment of JavaScript libraries, highlighting the advantages and complexities of multi-tenanted deployments. Initially, deploying a JavaScript library to cloud storage with automatic updates for dependent projects is sufficient for small-scale operations. However, as organizations grow, challenges arise such as the need for specific versions for different consumers or handling external consumers who cannot modify their HTML references. Meyer introduces the concept of using tenants in Octopus Deploy to manage these scenarios, enabling targeted releases to different consumers and environments. This approach involves setting up consumer identifiers and using dynamic URLs for JavaScript bundles, ensuring that consumers always access the correct version without manual updates. While multi-tenanted deployments add complexity, they provide flexibility and control, making them suitable for cases where different consumers require specific library versions or when releasing custom builds.