Implicit versus explicit propagation of context in APIs
This article looks at ways to propagate contextual information in an API. Context is usually needed across every layer of an application. Examples include the signed-in user’s identity and roles, or the selected locale. When an application needs that information, we have to decide how to pass it through the API. Java gives us two options, explicit and implicit propagation. The article recaps both and points out their advantages and drawbacks.
The article is longer than usual for this blog, so I chose to publish it in Google Docs & Spreadsheets.
Related articles
Related CZ Podcast episodes
- #261 · Leadership
On leading people and teams. · Czech audio
- #3 · Java 6 SE, Vývoj webových aplikací
Dagi and Filemon discuss Java 6 and web application frameworks. · Czech audio
- #1 · Vývojová prostředí v Javě
The first CZ Podcast episode looks at Java development environments. · Czech audio