Universal rendering responds to components using a server, react router, lambda, api gateway and cloudflare

I would like to do Universal rendering of reacting components using server, react routers, lambda, api gateway and cloudflare. How would you map the endpoint URL of the api gateway to the server-side instance of the reacting router working inside the aws lambda function in a way that is compatible with the cloud fleur?

I found an interesting hack / approach to working with the cloud ( http://highscalability.com/blog/2015/12/7/the-serverless-start-up-down-with-servers.html ), but I would prefer to use cloudflare for the cost and reasons for preventing ddos ​​attacks.

Thanks!

+4
source share

Source: https://habr.com/ru/post/1626701/


All Articles