Hi, Zaar Hai!Well, why not to do so?Client need to send 500 subscription requests only once, and then client will constantly receive updates for needed sensors.
Another solution could be: to create 1 topic for 1 client, and implement logic on publisher to send messages only to clients (client topics) that are allowed to receive data.
среда, 10 октября 2018 г., 9:56:35 UTC+3 пользователь Zaar Hai написал:Hi guys,Lets say I have 1000 machines that report temperature every now and then (not very often) and 1000 users that want to get temperature updates - each user about its own subset of machines (the subset may overlap between clients).The data is sensitive - each user has a set of machines he is allowed to receive updates about.I thought about topic-per-machine approach - it aligns perfectly with WAMP dynamic auth where I can allow machines only publish to their own topic, e.g. temperature_<machine_id> and users only to subscribe to topics for machines they are eligible to see.The only problem seems to be on the user side of code - if a user wants (and allowed) to receive updates for 500 machines, it (e.g. browser client) has to issue 500 subscription requests, which sounds grossly inefficient.Any other/better ideas on how to do it?Thanks in advance,Zaar
--
You received this message because you are subscribed to a topic in the Google Groups "WAMP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wampws/7SWHNvUjjb0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wampws+un...@googlegroups.com.
To post to this group, send email to wam...@googlegroups.com.
Visit this group at https://groups.google.com/group/wampws.
To view this discussion on the web visit https://groups.google.com/d/msgid/wampws/da1ddeb0-45fc-4088-9505-7ff3ec66c4d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
{
"machine_<id>": <temp>,
"machine_<id>": <temp>,
...
}
To view this discussion on the web visit https://groups.google.com/d/msgid/wampws/d436a1f5-6b7c-4f59-b097-78f65ca0cd45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "WAMP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wampws/7SWHNvUjjb0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wampws+un...@googlegroups.com.
To post to this group, send email to wam...@googlegroups.com.
Visit this group at https://groups.google.com/group/wampws.
To view this discussion on the web visit https://groups.google.com/d/msgid/wampws/e495b41c-7594-45b3-9bd3-6d975316c00d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.