Face Integration how to integrate with frappe could open port or port forwarding

I create a server using Uvicorn FastAPI, where I validate as well as register the employee, into my proposed 0.0.0.0:8002

Impacted doctypes

1)Employee ( registration a face)

2)employee checking (validate a face )

My issue is how I can implement my system into the Frappe Cloud.

  1. Using the frappe server script api calling (quite slow )

  2. using api ( 0.0.0.0:8002), how can we create a systemctl in the cloud using code, and how can we open a cloud port or port forwarding (it’s required domain when we use 0.0.0.0:8002)