DevOps2018-Promotions / promotions

The promotions resource is a representation of a special promotion or sale that is running against a product or perhaps the entire store. Some examples are "buy 1 get 1 free", "20% off" etc.
MIT License
2 stars 2 forks source link

Make redeem thread-safe #41

Closed zhangcshcn closed 6 years ago

zhangcshcn commented 6 years ago

As a developer
I need the redeem function to be thread-safe
So that our service is safely scalable in the future (if there is any)

Assumptions:

Acceptance Criteria: The server responds correctly after concurrent redeem requests.