Discussion about this post

User's avatar
Nikolai Kobzarev's avatar

In Passkey description: "A private key is generated based on the public key provided by the website. The private key is stored on the device."

Should not these key be generated in the opposite order? How is it possible to generate private key based on public key?

Expand full comment
Oleksii Mudryk's avatar

In 3. Cache breakdown. "Never expiring" technique works only if the cached element never changes.

If an element may be changed over time, we could retrieve it in advance just before the cache expires, and just replace the value in cache with this value read in background. It would prevent massive querying expired value.

If I were a theorist in System Design, I would introduce such concept in my work dubbing it "Background cached value pre-retrieving" pattern.

By the way, this technique can be used not only for hit values, but for any value. Just need to configure "Background pre-retrieving interval". In this case, it would just eliminate waiting even for one or two occasional readers for database query roundup.

Expand full comment
2 more comments...

No posts