Class SizeOptimization

java.lang.Object
com.commercetools.docs.meta.SizeOptimization

public class SizeOptimization extends Object
Table of content
  • Optimizing package size
    • Using split packages

Optimizing package size

Optimizing the size of applications in a size constrained environment like AWS Lambda can be challenging.

Using split packages

For an application which covers the whole business logic and may act as a backend for frontend it's advised to use the commercetools-sdk-java-api package.

When developing small function applications which will be used in a size constrained environment the SDK offers packages split by their domain. Due to the connections between the different domains the split is realized after compilation and doesn't reflect the whole dependency graph of all packages. You will have to explicitly define the packages you intend to use.

We provide an example for using split packages

Please see the list for the split packages and their artifact IDs

Base
com.commercetools.sdk:commercetools-sdk-java-api-base
Models Base
com.commercetools.sdk:commercetools-sdk-java-api-models-base
Models by domain
com.commercetools.sdk:commercetools-sdk-java-api-models-{domain}
Predicates
com.commercetools.sdk:commercetools-sdk-java-api-predicates

  • Constructor Details

    • SizeOptimization

      public SizeOptimization()