A simple webhook implementation between two different API services
This apps simulates a user registration in an application which is split between two services:
- A REST API
- A mailing service
When a user registers, a background task (sending the e-mail) is scheduled to run after the request. The API server sends the request with the user's e-mail to the mailing service which then sends the e-mail to the user.
Obs: Flowchart made with Mermaid, to visualize is use a markdown editor such as StackEdit.
Requirements:
- Python
- Node
$ python -m venv ./venv
$ pip install -r requirements.txt
$ yarn dev:api
$ yarn dev:mail
$ yarn send:request