O'Reilly logo

Mastering ServiceStack by Andreas Niedermair

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Minimizing the footprint of HTTP requests

One possible approach to minimize the overall demand of resources of a web service is to shrink the HTTP footprint. Each established connection uses valuable resources, which makes a conversion to batching requests a possible solution. Additionally, you can also try to minimize the amount of transmitted data by adding compression or using a more advanced format. However, always keep the additional CPU time needed for compression and advanced serialization in mind, which might excel the benefit of saved transferred bytes.

Batching requests

To further improve performance for classic O(n) operations, implicit auto batching is available with all ServiceStack .NET clients. This minimizes the amount of requests ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required