Need advice about which tool to choose?Ask the StackShare community!
Jersey vs Dapr: What are the differences?
What is Jersey? *A REST framework that provides a JAX-RS implementation *. It is open source, production quality, framework for developing RESTful Web Services in Java that provides support for JAX-RS APIs and serves as a JAX-RS (JSR 311 & JSR 339) Reference Implementation. It provides it’s own API that extend the JAX-RS toolkit with additional features and utilities to further simplify RESTful service and client development.
What is Dapr? An open-source project to make it easier to build microservices. It is a portable, event-driven runtime that makes it easy for developers to build resilient, stateless and stateful microservices that run on the cloud and edge and embraces the diversity of languages and developer frameworks.
Jersey and Dapr can be primarily classified as "Microservices" tools.
Some of the features offered by Jersey are:
- Track the JAX-RS API and provide regular releases of production quality Reference Implementations that ships with GlassFish
- Provide APIs to extend Jersey & Build a community of users and developers
- Make it easy to build RESTful Web services utilizing Java and the Java Virtual Machine.
On the other hand, Dapr provides the following key features:
- Event-driven Pub-Sub system with pluggable providers and at-least-once semantics
- Input and Output bindings with pluggable providers
- State management with pluggable data stores
Dapr is an open source tool with 3.44K GitHub stars and 137 GitHub forks. Here's a link to Dapr's open source repository on GitHub.
Pros of Dapr
- Manage inter-service state3
- MTLS "for free"2
- App dashboard for rapid log overview2
- Zipkin app tracing "for free"2
Pros of Jersey
- Lightweight4
- Fast Performance With Microservices1
- Java standard1
Sign up to add or upvote prosMake informed product decisions
Cons of Dapr
- Additional overhead1