What ways are there to get subscription status from an extension?

Let’s assume that I have to handle large traffic nonetheless.
How should I deal with that?
Can You link me to any resource?
How should the queue be written to prevent getting errors?
What would be the best NPM package?