shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

[Task] Client Active Offline

Open loongs-zhang opened this issue 2 years ago • 6 comments

Description

Currently, shenyu only supports passive offline, during which the front-end will have a clear perception (i.e. response 408), indicating that it is better to support active offline.

The idea is roughly:

  1. The client utilizes the mechanism provided by ShenyuClientShutdownHook to call the offline interface of shenyu admin;
  2. In the offline interface of shenyu admin, we update the database and send events;

Task List

  • [x] springmvc client
  • [x] ~~spring cloud client wait for https://github.com/apache/shenyu/issues/4680~~
  • [ ] springmvc client active offline support shenyu-admin cluster
  • [x] ZookeeperClientRegisterRepository active offline @xuziyang
  • [x] NacosClientRegisterRepository active offline @847850277
  • [ ] EtcdClientRegisterRepository active offline @xuziyang
  • [x] ConsulClientRegisterRepository active offline @847850277
  • [x] ApolloClientRegisterRepository active offline @xuziyang

loongs-zhang avatar May 30 '23 06:05 loongs-zhang

hello, when this will be ok?

weiweily avatar Jun 05 '23 03:06 weiweily

hello, when this will be ok?

At least 2.6.0

loongs-zhang avatar Jun 05 '23 08:06 loongs-zhang

After discuss, we think the spring cloud active offline is not needed.

loongs-zhang avatar Jun 09 '23 02:06 loongs-zhang

I would like to take on this job.

xuziyang avatar Jul 01 '23 15:07 xuziyang

please asign ConsulClientRegisterRepository active offline and NacosClientRegisterRepository active offline to me.

847850277 avatar Jul 11 '23 07:07 847850277

please asign ApolloClientRegisterRepository active offline to me.

xuziyang avatar Jul 14 '23 17:07 xuziyang

https://github.com/apache/shenyu/issues/5324

loongs-zhang avatar Apr 11 '24 06:04 loongs-zhang