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
posta 5 anni fa203 visualizzazioni
2 Risposte
0

Hi,

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

Thanks,
Jeff

con risposta 5 anni fa
0

Got it, thanks for the fast reply!

denys3
con risposta 5 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande