This is an app with following configuration:
browser -> app <- server-to-server http request -> api <- event -> queue -> sender -> [ service1, service2, service3 ]
^
|
`-- arena
A single page app
(written in preact) is served by a koa app
, talks to api
. Each request received by api
then
will be scheduled to a redis-based queue bull. Fortunately, there is a monitoring app for bull, i.e. (arena)[https://github.com/mixmaxhq/arena].
The fallback mechanism is controlled by the app rather than automatically handled by the api
or queue
.
By detecting the suggested next
service.
E.g. for successful attempt of sending mail
Gives
And
E.g. for failure, i.e. using mailgun with unknown to
email, we get