CSV serve API is an API that serves a promotion API end point cached backed using redis on top of memcache with persistent store backed by Apache cassandra. Components/services
- API
- CRON
- Golang 1.6
- Apache cassandra
- Memcached
- Redis
- Copy .env.example as .env
cp .env.example .env
- Fill the
.env
missing values see comments in.env.example
- Run
docker-compose up # or docker-compose up -d for detached mode
- After CRON is successful from browser run API
BASE_URL/api/promotions/PROMOTION_ID
seedata/promotions.csv
for any promotion ID
- Development workflow
- Caching
- Dockerized
- Production Docker
- CRON independent from local file storage
- Write tests
- CI/CD