1 min readJun 5, 2019
Why are you using 3 request/responses??? That drops a thread, redirects outside the app, comes back in and reissues the request with EVERY endpoint call! You should be using a forward(rather than a redirect) and the new api pattern to reuse the request/response so it uses just ONE REQUEST/RESPONSE! See the Beapi API Framework for an example