General Flashcards
1
Q
Write through vs. write back
A
Write through: write to both cache and DB synchronously
Write back: write to cache only, write to DB when cache item is going to be removed
2
Q
What is sticky-session?
A
The solution to route the requests for a particular session to the same physical machine that serviced the first request for that session
3
Q
List out programming principles:
A
- Single responsibility
- Unix philosophy: Make each program do one thing well.
- DRY principle: Don’t repeat yourself
- KISS: Keep it simple, stupid
4
Q
What is signed URL?
A
URL with token and expiry time e.g. 1h to allow users with URL can download content.
AWS S3 use this
5
Q
What is signed cookies?
A
To allow 1 user to access multiple files
6
Q
Rules
A
- Stop Fixing the Symptoms…Find the Root Cause Instead