pressbooks / pb-mathjax

A replacement for wp.com/latex.php but instead of LaTeX, it uses MathJax.
GNU General Public License v3.0
4 stars 1 forks source link

Investigate, deploy and host pb-mathjax as a microservice #10

Closed dac514 closed 5 years ago

dac514 commented 5 years ago

Investigate hosting options. Attempt to use AWS Lambda. Fallback to pm2 if Lambda attempt turns out badly.

Notes

AWS Lambda has some limits. 50G (maybe 75G?). Node versions are locked down, we can't pick and chose.

Express JS can do https, but I haven't done it (yet). If we proxy behind Nginx, or maybe if AWS Lambda has it's own https proxy solution going on, this isn't necessary.

Claudia.js seems like the easiest way to get our code into AWS Lambda but I haven't done anything except read the docs, so not sure:

Claudia.js and Lambda tutorial: https://attacomsian.com/blog/express-js-aws-lambda-claudia-serverless-app

dac514 commented 5 years ago

Works on AWS Lambda using Claudia.js