I-jetty or jetty

I have a web application to host on an Android device. I am currently using an emulator available using android sdk. My application will serve both static and dynamic data. I am currently using the berth version 6.1.22. I wanted to ask what would be the best option to use. 1. Jetty web server with code disabled. 2. I-Jetty.

My application uses the following features -

  • ResourceHandler for serving static resources.
  • A common servlet for servicing synchronous data requests.
  • CometServlet extension for serving asynchronous data requests.

I look forward to the following criteria for comparison.

  • Application size. The apk size that will contain the code.
  • Memory and CPU usage at a maximum load of 30 requests / sec. These are short bursts that occur very rarely in the application life cycle. The average load will be about 5 requests / sec.
  • Ease of maintenance. Including important Jetty updates in the app.
  • Any other side effects that I probably miss.
+3
source share
4 answers

I also looked for information about embedding the i-Jetty server in the application. Like the original poster, I need to serve both static and dynamic resources. I found the following post helpful:

http://puregeekjoy.blogspot.com/2011/06/running-embedded-jetty-in-android-app.html

, - Android, , , , , " ". , . Android-, . . , . , , , .

+6

- . , , , Android . , " " . Android- Android , .

( !) , -, , Android URL-!

JNI. .

, .

+3

- Android.

? , , , Wi-Fi-. , . Etc.

, , , - Android, .

, , . 1. - Jetty . 2. I-Jetty.

, "" - , ( Jetty) Android , , , i-jetty, , Android.

30 /. , . 5 /.

, WiFi, -, .

+2

, - , - . - - , . .

+2

Source: https://habr.com/ru/post/1757714/


All Articles