two types of middleware deployment (Stacktrace, ReverseProxy)