Stages
There are 3 environments (stages) in the infrastructure, namely dev
(short for development), staging
(for staging) and prod
(short for production). Practically, these environments should be isolated from each other.
Gateway
The gateway provides a unified entry point for all the services provided by the company. It works as a router for different services based on the route. Usually, a gateway can provide functionalities of authentication, authorization, load balancing, etc. In our infrastructure, we are using API Gateway HTTP API provided by AWS to route your services. (Read more: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-basic-concept.html)
Authentication
The authentication has already been implemented and integrated into the gateway. When you deploy your service, you can should use it to protect your service. The authentication method being used is a typical JWT token-based authentication.
...
Expand | |||||||
---|---|---|---|---|---|---|---|
| |||||||
A valid request header for a protected resource should include this below.
When successful, you will receive a response like this below.
|
Services
In order to adapt your service to be run under our infrastructure, your services should be one or a set of lambda functions, or a container. Below are some examples of services.
...