Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
Sender Email:
-
HD-Chapter:Data
-
HD-Enabler:Orion
Description
Hi,
as I read, Orion CB will send a notification as soon as a new subscription
is created, because (quoting) "Orion Context Broker considers the
transition from "non existing subscription" to "subscribed" as a change."
Is there a way to avoid first notification with ONCHANGE subscriptions,
without having to manually check in code (eg: with a firstTime boolean)?
As i'm developing an android app, i find it rather stupid that as soon as
an user enables a rule, he gets spammed with an useless (at that time)
notification.
Thank you very much,
Federico Di Pierro
Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
Please, send your messages using the new domain (Fiware-incense-coaching@lists.fiware.org) instead of the old one.
_______________________________________________
Fiware-incense-coaching mailing list
Fiware-incense-coaching@lists.fiware.org
https://lists.fiware.org/listinfo/fiware-incense-coaching
[Created via e-mail received from: Federico Di Pierro <f.dipierro@atooma.com>]
Issue Links
- relates to
-
HELC-1334 FIWARE.Request.Coach.INCENSe.Orion Context Broker subscriptions question
- Closed
The issue has been emailed:
HELP-6316) [Fiware-incense-coaching] Orion Context Broker subscriptions question *Dear Federico,
Initial notification is synchronous to the subscription operation, thus is a way of getting the "initial state" of the context covered by the subscription before starting getting notifications. You could argue that a a syncronous query operation (e.g. GET /v2/entities, etc.) could be used to get the initial state at the same time of doing the subscription, but race conditions may occur beetween both operations so the initial notification is a more precise mechanism.
Is this precise "initial state" useless? Well, it depends on the use case. The optimal solution would be to make this feature configurable and we have an open issue about that:
https://github.com/telefonicaid/fiware-orion/issues/920
Please add a +1 to that issue if you suppor the idea. Thanks!
Best regards,
------
Fermín