Node-cqrs-eventdenormalizer is a node.js module that implements the cqrs pattern. It can be very useful as eventdenormalizer component if you work with (d)ddd, cqrs, domain, host, etc.
So far any interaction with the DynamoDB tried to make sure that the table is existing, and if that is not the case it would create the table.
However as DynamoDB is an HTTP based API this would also always mean that an additional API request is done, increasing the time needed to handle request.
This PR makes sure that the table is only checked once for existence.
So far any interaction with the DynamoDB tried to make sure that the table is existing, and if that is not the case it would create the table.
However as DynamoDB is an HTTP based API this would also always mean that an additional API request is done, increasing the time needed to handle request.
This PR makes sure that the table is only checked once for existence.