It
is in our interests to encourage jandex use
or at least help towards making customers more aware of it.
This struct me when I was raising microprofile-starter#102
I
occasionally look at material from alternatives to MicroProfile-JakartaEE,
like
Webflux, Helidon SE, Micronaut and so on.
One of the things they sometimes cite
is the start-up cost associated
with archive annotation scanning that is done on startup or app deployment:
e.g. “What micronaut computes at compile time…Spring/CDI do at runtime”
We sometimes do this ourselves too: "...spending up to 40% of startup time scanning"
It seems to me that architectural trends are pushing towards:
1
- more elastic scaling - thus more ‘start-up’ events and scanning
2 – what is deployed on a server is increasingly static (rip and replace servers rather than augment) - so they are more indexable at build time
3 – more CI/CD - meaning that (re)generation of a jandex index could be just another ‘normal’ stage in the pipeline
Some
customers still have a low awareness of jandex use.
If it aids deploy/startup times in
supporting runtimes
and is harmless when in an archive but not exploited,
should we not advertise and
encourage its use,
until jandex use is seen as ‘normal’.
This
could come from routine inclusion in articles,
mvn targets, microprofile-starter, samples on so on.
As well as the concrete benefit for users,
it would be good 'marchitecture' :-)
Gordon
--
You received this message because you are subscribed to the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile...@googlegroups.com.
To post to this group, send email to microp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/77eeb5a9-3cf5-4f42-9337-a89ecdf92ef2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/CAKeeVe670ctJXE47n%2ByMoOZ07UWZfKuHp3X_LesfBdCuOxgzFg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
META-INF/jandex.idx (the default)
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/0ba80802-47fd-4c15-8846-af8746be4b93%40googlegroups.com.