1
0
mirror of https://github.com/H0llyW00dzZ/My-RESTAPIs-Boilerplate.git synced 2025-02-06 10:02:01 +00:00

Docs [The Best Worker] Update Documentation (#1507)

- [+] docs(docs.go): update best practices comment for using the worker to reflect CPU/vCPU usage emphasis
This commit is contained in:
H0llyW00dzZ 2025-01-08 07:12:23 +07:00 committed by GitHub
parent 3411db07af
commit 27619b9ad6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -151,7 +151,7 @@
// - Additionally, dynamic memory allocation depends on the CPU architecture as well.
// For more efficient memory usage, consider using AMD processors, not Intel, as they are stable even for configurations with 100+ vCPUs.
//
// # Best Practices for Using this Worker:
// # Best Practices for Using this Worker ("Higher CPU/vCPU usage is better, not memory." - idiomatic Go):
//
// - Consider the function where it will be executed. It's better if the function has a small memory allocation, as this worker is optimized for high CPU usage. For example, it can handle up to 100 cores (vCPU/CPU) due to the large number of workers (e.g, in K8S with VPA/HPA), while memory usage remains around or under 100MiB.
// - Ensure that the functions executed by the worker have minimal memory footprint to optimize resource utilization.