是否可以向 ELB 后面的所有实例发送广播消息? [英] Is it possible to send a broadcast message to all instances behind the ELB?

查看:35
本文介绍了是否可以向 ELB 后面的所有实例发送广播消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想向 ELB 后面的所有实例发送更新.我更喜欢发送更新而不是从实例端轮询.是否可以向 ELB 发送将广播到所有实例的消息?

I want to send update to all instances behind the ELB. I prefer to send update instead of polling from instance side. Is it possible to send a message to ELB that will be broadcasted to all instances ?

推荐答案

不是直接的,不是.

一种程序化的解决方法是查询 ELB API 以发现健康实例的身份,然后查询 EC2 API 以发现这些实例的 IP 地址,然后直接将消息发送到每个实例.

A programmatic workaround is to query the ELB API to discover the identities of the healthy instances then the EC2 API to discover the IP addresses of those instances, and then send the message to each instance, directly.

这篇关于是否可以向 ELB 后面的所有实例发送广播消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆