Code Monkey home page Code Monkey logo

spring-boot-with-finagle-native-image's Introduction

Spring Boot + Spring MVC + Finagle in a Native image

The goal of this repo is to show how to use Finagle (netty) based in a Spring Boot app. The first attempt was made in April 2020 and failed. Now due to the hard work of everyone at Graal, Spring (Boot) and the Spring native-image project, and netty it is rather trivial to add Finagle.

It works

Proof that a native-binary ca work

##Test setup

  • Fedora 34
  • GraalVM 21.2.0 installed through sdkman (21.3.0 generates fields incompatible with 21.2.0 which is the latest graal version available in the buildpacks used by Spring Boot native-image support/plugin)
  • Docker CE (couldn't get the docker build pack to work with podman)

##Steps to reproduce

./mvnw spring-boot:build-image
docker run --rm -it -p8080:8080 docker.io/library/demo:0.0.1-SNAPSHOT

And then in another process or from a browser:

> curl localhost:8080/proxy
pong

##Todo

  • Prove that it also works with the JCE TLS
    • Maybe get the tcnative binaries for ssl to work (e.g. the boringssl one)
  • ???
  • Test how to do the development on mac (e.g. what is the effect on the assisted configuration generation.)

spring-boot-with-finagle-native-image's People

Contributors

spockz avatar

Stargazers

 avatar  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.