Running on serverless Docker (Azure Container Apps, Google Cloud Run) #6063
-
I realize that if I want to maximize performance I should just benchmark my different options and choose the best one for my use case, but as a rule of thumb: should I use the multi-threaded runtime when running on these sorts of server-less platforms? Where each container is getting allocated less than 1 cpu? I doubt the increased cold start time would be worth it (?). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Great question! There isn't a hard and fast rule here. It's going to depend on what you're doing, what your traffic looks like, and what the environment you are running on is like. I'd say that, in general, multi-thread is probably going to be optimal, but that you should definitely experiment on production traffic with different settings to see what gives you better results. In particular, you're going to want to tune to see how many threads is ideal if you are using multi-thread. I will caution strongly against the use of synthetic benchmarks here. They are almost never applicable when trying to tune performance like this. |
Beta Was this translation helpful? Give feedback.
Great question!
There isn't a hard and fast rule here. It's going to depend on what you're doing, what your traffic looks like, and what the environment you are running on is like.
I'd say that, in general, multi-thread is probably going to be optimal, but that you should definitely experiment on production traffic with different settings to see what gives you better results. In particular, you're going to want to tune to see how many threads is ideal if you are using multi-thread.
I will caution strongly against the use of synthetic benchmarks here. They are almost never applicable when trying to tune performance like this.