mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Race condition when using Application Inference Profile with Bedrock plugin #899
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ericfzhu on GitHub (Dec 25, 2025).
Self Checks
Dify version
1.11.1
Plugin version
0.0.56
Cloud or Self Hosted
Self Hosted (Source), Self Hosted (Docker)
Steps to reproduce
http://localhost/v1/chat-messages)The expected behavior is that
GetInferenceProfilewill only be called once, and the rest of the requests should just use the cached data. However, you will notice from CloudTrail that this will result in 50-100 invocations toGetInferenceProfile.GetInferenceProfileis a control plane API with a fairly low TPS (double digits based on my testing) that cannot be increased. The race condition can causeThrottlingExceptionerrors during batch operations or with sufficient concurrent users, resulting in 500 errors.✔️ Error log
No response