The two most likely limiters in performance will be your network pipe to the cloud and the QPS quota offered by the service. If you are not reaching those limits you should increase the parallelism until you do. If your cpu becomes saturated first you probably need larger buffer sizes in the I/o.
On Thursday, May 8, 2025 at 3:48:36 PM UTC-5 Kanak Bhatia wrote: > Does anyone have idea how to optimize consumers, producers and channels > using golang. I have to upload a million objects to a cloud object storage, > but unable to get a optimzed values for above parametres. Producers used to > create objects and send data through channels and receive them at > consumers and call api from there. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/6af4acac-c8c8-462c-aad4-08e1df73f694n%40googlegroups.com.