I have a react website that i want to deploy in AWS. We have requirement to generate the clickstream data and write to Kinesis streams. I found some examples with Amplify but we are not using Amplify. Also, i looked at some tracker apps calling REST Api. I am worried that calling Rest API will involve lot of network bandwidth consumption and latency in website.
I am looking for some suggestions and examples on how the data can be streamed without affecting the website performance.