Kinesis streaming API proposal #607
Replies: 1 comment 5 replies
-
I changed my code to use the new way and I think it is nicer. I don't know if it would make sense to have a default instance, something that would take a In any case, I will stick with the new API now. Thank you for this improvement 👍 |
Beta Was this translation helpful? Give feedback.
-
The new Kinesis fs2 integration API proposed
The implementation
https://github.com/laserdisc-io/fs2-aws/blob/master/fs2-aws/src/main/scala/fs2/aws/kinesis/Kinesis.scala
Usage example https://github.com/laserdisc-io/fs2-aws/blob/master/fs2-aws-examples/src/main/scala/KinesisExample.scala
I found most of the issues we experience is that sometimes we need to customize AWS SDK clients with different parameters like, sts client, region, service endpoint (for localstack) etc. One of the key point is to give user to define the clients (Kinesis, DynamoDB and Cloudwatch) outside and inject it into stream api.
You can find that we created the number of so called Pure wrappers on top of AWS Async SDK clients under
pure-aws
folder in this repository. These wrappers are used to create Client Resources for any supported AWS service. This approach is also better, since we can share AWS client across different programs and be sure that at the end all resources will be destroyed properly in correct order.Beta Was this translation helpful? Give feedback.
All reactions