epam / Wilma

Service Virtualization Solution – a combined Service Stub and Transparent Proxy
GNU General Public License v3.0
58 stars 12 forks source link

Example: Short Circuit #71

Closed tkohegyi closed 8 years ago

tkohegyi commented 8 years ago

ShortCircuit - in case a request has happened before, and the answer is known, use the previously recorded answer (so stub it), otherwise act as proxy and record the answer - next time can be used.

tkohegyi commented 8 years ago

condition: checks if specific request was cached already properly, if yes: stub it, if not, caches the request and notify response interceptor to cache the response. response interceptor: when response arrived, checks if need to be cached (condition will set it), if yes, cache it

tkohegyi commented 8 years ago

further improvement possibilities:

tkohegyi commented 8 years ago

This commit actually belongs here https://github.com/epam/Wilma/commit/d1ff29b9a77a9ac01dab9f2e723bc7a574487aba