jeudi 15 août 2019

AWS simple serverless architecture problem

I'm learning about websites structures and I get confused by the number of concepts and designs that are.

This is what I want to do:

(Using AWS)

Image: AWS serverless simple structure

Route 53: DNS

CloudFront: CDN

website1.com/styles.css   ->  S3 /website1/styles.css
website1.com/robots.txt   ->  S3 /website1/robots.txt
website1.com/favicon.ico  ->  S3 /website1/favicon.ico

website1.com/             -> API Gateway
website1.com/api/*        -> API Gateway

S3: Where I save: syles.css, robots.txt, and favicon.ico

API Gateway: Request handler.

website1.com/       ->  Lambda (node.js)
website1.com/api/*  ->  Lambda (API)

Lambda (node.js): I want to have serverless Server Side Rendering React App with Node. This App calls to an API to get some data.

Lambda (API): the API

RDS: PostgreSQL

Question

1) Is my structure correct? Or there are any other website server designs that are better? (I want to conserve Server Side Rendering)

2) Can I add another website to this structure? Or I need to generate a new instance of each element of AWS?




Aucun commentaire:

Enregistrer un commentaire