Is Payload suitable for deploying on serverless platforms? #570
-
I'm planning to containerize payload using docker and deploy it on GCP Cloud Run. I want to make sure payload is designed to handle multiple instances running together against a single database? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Yes, docker is a great way to host Payload. I don't see any reason why GCP Cloud Run wouldn't work. If you have trouble, loop us in! One thing to plan for is if you have file uploads, make sure those are going somewhere permanent, this is discusssed in the docs: https://payloadcms.com/docs/production/deployment#file-storage
You can! |
Beta Was this translation helpful? Give feedback.
-
@PegasisForever, we are using a Serverless deployment of Payload on AWS Lambda and we aren't happy about it:
If we had to do it all again from the beginning we would go with a regular server approach. |
Beta Was this translation helpful? Give feedback.
-
Update: I deployed payload on cloud run and it worked flawlessly. Only one cold start is needed for the initial login page. However my schema is quite simple so your mileage may vary. |
Beta Was this translation helpful? Give feedback.
Yes, docker is a great way to host Payload. I don't see any reason why GCP Cloud Run wouldn't work. If you have trouble, loop us in!
One thing to plan for is if you have file uploads, make sure those are going somewhere permanent, this is discusssed in the docs: https://payloadcms.com/docs/production/deployment#file-storage
You can!