Dropwizard vs Revel
When comparing Dropwizard vs Revel, the Slant community recommends Dropwizard for most people. In the question“What are the best backend web frameworks?” Dropwizard is ranked 28th while Revel is ranked 38th. The most important reason people chose Dropwizard is:
The application can be run and debugged from the IDE without the need to recompile or redeploy the WAR file. This is because a Dropwizard web application creates on main program which starts the jetty container.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Enhanced productivity and less timewasting
The application can be run and debugged from the IDE without the need to recompile or redeploy the WAR file. This is because a Dropwizard web application creates on main program which starts the jetty container.
Pro Application metrics integrated into the framework
Dropwizard comes with application metrics integrated out of the box. These metrics provide a lot of useful information such as request/response time.
For example, to get the execution time of a method, the @Timed
annotation is used.
Pro Quick project bootstrap
Starting a project with Dropwizard si very easy and bootstraping is quick and painless. All that's needed is a single dependency added in the pom.xml
file and it's ready to go.
Pro Comes bundled with a code reload tool
Revel comes bundled with a code reload tool which rebuilds the project on every file change. This code reload tool is also used to run, build and deploy the Revel application that you are building.
Pro Good examples easy to understand with simple emulated MVC behavior
Pro No need to find and install external libraries
Revel is a "batteries included" web framework, which means that a lot of features already come out of the box. This way you don't have to spend time and find third-party libraries to integrate to the framework for most of the tasks you need to complete.
Pro Easy to learn for fast development
Cons
Con Does not allow a lot a freedom of choice
Dropwizard removes a lot of freedom that the developer may have with other frameworks because of the fact that it tries to do everything itself. It chooses the best Java libraries for the job required, without allowing the developer much choice.
Con Non-idiomatic code
Con Outdated
The world has moved past its MVC obsession. It's not the way the web works anymore. The good thing about go is that it's trivial to write a server applications (literally takes minutes). relying on a bloated, archaic framework is missing the point
Con Dead
Thankfully, this abomination is no longer being developed
Con No official support for mongo
Revel does not come with any support for MongoDB, you can integrate third-party libraries but they have been reported to crash under heavy load.