Servlet vs REST

后端 未结 7 1600
野的像风
野的像风 2020-12-08 07:31

I need to create 5 methods on the server side, which will work with binary data. The remote clients are applet and JavaScript. The Client will send files to the server, and

相关标签:
7条回答
  • 2020-12-08 08:02

    Sounds like your collegue is applying premature optimisation. If you can write it with a JAX-RS library quickly, do so... If it then proves to be the bottleneck only then do you take the time to rewrite as servlet.

    In my experience the performance overhead of JAX-RS is not sufficiently big to justify the development and maintenance overhead of writing the equivalent in servlets directly where the problem maps well to JAX-RS

    0 讨论(0)
提交回复
热议问题