diorahman / surel

WIP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

surel

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

compose

Gives

result

And

arena

E.g. for failure, i.e. using mailgun with unknown to email, we get

mailgun

About

WIP


Languages

Language:JavaScript 93.7%Language:HTML 6.3%