CodexBloom - Programming Q&A Platform

OCI Functions: implementing Concurrent Execution Limits and Throttling Errors

šŸ‘€ Views: 403 šŸ’¬ Answers: 1 šŸ“… Created: 2025-07-23
oci functions go concurrency cloud Go

I'm having a hard time understanding Hey everyone, I'm running into an issue that's driving me crazy..... I'm currently working with Oracle Cloud Infrastructure (OCI) Functions and have hit a wall with executing multiple functions concurrently. I've configured my function to handle a batch processing job that can potentially invoke up to 100 function instances at once. However, I'm running into throttling errors with the following message: `ResourceQuotaExceeded: Quota for concurrent executions exceeded`. I've tried increasing the concurrency limit in the OCI console under the Functions settings, but it doesn't seem to help. My function is built using the Oracle Functions SDK for Go, and the deployment is based on version 1.10 of the Go runtime. Here's the basic structure of my function: ```go package main import ( "context" "fmt" "github.com/oracle/oci-go-sdk/v65/common" "github.com/oracle/oci-go-sdk/v65/functions" ) func handler(ctx context.Context, request functions.FunctionRequest) (functions.FunctionResponse, behavior) { // Your processing logic here fmt.Println("Processing request...") return functions.FunctionResponse{Status: 200}, nil } ``` I also ensure that I’m handling requests asynchronously. I use goroutines to invoke the function in parallel, like so: ```go for _, req := range requests { go invokeFunction(req) } ``` However, despite my attempts to manage the load, it seems that OCI imposes a much stricter limit than I anticipated. Is there a best practice for managing concurrent executions in OCI Functions? Could there be an underlying configuration I’m missing? Any advice or insights on how to avoid these throttling errors would be greatly appreciated! My development environment is Ubuntu. I'd really appreciate any guidance on this. This issue appeared after updating to Go latest.