Use headings instead of bold text in index.md #238

This commit is contained in:
Jeroen Meulemeester
2016-01-03 21:14:30 +01:00
parent b6beffec2e
commit 3d642cdad7
66 changed files with 373 additions and 233 deletions

View File

@ -10,12 +10,14 @@ tags:
- Performance
---
**Intent:** Encapsulate the processes involved in obtaining a service with a
## Intent
Encapsulate the processes involved in obtaining a service with a
strong abstraction layer.
![alt text](./etc/service-locator.png "Service Locator")
**Applicability:** The service locator pattern is applicable whenever we want
## Applicability
The service locator pattern is applicable whenever we want
to locate/fetch various services using JNDI which, typically, is a redundant
and expensive lookup. The service Locator pattern addresses this expensive
lookup by making use of caching techniques ie. for the very first time a
@ -24,12 +26,12 @@ the relevant service and then finally caches this service object. Now, further
lookups of the same service via Service Locator is done in its cache which
improves the performance of application to great extent.
**Typical Use Case:**
## Typical Use Case
* when network hits are expensive and time consuming
* lookups of services are done quite frequently
* large number of services are being used
**Credits:**
## Credits
* [J2EE Design Patterns](http://www.amazon.com/J2EE-Design-Patterns-William-Crawford/dp/0596004273/ref=sr_1_2)