# Reduce Building Time

# Caching Maven dependencies

Backend job and Frontend job can be run in parallel, it helps to reduce building time. Nevertheless, backend and frontend jobs have to download needed dependencies at each build. It’s possible to use a cache mechanism to avoid downloading those libraries each time.

This mechanism is documented here.

Warning, the right task to use is CacheBeta@1 in Azure Pipelines YAML file.

Git branch

caching-maven-dependencies

# Caching Node dependencies

You can use the same mechanism to cache the node_modules directory.

Git branch

caching-node-dependencies