Having built a static frontend, my thought was to deploy this to a static assets server like S3, while deploying my microservices backend using kubernetes to a compute service like EC2 or EKS.
However, my research has only turned up one approach: building the frontend as a service in my kubernetes cluster.
My questions:
- Is it possible to have two deployment targets like my thought above?
- If possible, what are the pros/cons to doing so (in particular, will communication between frontend & backend be tricky?)
- Are there any other deployment approaches to consider besides these two?
For additional context, my frontend is a React app built through create-react-app, and I've already extracted by production build. My backend comprises of several NodeJS microservices.