Error after trying to send message in a topic with big amount of subscribers
Hello, i use this method to trigger message in a topic - https://docs.novu.co/subscribers/topics#trigger-workflow-to-a-topic
I got error in my production app, while i send message to topic and after my subscribers in topic became to big (more than 2 million subscribers in a topic).
Error:
I have a few questions.
I got error in my production app, while i send message to topic and after my subscribers in topic became to big (more than 2 million subscribers in a topic).
Error:
RangeError: Invalid string length at JSON.stringify (<anonymous>) at TopicSubscribersRepository.mapEntities (/usr/src/app/libs/dal/dist/repositories/base-repository.js:199:86) at TopicSubscribersRepository.<anonymous> (/usr/src/app/libs/dal/dist/repositories/base-repository.js:93:25) at Generator.next (<anonymous>) at fulfilled (/usr/src/app/libs/dal/dist/repositories/base-repository.js:5:58) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5)I have a few questions.
- Do you have any restrictions, for example, max count of subscribers in a topic ?
- Maybe you know different ways to send a message to topic, that have a lot of subscribers ?