Copy the example file, rename it, and fill in your own credentials. The leak was caused by a listener that was never removed. Cache the results of the expensive query to reduce database load. In contrast to synchronous calls, the async version never blocks the thread. Nice work; extracting the constant makes the intent much clearer. Overall, the managed service is more expensive but much simpler to operate. Accepts an optional timeout in milliseconds and returns a promise.
Click to start typing