3 ms·
> Anti-pattern: HTTP Pub/Sub So what is the alternative? He is not seriously advocating polling, is he?
by xg15 10y ago
> Anti-pattern: HTTP Pub/Sub
So what is the alternative? He is not seriously advocating polling, is he?
- shabble 10y agoMy guess is that no, it's not about pub/sub specifically, but rather that "you" can address & subscribe arbitrary hosts anywhere on the internet via a naive implementation. Segregating your 'dumb' controller/sensor nodes and restricting their ability to talk elsewhere via routing, firewalling or proxies would reduce the risk of a single crappy device leaking onto the internet. At the cost of some centralisation of control in your gateway/router/whatever, of course. And you still need some form of crypto on your local network to protect against local/physical attackers. Is it a coincidence that this post comes a few days after CF announces a "private network for IoT"[1]? My wirelessly-enabled Crystal Ball says no. I wonder if it's because the IoT is itself a big enough pie with current attention on (lack of) security, or if it's more to protect their main business from Mirai N+1/DDoSoT or whatever. [1] https://blog.cloudflare.com/orbit/ https://blog.cloudflare.com/orbit/
- pjc50 10y agoNo, I think it's a weird variant of pub/sub where the client can subscribe in a way that causes the server to poll the client. Or, in the described case, any other random client. Just as anyone can sign anyone's email up to mailing lists.