/plushcap/analysis/datastax/datastax-promise-support-datastax-nodejs-drivers

Promise Support in the DataStax Node.js Drivers

What's this blog post about?

In the latest version of DataStax drivers, support for promises has been added while continuing to support callback-based execution. Promises offer several advantages over callbacks, such as chaining using the built-in then() method and compatibility with modern JavaScript features like async functions and generator functions. The new API does not introduce breaking changes to existing functionality. Additionally, the drivers now use MonotonicTimestampGenerator by default for generating request timestamps and support defining whether a query is safe for multiple applications without changing the result beyond the initial application. Synchronous iteration of rows using the new for...of statement in ES2015 has also been added to the ResultSet prototype. The latest versions of DataStax drivers are available on npm: dse-driver and cassandra-driver.

Company
DataStax

Date published
Jan. 17, 2017

Author(s)
Jorge Bay Gondra

Word count
613

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.