View Code? Open in Web Editor
NEW
This project forked from matic-insurance/assignment-cats-dealer
Ruby test assignment
Ruby 84.04%
JavaScript 2.18%
CoffeeScript 0.39%
CSS 0.43%
HTML 12.96%
cats-dealer's Introduction
- Easy to enable/disable provider(just change configuration)
- Easy to add a new provider: add configuration, implement a new provider. No need to change existing code.
- Can add new animals. Use
Store
with another configuration.
- Performance boost with threads
Without threads: 1715ms, 1696ms
With threads: 1038ms, 841ms
- Save dictionaries in DB
- Maybe we can save cats data?(depends on the frequency of changes from the provider)
- Background job for dictionaries/cats updating
- Save configuration in DB. Can edit from admin
- Handle third party API failure