[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] Jetty 12: org.eclipse.jetty.http.MultiPart.Part does not extend Servlet 6 jakarta.servlet.http.Part
|
Hi,
On Thu, Sep 26, 2024 at 11:55 PM Glen Peterson via jetty-users
<jetty-users@xxxxxxxxxxx> wrote:
>
> How would I know which one I want?
If you want to stick using the Servlet APIs, then continue using
HttpServletRequest.getParts().
Jetty 12 allows you to write web application without using the Servlet
APIs, by using directly the Jetty Core APIs.
Use MultiPartFormData if you want to write web applications using the
Jetty Core APIs.
The benefits of the Servlet APIs: they are a standard and well known.
But they are old and for multipart they are blocking, so the
scalability will be limited.
The benefit of the Jetty Core APIs: they are new, fully non-blocking
and provide more performance (see
https://webtide.com/jetty-12-performance-figures/).
But you need to learn how to deploy a Jetty Core web application (see
https://github.com/jetty/jetty.project/issues/11861).
So your pick, really.
If you want more flexible, modern stuff, you may want to switch to
Jetty Core APIs.
If the Jetty Core APIs have a missing feature, you can ask for it, and
it will likely take less time to be implemented.
If you like the coziness of Servlets, stick with them.
--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.