Replies: 2 comments 4 replies
-
Trying out some idea's (not compiled, just in the GH editor) by gathering code from the examples: use aws_sdk_dynamodb::Client;
use dynamo_es::DynamoViewRepository;
fn configure_view_repo(client: Client) -> DynamoViewRepository<MyView,MyAggregate> {
DynamoViewRepository::new("my_view_table", client)
}
let config = aws_config::load_from_env().await;
let client = Client::new(&config);
let repo = Arc::new(configure_view_repo(client));
let query = GenericQuery::<MyViewRepository, MyView, MyAggregate>::new(repo);
... ? I have been looking at https://github.com/serverlesstechnology/cqrs-demo/tree/master/src but it's not clear to me when |
Beta Was this translation helpful? Give feedback.
-
Perhaps I should rephrase my question to generalize it a bit more:
That stand-alone lambda could then either be triggered from DynamoDB Streams, or Kinesis, or SNS triggering SQS triggering the lambda, ... |
Beta Was this translation helpful? Give feedback.
-
The cqrs-demo repo has a postgress example. I was wondering if it was possible to add a dynamodb example too?
I currently am able to store commands in an event store in dynamodb, and was looking into using dynamodb lambda triggers to process new events for projections.
Should I create a View and then manually call
update
with a manual createdEventEnvelope
?Beta Was this translation helpful? Give feedback.
All reactions