Replies: 1 comment 7 replies
-
Interesting idea. If I understood it correctly your use case is to fetch all encryption keys in single call (DB & API) for whole batch of events and keep them in key repository's cache for use while transforming events, correct? I will play a little bit with this. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have set up our EventStore to encrypt our data. The way it works for us is that each event can derive a token, which can be looked up in a data_key table, which we can then use to fetch the actual encryption key from our KMS. This means that for each event we want to read we have both a DB and an API call.
Now, both our DB and API allow fetching multiple values at once. Imagine that :)
How could we optimise the EventStore mapping logic so that it could pre-fetch this information in 1 DB call, and 1 API call (per batch result maybe?).
I know we are looking at the
SpecificationReader
and this method specifically:It would be nice if we could do something like this:
It would be fairly trivial to remain backwards compatible for custom mappers:
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions