Hosting NodeJS, Puppeteer, and Angular on Google Cloud Platform

Deploying Angular as static files while using a separate NodeJS API with Puppeteer on Cloud. How can I scale 200 concurrent calls? See sample Dockerfile below:

FROM node:12-alpine
RUN apk update && apk add --no-cache chromium
WORKDIR /app
COPY . .
RUN npm install puppeteer-core
CMD ["node", "server.js"]

hey, try autoscallng on compute engine with a load balancer. also use node clustering for puppeter calls. had to tweak chromium flags in my case. hope it helps!

My experience with similar setups suggests that using a container orchestration framework like Kubernetes on GCP can be very effective for handling concurrent tasks using Puppeteer. Configuring horizontal pod autoscaling in combination with well-tuned resource limits often results in a more resilient deployment. I separated the NodeJS API from the static Angular files not only for easier management but also to isolate heavy Puppeteer operations. Additionally, I found that integrating monitoring tools helps to quickly identify bottlenecks and adjust configurations accordingly for better performance.