Amazon Interview Question

How to do middleware change without downtime?