3 ms·
Take a look at the TechEmpower benchmarks: https://www.techempower.com/benchmarks/ https://www.techempower.com/benchmarks/ DropWizard is modern, but it isn't
by nostrademons 10y ago
Take a look at the TechEmpower benchmarks:
https://www.techempower.com/benchmarks/ https://www.techempower.com/benchmarks/
DropWizard is modern, but it isn't fast. Go and even Node.js are significantly faster. If you want performance, you cut layers out of the stack - check out the numbers for raw servlets or even just straight Jersey annotations in that benchmark. If I were doing JSON-over-HTTP microservices in Java, I'd likely use straight Jersey + Jackson, or if performance was really a problem, Boon over straight servlets.
What framework did your Go rewrite use? The standard libs?
- sk5t 10y agoOn first glance the dropwizard test app appears to be doomed to mediocrity via reliance on hibernate. Call me crazy, but I like my dropwizard with Spring DI for (singleton) resource setup, a micro-ORM to get work done, and HikariCP datasources at runtime.
- imtringued 10y agoWhat's wrong with hibernate? The only thing I can think of is that you're not using "JOIN FETCH entity.relation" when accessing collections and end up with the N+1 select problem but that is because you're using any ORM incorrectly. Entity framework has include and active record has includes which do the same thing. The qt ORM also has something similar. The only ORM I have seen that lacks this critical feature is odb. It doesn't allow setting the fetching strategy on a per query basis. You have to either always use eager loading or lazy loading which basically makes it useless for my purposes.
- sk5t 10y agoWell, for benchmarking the essential framework, which does not mandate any ORM, I would want to use something for data access that takes the question of time spent on type reflection, internal caching, and the like, out of the picture. Hibernate and EMF have their place, but not as part of benchmarking the thing that hosts 'em. Core Dropwizard performance is all about how it uses Jetty, Jackson, and maps requests to resources and operations.
- hota_mazi 10y ago> DropWizard is modern, but it isn't fast. Go and even Node.js are significantly faster. Any benchmarks to provide in order to support this wild claim?
- nostrademons 10y agoThe ones I just linked to above.
- zapov 10y agoBoon is not that fast. It only appears fast on some poorly constructed benchmarks due to some lazy benchmarketing optimizations. https://github.com/fabienrenaud/java-json-benchmark https://github.com/fabienrenaud/java-json-benchmark