As was described previously, the architecture has a Content Manager which main responsibility is manage static content of StoreFronts (for Marchants and Municipalities) and it has integraton with Store Service. The flow is described as follows:
- A webhook is triggered in Prismic every time a content is created/updated.
- That webhook arrives at the AWS API Gateway (HTTP API), which will then awake a lambda function.
- The lambda function will trigger an AWS Code Build and Code Pipeline pipeline, which will build the Gatsby site and upload the generated static files (html) to S3 buckets.
- CloudFront distribution will allow exposition of the content in a distributed fashion, what is called a CDN.
More info about technology concerns in Technology