Working with DynamoDB
In the previous piece we redesigned the store
interface for the backend in
hope to have a better DynamoDB implementation to it. After the changes we have
to provide a Load
method that returns our Session
object with the current
version of it, and a Save
method that will get the ID, the modified Session
object and the (assumably) current version that matches the one we still have in
the database; if the provided version does not match the current version, the
method should return an ErrVersionMismatch
error.
Originally I was planning to have the content of this post together with the previous one but while in the making I realized it was getting too long for a single post. On the flip side, now that the post was splitted in two, I have the chance to show some things in more details that I originally planned 🎉!