Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oleksiikraievyi/highload-sw-arch-hw-07
HW 7 for highload software architecture courses. https://prjctr.com/course/highload-software-architecture?gclid=EAIaIQobChMI7OOMjvf78wIVRjcYCh1axwtgEAAYASAAEgKm2_D_BwE
https://github.com/oleksiikraievyi/highload-sw-arch-hw-07
Last synced: 11 days ago
JSON representation
HW 7 for highload software architecture courses. https://prjctr.com/course/highload-software-architecture?gclid=EAIaIQobChMI7OOMjvf78wIVRjcYCh1axwtgEAAYASAAEgKm2_D_BwE
- Host: GitHub
- URL: https://github.com/oleksiikraievyi/highload-sw-arch-hw-07
- Owner: oleksiikraievyi
- Created: 2021-11-17T14:50:35.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-17T14:52:31.000Z (about 3 years ago)
- Last Synced: 2024-06-20T05:13:25.976Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 10.5 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# highload-sw-arch-hw-07
# Prerequisites
* docker
* linux + bash# 1. Run nginx + app which serves static files
```
./run.sh
```# 2. Make request in browser
```
http://localhost:8080/pexels-iconcom-1214259.jpg
```# 3. Observe that first 2 requests are with response header X-Cache-Status: MISS
![](images/cache-miss.png)
# 4. After that responses will be with X-Cache-Status : HIT
![](images/cache-hit.png)
# 5. Also cache will be in /www/cache mounted volume
![](images/mounted-volume.png)
# 6. For force cache update run following request
```
curl -s -o /dev/null -H "X-Update: 1" http://localhost:8080/pexels-iconcom-1214259.jpg
```# 7. Observe that cache write time changed to new one
![](images/mounted-volume-changed-timestamp.png)
# 8. Run cleanup script
```
./cleanup.sh
```