Narochno / Narochno.Credstash

C# Implementation of Credstash
Apache License 2.0
10 stars 9 forks source link

Parallel decryption in case of many items #10

Closed peterdeme closed 7 years ago

peterdeme commented 7 years ago

Hello guys,

We have noticed that our app startup is very very slow (~23sec in case of 33 items). The problem is because of credstash config building. With this change we were able to reduce it to ~5sec.

From our tests it looks like that like 10 is the correct number for degree of parallelism.

Thanks, Peter

adamhathcock commented 7 years ago

I'm not 100% sure I like parallel hitting the table as Dynamo can decide to error out if a request limit is hit.

I guess it doesn't hurt to make the degree of parallelism be a config value though.

I see you renamed async functions to be *Async. I guess I should follow that convention :)

peterdeme commented 7 years ago

@adamhathcock you are right. the read unit capacity is important.

Thanks for the review! Peter