amzn / smoke-framework

A light-weight server-side service framework written in the Swift programming language.
Apache License 2.0
1.45k stars 41 forks source link

Add option to process requests on the cooperative or custom thread pool #114

Closed tachyonics closed 1 year ago

tachyonics commented 1 year ago

Issue #, if available:

Description of changes: Provides the option to move serialisation and deserialisation of the request and response bodies off the event loop (which could become contended with large request or response bodies due to the limited number of loops) and onto threads managed by the global dispatch queue (which can expand as needed). This reduces contention for the event loops under these circumstances and provides more stable worse-case latencies.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.