I'm working on a project for a major Oracle customer, and we are considering two approaches for our microfrontend website.
We need to serve the static assets (JavaScript bundles, CSS, HTML, etc.) of a React application that uses Module Federation and Webpack. The two options we are evaluating are:
Kubernetes Pod:
Deploy a dedicated pod for each microfrontend (can be many) with nginx + static files.
Object Storage:
Host the static assets on Oracle OCI Object Storage fronted by a CDN.
Key considerations include:
Performance & Latency:
How do these options compare in terms of response times and latency, especially when integrated with a CDN?
Scalability & Cost:
What are the trade-offs regarding auto-scaling and overall cost-effectiveness?
Operational Overhead:
How does the maintenance and deployment complexity differ between managing a Kubernetes pod versus leveraging a managed object storage service?
Other Factors:
Are there additional challenges (e.g., logging, caching strategies, SSL configurations, deployment automation) that might impact the decision?
I'm looking for insights, benchmarks, or real-world experiences that highlight the pros and cons of each approach. Which solution is generally considered more efficient and reliable for hosting static websites, and under what circumstances might one be preferred over the other?