The design of a stream processor must account for the volume of data it will receive. The data should be processed in real-time and the processor should not fall behind. The following recipe demonstrates how to leverage asynchronous, non-blocking IO to process data in parallel to help ensure sufficient throughput.
Leveraging asynchronous non-blocking IO
How to do it...
- Create the project from the following template:
$ sls create --template-url https://github.com/danteinc/js-cloud-native-cookbook/tree/master/ch9/frp-async-non-blocking-io --path cncb-frp-async-non-blocking-io
- Navigate to the cncb-frp-async-non-blocking-io directory, cd cncb-frp-async-non-blocking-io.
- Review the file named serverless.yml.
- Review the file named...