Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleaning up unused services to reduce size of HubSpot API library #427

Open
sebastianheise opened this issue Oct 30, 2024 · 0 comments
Open

Comments

@sebastianheise
Copy link

sebastianheise commented Oct 30, 2024

Hello,

We have recently begun upgrading from hubspot/hubspot-php to hubspot/api-client and observed a significant increase in package size - from under 1MB to approximately 30MB. As our deployment environment relies on Lambda zip images, which are capped at a maximum size of 250MB, we are particularly mindful of third-party library footprints.

Our application requires only a limited subset of functionality, specifically models and API endpoints for CRM contact lists, contact properties, owners, and timeline events.

This focus makes the majority of the library’s components unnecessary overhead for us.
In light of this, we would like to propose adding a cleanup script or an option to include only specific components, similar to approaches used by AWS and Google:

We’d appreciate any insights or potential solutions you may have on this matter.

Kind regards,
Sebastian Heise
Principal Engineer @ AskNicely

PS: Maybe stripping all comments out in a production environment. would be enough to significantly reduce the size of the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant