3 ms·
Slow.
by openbasic 8y ago
Slow.
- therockhead 8y agoWhat’s slow, Spring boot?
- theossuary 8y agoYeah, I'd say so, at least in it's default configuration. I usually see start times of ~20 seconds and it's pretty resource intensive. The default configuration for most of the spring projects feel very batteries included, which is nice (and kinda the point of Spring Boot), but also very heavy. I haven't gotten the chance to play with jigsaw yet in Java 9/10/11, but without it Java just isn't that great for small apps. But as a self-professed Java hater; Spring, Spring Boot, and the surrounding ecosystem is really nice to work in.
- jacques_chester 8y agoIn my first project at Pivotal Labs, I worked on what I believe was the first production system based on Spring Boot. Afterwards I and my peers were asked to give feedback. I didn't really get the fuss and a lot of our vibe was "why isn't this more like Rails?" Later I worked on a Spring 3 project. It was a very well-written monolith, all the best practices up to that generation, layers and services and repositories, the whole shebang. Yet various things about it were flatly painful. That's the experience that made me understand why Spring Boot is actually a Really Big Deal. These days if I am going to write a general consumer-facing app, I'm perfectly happy with Spring Boot, especially if Kotlin is in frame. A lot of Pivotal Labs projects now use Boot+Kotlin as their default starting point and many folks see the virtues. It's not Rails, it never will be. But on the other hand: It's not Rails, it never will be.
- soulnothing 8y agoI started on spring 2. I was working concurrently on django, spring 2, and flask. Spring was just painful, we were using xml definitions for alot of stuff. I changed it over to class configuration but still. I was running a meetup tonight, and going over spring boot on kotlin. It felt so heavy to me. I've had this thought too why not like X. Spring has a really great ecosystem around it. I sort of look at it like the AWS of web frameworks. It has practically the kitchen sink in it. I've switched over to Kotlin. While I gravitated more to I think the sinatra style. I went from Spark -> Jooby -> now Ktor/Vert.x. Vert.x is like a breath of fresh air. I have never felt more liberated writing a backend. Combining that with Kotlin multiplatform and ktor for the js clients. Is so dead simple.
- jacques_chester 8y agoThe edit-compile-run cycle is relatively slow compared to REPL-capable languages or small codebases in compiled languages. As a developer that's really noticeable and it's the impression we take with us. But a warm JVM is a thing of beauty. Hopefully Graal and Substrate will make this a non-issue in the coming years.
- soulnothing 8y agoJooby supports hot reload https://jooby.org/doc/devtools/ https://jooby.org/doc/devtools/ But It works better under gradle, and that is a whole nother battle.
- lmilcin 8y agoI have worked with Java for over a decade for large companies and I can sympathise. Restarting everything to reproduce the case just to see you forgot something very tiny is painful. That's why my new framework of choice is Clojure (Leiningen, Luminus) on the server and ClojureScript with Reagent and Fighwheel on client side. The app starts moderately quickly but once it starts I have REPLs to both server and client side and I have reasonably reliable reloading of everything when I edit it. Once it starts I can add services on backend side and then immediately write client side ui to consume them, all without even reloading the page. As soon as I save any file on either client or server side it is automatically reloaded without me having to do anything. I can even use same code on client/server side. Have I mentioned it is the same language?
- fulafel 8y agoGraalVM compile times are rather high IIRC.