shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

[Question] If the admin is multi-instance, how does websocket synchronize data to the gateway?

Open sheepblueblue opened this issue 3 years ago • 6 comments

Question

If the admin is multi-instance, how does websocket synchronize data to the gateway?

sheepblueblue avatar Jul 24 '22 11:07 sheepblueblue

config multi admin url

yu199195 avatar Jul 25 '22 09:07 yu199195

In production environments, we often configure domain names. Is it better to use the redis/mq publish-subscribe mode on the admin side to notify other admins?

sheepblueblue avatar Jul 25 '22 12:07 sheepblueblue

@yu199195

sheepblueblue avatar Jul 25 '22 12:07 sheepblueblue

In production environments, we often configure domain names. Is it better to use the redis/mq publish-subscribe mode on the admin side to notify other admins?

I dong't understand, why need to nodify other admins?

KevinClair avatar Jul 26 '22 03:07 KevinClair

If both the gateway and the admin are multi-instances, the gateway uses the domain name to connect to the admin through the websocket, and one gateway instance can only connect to one admin instance. How to update other gateway instances? If the admin does not notify other admins?

---- Replied Message ---- | From | Kevin @.> | | Date | 07/26/2022 11:43 | | To | @.> | | Cc | @.@.> | | Subject | Re: [apache/shenyu] [Question] If the admin is multi-instance, how does websocket synchronize data to the gateway? (Issue #3748) |

In production environments, we often configure domain names. Is it better to use the redis/mq publish-subscribe mode on the admin side to notify other admins?

I dong't understand, why need to nodify other admins?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

sheepblueblue avatar Jul 26 '22 04:07 sheepblueblue

See shenyu-data-sync

KevinClair avatar Jul 26 '22 07:07 KevinClair