QuestionQ40

VerifiedHeroku Platform Architecture and Application Design

A client plans to migrate its on-premises application to Heroku. The application keeps a local, in-memory cache for its data store to improve performance.

What should an Architect advise the client about running the application on Heroku?

Explanation

Heroku dynos are disposable processes: a deployment, automatic restart, crash, configuration change, or infrastructure event can replace a dyno and erase its local memory. Each dyno has independent state, so an in-memory cache is not shared or persistent; any cache needed beyond a dyno’s lifetime should use an external shared cache or data store.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!