Here's how I developed an upstream module for NGINX that helped me eliminate a thick bunch of tiers in a multitier architecture.