Smart Mutation Processing for Subscriptions

0

Hi.
I have a use-case where new objects, that added to Dynamo Db are published over AppSync real-time subscription channel. Due to specific usage pattern (large volume of writes as compared to number of active listeners that subscribed to filtered output) most of the time I don't need to publish those mutations, since nobody listens for them. I want to optimize mutation resolver lambda to work only if at least one active listener is present. Is there any API to check whether given mqtt topic has active subscribers, or configuration, that allows me to make mutation lambda working on active topics only?

denys3
gefragt vor 5 Jahren203 Aufrufe
2 Antworten
0

Hi,

That's a good question and fair use case, but no, at this time there is no such API, unfortunately.

Thanks,
Jeff

beantwortet vor 5 Jahren
0

Got it, thanks for the fast reply!

denys3
beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen