Fix typo and clarify what mode internal APIs use HTTP

This commit is contained in:
Andrew Morgan 2018-07-06 10:25:34 +01:00 committed by GitHub
parent bd995882eb
commit 2b858684ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -208,7 +208,7 @@ and forth between each other. There are two implementations of each API, one
that uses HTTP requests and one that does not. The HTTP implementation is
used in multi-process mode, so processes on separate computers may still
communicate, whereas in single-process or Monolith mode, the direct
implementation is used. HTTP is preferred here to kaffka streams as it allows
implementation is used. HTTP is preferred here to kafka streams as it allows
for request responses.
Running `dendrite-monolith-server` will set up direct connections between
@ -222,8 +222,8 @@ name>/<name>/<name>.go`.
As an example, the `appservices` component allows other Dendrite components
to query external application services via its internal API. A component
would call the desired function in `/appservices/api/query.go`. This would
send an internal HTTP request, which would be handled by a function in
`/appservices/query/query.go`. In single-process mode, no internal HTTP
request occurs, instead functions are simply called directly, thus requiring
no changes on the calling component's end.
would call the desired function in `/appservices/api/query.go`. In
multi-process mode, this would send an internal HTTP request, which would
be handled by a function in `/appservices/query/query.go`. In single-process
mode, no internal HTTP request occurs, instead functions are simply called
directly, thus requiring no changes on the calling component's end.