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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

List out programming principles:

A
  1. Single responsibility
  2. Unix philosophy: Make each program do one thing well.
  3. DRY principle: Don’t repeat yourself
  4. KISS: Keep it simple, stupid
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is signed cookies?

A

To allow 1 user to access multiple files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Rules

A
  1. Stop Fixing the Symptoms…Find the Root Cause Instead
How well did you know this?
1
Not at all
2
3
4
5
Perfectly