Serverless Deployments with Google Cloud Run + NextJS on Vercel #1346
simonireilly
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Hello @simonireilly! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been working on serverless deployment strategies for Meilisearch.
I have found that I can get good performance from Meilisearch running on Google Cloud Run, with 1 v.CPU and 128MB of RAM.
It is stateless, and works by precomputing the index, and triggering a cloud build in CI to automatically deploy the changes. It requires a redeploy to update the index, but that works well for static sites and builds take only 2 minutes.
The benefit is that since cloud run will process 2 million requests a month for free, there is very little costs.
Also, cloud run will create multiple horizontally scaling containers on demand to handle load.
I wrote a detailed post about this on my blog, including load and performance testing of the API and a NextJS site powered by the Cloud Run API and react-instantsearch.
https://blog.simonireilly.com/posts/serverless-search
Beta Was this translation helpful? Give feedback.
All reactions