SpinTheMic
Pro

Interview practice question

One big instance or many small ones?

Backend Engineering · Language Runtimes · Experienced

You can run your Java service as 4 instances with 16 GB heaps or 16 instances with 4 GB heaps. How do you decide?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • GC behaviour with heap size.
  • Failure blast radius and rolling deploy impact.
  • Per-instance overhead and cache efficiency.
  • Connection counts to DB.
  • Benchmark both under realistic load.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics