This article is a mirror article of machine translation, please click here to jump to the original article.

View: 59162|Reply: 4

[Source] HttpClient POST directly to send byte byte (gzip) compression requests

[Copy link]
Posted on 3/18/2021 2:18:07 PM | | | |
Requirements: Due to the need to optimize system performance, it is found that when the system calls other external services, the JSON data submitted by POST is relatively large, and if this request content can be optimized, it is believed that it will improve performance at the network level and speed up the request time.
The test uses the gzip compression algorithm, the original content size: 288.3466797 KB, and the compressed size: 205.2890625 KB

.net/c# GZipStream data compression
https://www.itsvse.com/thread-4240-1-1.html


The test results with JMeter are as follows:



HttpClient directly submits byte byte content code as follows:

If additional information is needed, please refer to the following:

For more information on how the Web API receives gzip requests, please refer to the following:

mvc fetches the JSON XML data for the post
https://www.itsvse.com/thread-2936-1-1.html
(End)




Previous:ASP.NET Core (five) is based on CAP distributed transactions
Next:ASP.NET Core (VI) DI manually obtains the method of injecting objects
Posted on 1/22/2022 4:08:57 PM |
Support it~~
Posted on 1/25/2022 11:54:14 AM |
Learn to learn
Posted on 3/15/2022 1:02:39 PM |
Learn to learn
Posted on 3/24/2023 2:56:11 PM |

Learn to learn
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com