Building a scalable promise based Node.js library

Click for: original source

Ross Bulat wrote a tutorial about building a scalable Node.js library based on Promises. In it he explains how to tackle large async / await Promise based libraries.

With the goal of supporting medium to large scale applications, libraries need to be coherent and manageable, yet be flexible and usable in your promise based execution.

The author covers on an example of MongoDB based API:

  • Explaining requirements in terms of
    • scalability, economics, Promise based (with links to more resources)
  • Importing MongoDB Promises as database client
  • Structuring your exports
  • Promise example: auth token valid?
  • Extending the API call with more Promises

Useful for any developer struggling with Promises. Good read!

[Read More]

Tags javascript nodejs software web-development