Service Locator


Definition

Centralizing distributed service object lookups, providing a centralized point of control, acting as a cache that eliminates redundant lookups.

Where to use & benefits

Example

Use a container as cache to hold the lookup object. One application only lookups same object once. Doing so will dramatically improve performance. Make sure the container used is thread-safe.

Return to top