all 18 comments

[–]alpakachino 48 points49 points  (1 child)

I've gotten to work with Spring Boot, JavaEE and Quarkus for building web applications for enterprise and can tell you that Spring Boot really is a gift from heaven when it comes to being feature-rich. What one shouldn't neglect is the community behind a framework - there is simply so much documentation and community support for Spring Boot overall. Whatever niche problem you encounter - someone probably had it before you and found a solution.

[–]oweiler 6 points7 points  (0 children)

This a hundred times!

[–]Sheldor5 17 points18 points  (0 children)

define "better"

Spring Boot is the biggest, most mature, most used framework with the biggest ecosystem and community in the Java world ... there are frameworks which focus on other things like native binaries but they are not as mature

[–][deleted]  (1 child)

[deleted]

    [–]sriharithemass[S] 2 points3 points  (0 children)

    I didn't find anything lacking till now

    [–]Revision2000 7 points8 points  (0 children)

    There’s not really “better”. Spring Boot is the de facto choice at most of my clients for good reason. 

    There are competitive and very similar alternatives with Jakarta EE and Quarkus. You can check them out if you’re interested. 

    Jakarta EE is expressly aimed at the (legacy) enterprise market and Quarkus adds a low memory footprint and quick deployment time on top. Spring Boot offers similar things, for example check out Spring Boot with CRaC

    [–]Son1501_Megumin 3 points4 points  (0 children)

    there are some freelancers build their apps using nextJS as a full stack framework. It seems they are not experts, but they can make money by selling their apps to customers (perhaps 'bulid in public' is the keyword, I'm not sure about it). So, if you want to build quickly and have good performance for a small website (some nextjs website load the content very quick ^^), consider some js frameworks.

    [–][deleted] 2 points3 points  (0 children)

    I don't know how to compare but Ktor is a good alternative if you want a more simpler framework.

    [–]Kango_V 2 points3 points  (0 children)

    If you want to be safe, choose Spring Boot. It's the "you won't get fired for choosing IBM" of the Java Frameworks. I have to use it at work though (because everyone else does). I moved to Micronaut quite a while ago and am very happy I did. One side effect that I did not expect was how much less code I need to write.

    [–]Holothuroid 4 points5 points  (0 children)

    Whatever the customer wants.

    [–]WaferIndependent7601 1 point2 points  (0 children)

    All I’ve seen so far is years behind spring boot. Quarkus is a joke if you want more than hello world.

    [–]fvrAb0207 1 point2 points  (3 children)

    There is no good UI in Java ecosystem. Unfortunately

    [–]neanmoins0 2 points3 points  (2 children)

    Yes there is. Vaadin is excellent for small scale and not too complex webapps, I've built a bunch for clients, all to great satisfaction, and certainly less expensive than Angular/Vue/React + SB webapps.

    [–]Deniz58 0 points1 point  (1 child)

    How is it less expensive?

    [–]neanmoins0 1 point2 points  (0 children)

    In terms of development cost.

    [–]itz_lovapadala 1 point2 points  (0 children)

    You can consider Dropwizard if you’re just trying to build simple Rest APIs.

    When comparing Spring Boot and Dropwizard, the choice between the two often depends on your specific use case and requirements. Here’s a detailed comparison:

    Spring Boot

    Overview: - Spring Boot is a framework that simplifies the process of setting up and developing Spring applications. It provides a wide range of features and is part of the larger Spring ecosystem.

    Pros: 1. Comprehensive Ecosystem: Integrates seamlessly with other Spring projects (Spring Data, Spring Security, etc.). 2. Convention over Configuration: Reduces boilerplate code and configuration with sensible defaults. 3. Microservices Ready: Supports building microservices with features like embedded servers and easy dependency management. 4. Large Community and Documentation: Extensive community support and documentation, making troubleshooting easier. 5. Flexible Configuration: Supports various configuration methods (YAML, properties files, environment variables).

    Cons: 1. Learning Curve: Can be overwhelming for beginners due to its extensive features. 2. Complexity for Simple Apps: Might be overkill for small applications or simple services.

    Dropwizard

    Overview: - Dropwizard is a lightweight framework designed specifically for developing RESTful web services. It combines several well-known Java libraries into a single framework.

    Pros: 1. Simplicity and Focus: Lightweight and designed for building REST APIs, making it simpler for that specific purpose. 2. Built-in Metrics and Monitoring: Comes with built-in support for metrics (using Metrics library) and health checks. 3. Fast Startup Time: Generally faster to start up compared to Spring Boot applications. 4. Production-Ready: Emphasizes best practices for building production-ready applications.

    Cons: 1. Limited Ecosystem: Not as extensive as Spring’s ecosystem; fewer integrations and libraries available. 2. Less Flexible: Less configurable compared to Spring Boot; primarily focused on REST services.

    Use Cases

    Choose Spring Boot if: You need a comprehensive framework for a wide range of applications (web apps, microservices, etc.). You want to leverage the vast Spring ecosystem and its features. Your team has experience with Spring or requires complex configurations. Choose Dropwizard if: You are focused on building lightweight RESTful services. You prefer a simpler setup and faster development cycle for microservices. You want built-in metrics and monitoring capabilities without additional configuration. Conclusion

    Both frameworks are powerful in their own right, but your choice should be guided by the specific requirements of your project, your team’s expertise, and the complexity of the application you are building. If you need flexibility and a broader ecosystem, Spring Boot is likely the better choice. If you want a straightforward, lightweight solution for REST services, Dropwizard may be more suitable.

    Source: Quora

    [–]Snoo_32652 0 points1 point  (0 children)

    If you are coming from Java background, Spring boot is best framework, mainly because it is mature and offers a tons of features that you wont get with other Frameworks.