I have various services in my application that make external requests to web to scrape some data, as in Service A makes a requests to imdb.com/query and service B makes to reddit.com/query. I want to add a service between these services and web for these outgoing requests so that
Service can cache the responses, with a configurable caching period.
Service is inspectable, it can log the requests, response times and various metadata related to requests, possibly with an option to choose cache backend (in memory db, rdbms, files ?)
Service should not care about schema of the requests except that they are outbound http/https request, (Client interface should not change, except the target it is sending request)
I can centralize caching, and logging this way
Could not find anything useful after searching despite it feels to me as very common scenario. (I thought of using forward proxy in first place but they are not easy to use painful to setup and extend- -tell me if i'm wrong). Not sure there is a better term for such a scenario ( see made up title : ))
Is there such a tool, saas , OSS out there somewhere that can fulfill these needs? Maybe I am taking the problem from completely wrong perspective ?