I’ve tried Spring Boot on one project, managed to ...
# announcements
j
I’ve tried Spring Boot on one project, managed to quickly build something with it, then came in some requirements which Spring Boot simply couldn’t do in a nice way and I was stuck. Getting SSL-offloading to working on a Spring Boot project simply didn’t seem possible at the time. Eventually ditched Spring Boot and made the switch to VertX
x
janvladimirmostert: Yeah! Definitely, I think Vert.x is one of the best tool-kits out there (the best IMO). But now that you mention that, and I know some people ditch DI and things like that...how do you manage that reasonably without Spring DI and/or Guice? Just curious...do you keep the classes super small so you don't need too many parameters and things like that?
j
I haven’t used DI in over a year, although I did find some use-cases now where it could be useful. Busy looking at KOIN for those scenarios: https://github.com/Ekito/koin Otherwise busy reading up on delegation to see if it’s easy enough to just use that instead of DI
👍 1
x
Yeah! It looks super-cool...but somehow "wonky"...promising in any case
j
Kodein is another option
and I’ve seen Dagger being mentioned many times as well
it does take a bit of mindshift now that I don’t get everything on a silver platter, but at least you have full control over each part of the application instead of Spring saying use Spring MVC for MVC, use Spring Data for DB, use Spring AOP for annotation scanning, etc
Hi, my name is Jan, and I used to be a Spring’O-holic 😄
x
No I get it; I've used Vert.x for some really simple stuff. I haven't really got into something complex with it...
j
what would you define as complex ?
WebSockets is an absolute pleasure to use it for compared to Spring
regular POST / GET type requests is easy to use without having to include the whole Spring MVC which includes JSP and some other less than useful stuff as well
x
Well, it's first the team, then how everyone is used to do things...
Right, but then you loose, for instance, Bean Validations...which is quite useful and time saving
j
I just use the Hibernate validator
but yes, untangling from Spring is quite a process if you’re used to doing everything the Spring way for many years