You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
webclient will rely on spring-reactor, and its encoding method is very different from the current synchronous request model. I think it is more appropriate to use asynchronous callback, so I use AsyncRestTemplate
webclient will rely on spring-reactor, and its encoding method is very different from the current synchronous request model. I think it is more appropriate to use asynchronous callback, so I use AsyncResetTemplate
Thanks for your comment!
I've decided that this refactoring is unnecessary, so I will close the issue.
Description
The current implementation uses
AsyncRestTemplate
, which has been deprecated since Spring 5 and removed in Spring 6 / Spring Boot 3.incubator-seata/namingserver/src/main/java/org/apache/seata/namingserver/config/WebConfig.java
Line 59 in 62aa6af
To ensure long-term compatibility and improved performance, we should migrate to
WebClient
, which provides a fully non-blocking, reactive approach.Why Change?
AsyncRestTemplate
is no longer maintained and will be removed in future Spring versions.WebClient
is the recommended replacement, offering better performance, flexibility, and built-in support for reactive programming.AsyncRestTemplate
.Tasks
AsyncRestTemplate
in the codebase.WebClient
, ensuring equivalent functionality.References
The text was updated successfully, but these errors were encountered: