Skip to content

Would it be possible to deploy Mesop as a serverless function #1120

Answered by richard-to
jmfk asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jmfk
Comment options

@jmfk
Comment options

Answer selected by jmfk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants