Code Monkey home page Code Monkey logo

spring-boot-native-samples's Introduction

Spring Boot 3.0 Native Samples

build

Samples of using Spring Boot 3.0 to build native executables

  • Java 17 required (GraalVM Java 17 required for native profile)
  • Spring Boot 3.0.0
  • Tested with GraalVM 22.3.0 Java 17 CE

Samples

Metrics captured on Windows 10 with GraalVM 22.3.0 Java 17 CE

gRPC

Simple gRPC service

Mode Binary size Startup time Memory
JVM 21.5 (JAR) 0.96s 96MB
Native 47.8MB 0.124s 24.8MB

Spring Data JPA with WebMvc

A microservice with REST API and RDBMS backend

Mode Binary size Startup time Memory
JVM 42.7 (JAR) 2.72s 183MB
Native 129MB 0.277s 62.3MB

Features:

  • Spring Data JPA
  • Spring Web MVC
  • Flyway
  • PostgreSQL
  • Testcontainers

Reactive JDBC & WebFlux

A reactive microservice with REST API and RDBMS backend

Mode Binary size Startup time Memory
JVM 32.1 (JAR) 1.929s 142.7MB
Native 79.4MB 0.217s 56.9MB

Features:

  • Spring Data R2dbc
  • Spring WebFlux
  • Flyway
  • PostgreSQL
  • Testcontainers

spring-boot-native-samples's People

Contributors

alexcheng1982 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.