Frontend and Backend Separation
The frontend can be compiled into static assets while the API runs as a separate service. Nginx can serve the frontend and proxy API requests to the backend over an internal network.
This pattern makes it possible to scale or replace the API independently of the static frontend.
ADVERTISEMENT