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
.envmissing 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_IDseedata/promotions.csvfor any promotion ID
- Development workflow
- Caching
- Dockerized
- Production Docker
- CRON independent from local file storage
- Write tests
- CI/CD