Would it be possible to deploy Mesop as a serverless function #1120
-
Would it be possible to deploy Mesop as a serverless function. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes, I think it could be possible to do. If I understand your question correctly, you want to host say the HTML/JS on a separate server. Then use Mesop as the rendering server and host that as a Cloud Functions (or other non-Google alternative) API endpoint. I think for GCP Cloud Functions or AWS Lambda, you'd need to see if SSE's are supported since Mesop uses SSEs when sending the ui requests. I asked ChatGPT, and neither seem to support to SSEs apparently, but you should verify for sure. Another option is to use something more heavyweight like Cloud Run. I think to make it work, the JS bundle would just need to be edited so that it points the remote server. Probably need to handle CORs in this case. |
Beta Was this translation helpful? Give feedback.
Yes, I think it could be possible to do.
If I understand your question correctly, you want to host say the HTML/JS on a separate server. Then use Mesop as the rendering server and host that as a Cloud Functions (or other non-Google alternative) API endpoint.
I think for GCP Cloud Functions or AWS Lambda, you'd need to see if SSE's are supported since Mesop uses SSEs when sending the ui requests.
I asked ChatGPT, and neither seem to support to SSEs apparently, but you should verify for sure.
Another option is to use something more heavyweight like Cloud Run.
I think to make it work, the JS bundle would just need to be edited so that it points the remote server. Probably need to handle COR…