tezvyn:

Managing state across ephemeral instances

Source: interviewintermediate

WHAT IT TESTS: stateless design discipline. OUTLINE: keep instances stateless, externalize sessions to Redis, data to managed databases, files to object storage. RED FLAG: storing durable state on local instance disks that vanish when an instance is replaced.

WHAT IT TESTS: whether you keep the compute tier stateless and externalize all durable state. ANSWER OUTLINE: treat instances as disposable. Move session state to a shared cache like Redis, transactional data to a managed database such as RDS or Cloud SQL, large objects to S3 or Blob storage, and shared files to a network file service. Use sticky sessions only as a fallback.

Read the original → interview

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Managing state across ephemeral instances · Tezvyn