-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Potential timeout error #136
Comments
Just to clarify: The timeout appeared in a configured HTTP reverse-proxy in the setup (or the Spring Cloud Gateway, in this case), not in the Typed PID Maker (configuration), right? The Typed PID Maker itself should not time out, of course. There are two "heavy" things that happen on validation:
TODO
|
A full rewrite using async and virtual threads, as well as several optimizations, is being done in #218. It also implements Schema Generators, which I believe could be interesting for #179. I hope I'll find the time to do some proper benchmarks between main (2.x) and #218 (which will likely result in v3.0.0 or so, as we consider removing implicit profile validation for compatibility reasons with other project and make it optional/explicit). |
Just a small remark that I consider the performance issue basically solved with #218, and it will land in a soonish available version. Usual performance on machine is 180ms with empty cache, and 3-5ms using the default configuration. It is not fully decided yet if it makes into the 2.x series or the 3.0.0 preview which we are planning. |
Describe the bug
I ran into this issue while operating the Typed PID Maker behind a Spring Cloud Gateway, but it may occur in all setups. The issues occurs if creating a Typed PID with "many" unknown types the first time. The Typed PID Maker resolves all types and caches them for subsequent calls. However, the first time a type occurs will cause some delay and multiple of these delays may sum up to the configured timeout for a single call. In my example, the response timeout was set to 5 seconds, which was hit reliably e.g. for PID Records with 10 previously unknown types.
As a suggestion I would document to increase the timeout to a much higher amount, e.g., 30 or 60 seconds, to be on the safe side.
The text was updated successfully, but these errors were encountered: