the first one sounds like an overuse of nginx, no?