Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dashaun/upgrade-and-use-buildpacks
Optimizations available with buildpacks
https://github.com/dashaun/upgrade-and-use-buildpacks
aot aot-processing buildpacks cds class-data-sharing spring-boot spring-boot-3
Last synced: about 1 month ago
JSON representation
Optimizations available with buildpacks
- Host: GitHub
- URL: https://github.com/dashaun/upgrade-and-use-buildpacks
- Owner: dashaun
- License: mit
- Created: 2024-10-11T18:49:18.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-03T14:50:35.000Z (about 2 months ago)
- Last Synced: 2024-11-03T15:31:36.722Z (about 2 months ago)
- Topics: aot, aot-processing, buildpacks, cds, class-data-sharing, spring-boot, spring-boot-3
- Language: Shell
- Homepage: https://www.youtube.com/live/HBBCDoY4sUQ?si=jLrgZFzo6Iqm1RjA
- Size: 6.84 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]# OpenRewrite, AOT and CDS
## The cheat code
```bash
./mvnw -U org.openrewrite.maven:rewrite-maven-plugin:run \
-Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-spring:LATEST \
-DactiveRecipes=org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_3
```## The Spoiler
```text
#### Comparison of memory usage and startup timesConfiguration Startup Time (seconds) (MB) Used (MB) Savings
--------------------------------------------------------------------------------------------
Spring Boot 2.6 with Java 8 1.018 340.6 -
Spring Boot 3.3 with Java 23 1.014 (1.00% faster) 239.3 30.00%
Spring Boot 3.3 extracted 0.867 (15.00% faster) 210.6 39.00%
Spring Boot 3.3 with AOT processing 0.765 (25.00% faster) 205.7 40.00%
Spring Boot 3.3 with CDS 0.568 (45.00% faster) 208.2 39.00%
Spring Boot 3.3 with AOT+CDS 0.383 (63.00% faster) 165.5 52.00%
--------------------------------------------------------------------------------------------
```
> Does that look too good to be true? Run the demo and see for yourself!## Prerequisites
- [SDKMan](https://sdkman.io/install)
> i.e. `curl -s "https://get.sdkman.io" | bash`
- [Httpie](https://httpie.io/) needs to be in the path
> i.e. `brew install httpie`
- bc, pv, zip, unzip, gcc, zlib1g-dev
> i.e. `sudo apt install bc, pv, zip, unzip, gcc, zlib1g-dev -y`
- [Vendir](https://carvel.dev/vendir/)
> i.e. `brew tap carvel-dev/carvel && brew install vendir`## Quick Start
```bash
./demo.sh
```## Attributions
- [Demo Magic](https://github.com/paxtonhare/demo-magic) is pulled via `vendir sync`## References
- [Spring Boot CDS Support and Project Leyden anticipation](https://spring.io/blog/2024/08/29/spring-boot-cds-support-and-project-leyden-anticipation)
- [AOT processing](https://docs.spring.io/spring-boot/reference/packaging/aot.html)
- [Paketo Buildpacks](https://paketo.io)
- [Tanzu Buildpacks](https://docs.vmware.com/en/VMware-Tanzu-Buildpacks/index.html)## Related Videos
- https://www.youtube.com/live/HBBCDoY4sUQ?si=jLrgZFzo6Iqm1RjA
- https://www.youtube.com/live/qQAXXwkaveM?si=4KunXZaretBrPZs3
- https://www.youtube.com/live/ck4AP7kRQkc?si=lDl203vbfZysrX5e
- https://www.youtube.com/live/VWPrYcyjG8Q?si=z7Q2Rm_XOlBwCiei[forks-shield]: https://img.shields.io/github/forks/dashaun/upgrade-and-use-buildpacks.svg?style=for-the-badge
[forks-url]: https://github.com/dashaun/upgrade-and-use-buildpacks/forks
[stars-shield]: https://img.shields.io/github/stars/dashaun/upgrade-and-use-buildpacks.svg?style=for-the-badge
[stars-url]: https://github.com/dashaun/upgrade-and-use-buildpacks/stargazers
[issues-shield]: https://img.shields.io/github/issues/dashaun/upgrade-and-use-buildpacks.svg?style=for-the-badge
[issues-url]: https://github.com/dashaun/upgrade-and-use-buildpacks/issues