Why should i use cronet over volley/retrofit?
Asked Answered
U

2

7

I came across a a section on cronet here

https://developer.android.com/guide/topics/connectivity/cronet

it states that

Cronet is the Chromium network stack made available to Android apps as a library.

Has any one used this library before? What are its use cases?

Unskillful answered 22/7, 2020 at 4:14 Comment(0)
C
2

According to Volly documentation it is not suitable for large downloads or streaming operations:

Volley is not suitable for large download or streaming operations, since Volley holds all responses in memory during parsing. For large download operations, consider using an alternative like DownloadManager.

And according to Cronet documentation it provides higher throughput and lower latency:

Cronet takes advantage of multiple technologies that reduce the latency and increase the throughput of the network requests that your app needs to work.

The Cronet Library handles the requests of apps used by millions of people on a daily basis, such as YouTube, Google App, Google Photos, and Maps - Navigation & Transit.

Cano answered 21/2, 2021 at 17:44 Comment(0)
R
-1

You can read these two article to know more about cronet . Article 1 Article 2 .

Radioactivate answered 22/7, 2020 at 14:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.