Effect CommunityEC
Effect Community2y ago
22 replies
Aleks M

Implementing Fetching Records from DynamoDB: Transforming Loop into a Stream

Me again. So, i'm implementing fetching potentially lots of records from DynamoDB.
My original idea was to create something like I -> Effect<R,E,A>, where A contains LastEvaluatedKey, so i can loop it until all results are fetched. With each result i'd push it into a stream for further processing.
My hurdle is how to properly transform looping over I -> Effect<R,E,A> into a stream.
Was this page helpful?