Medallia interview question

How to scale a microservice? How would you test this Java function?