VPC equivalent on cloudflare

Hi all,

I am exploring using cloudflare as an alternative to AWS API gateway and lambda. The proposed architecture is something like this:

We would create a VPC - at the edge of the net there would be an API gateway. This checked authorisation and if permitted passes it on to the specific handler. In cloudflare, I am thinking that we would have a worker that acts as the gateway. This checks access and if permitted calls the associated sub-worker.

This is where I have come a little unstuck - there does not seem to be concept, that I can see, of VPC in cloud flare - so I am wondering how to approach this. Adding the gateway seems trivial , however, I am not sure how I go about a) addressing the sub-workers; b) making those sub workers accessible only to the gateway.

It feels like a common pattern and one that would have been repeated many times, but so far after many hours of googlling I am drawing blank.

I am wondering if zero trust is the key here - but I am not sure quite how i would use it in this context.

Any advise / pointers to guides would be much appreciate
Was this page helpful?