valeriansaliou / bloom

:cherry_blossom: HTTP REST API caching middleware, to be used between load balancers and REST API workers.

Home Page:https://crates.io/crates/bloom-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request: Client proxy

austinnichols101 opened this issue · comments

commented

I have a remote https://api server that I do not control.

I would like to use bloom to cache the responses from the remote server:

curl -H "Bloom-Request-Shard: 0;" -H "Bloom-Request-Ignore: 1;" http://bloom-host:8080/my-url

In this case I am:

  • making an http request to bloom with an https request to the api server
  • specifying a new flag Request-Ignore to disable cache on the request

I have a few remote API servers, so an example of how to configure multiple hosts/shards would be useful.

NOTE: I am currently able to use bloom with http to accomplish this task, with the exception of controlling the ignore cache from the client.