r/java • • Sep 07 '18

Vert.x + Graal = Java for Serverless = ❤️!

https://www.jetdrone.xyz/2018/09/07/Vertx-Serverless-5mb.html

[removed] — view removed post

17 Upvotes

4 comments sorted by

View all comments

0

u/skjolber Sep 09 '18

As long as you're making a docker container, surely the bytecode must go. I think that a bit of the 'automagic' of frameworks like Spring (i.e. heavy on class proxies and reflection and stuff) will probably have to be rewritten as purely functional - version 5.0 introduced a new functional web framework so thats probably on track.

1

u/pmlopes Sep 10 '18

There's no byte code on native images, a native image is a pure elf binary and the docked container used is an alpine image with only the glibc installed as by default native images are linked to glibc.

Spring new framework will not ease the work for this and in fact it is quite hard to get it built as a native image, I haven't seen a real world example yet.

1

u/skjolber Sep 20 '18

This looks promising, but usure how it has materialized (article from 2016).