How do you manage global state in a complex web application, and what are the trade-offs of your chosen approach?