Skip to content

Async API

Compare
Choose a tag to compare
@birme birme released this 03 Aug 10:17
· 47 commits to master since this release

The N-API binding layer to the SRT SDK is such that every native call are blocking I/O and runs synchroneuosly with the wrapping JS function call. This means that these functions are called from the Node.js proc main-thread / event loop. This creates a throughput limit and in general having blocking operations can impact application performance in an unpredictable way. To address this issue we have an "async variant" of the API where the native blocking calls are put on a JS Worker thread instead (big thanks to @tchakabam for this contribution).

The Async API is a candidate to replace the main API in the next major release