The :http target-type: the target is already running, outside Lite, and
Lite connects to it over HTTP. That is the whole of the relationship.
Lite does not start, stop, restart or kill an :http target -- it doesn't
own the process, and may not even be on the same machine as it. So there is
no fault it can inject, which is why lite.nemesis/validity marks every
intent ✗ for this row. What remains of the deployment axis is the
connection, and that differs from :in-process in the way the Connection
protocol anticipated: an in-process instance is one object every worker
shares, while an external target hands each worker its own client.
Nothing here knows what the target's HTTP API looks like. Speaking the
target's wire protocol is the ClientAdapter's job -- the other axis -- and
the adapter carries whatever endpoint its handler needs. The :url here is
a deployment fact, not a protocol one: where the target is supposed to be
listening, so that Lite can say so plainly when nothing is.
Config:
{:type :http :url "http://localhost:8080" ; where the target is listening :connect-timeout 2000} ; ms to wait for it; optional
The `:http` target-type: the target is already running, outside Lite, and
Lite connects to it over HTTP. That is the whole of the relationship.
Lite does not start, stop, restart or kill an `:http` target -- it doesn't
own the process, and may not even be on the same machine as it. So there is
no fault it can inject, which is why `lite.nemesis/validity` marks every
intent ✗ for this row. What remains of the deployment axis is the
connection, and that differs from `:in-process` in the way the `Connection`
protocol anticipated: an in-process instance is one object every worker
shares, while an external target hands each worker its own client.
Nothing here knows what the target's HTTP API looks like. Speaking the
target's wire protocol is the ClientAdapter's job -- the other axis -- and
the adapter carries whatever endpoint its handler needs. The `:url` here is
a deployment fact, not a protocol one: where the target is supposed to be
listening, so that Lite can say so plainly when nothing is.
Config:
{:type :http
:url "http://localhost:8080" ; where the target is listening
:connect-timeout 2000} ; ms to wait for it; optional(connection-count target)How many worker connections are open right now.
How many worker connections are open right now.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |