Promises, Async and Await in Node.js

Promises, Async and Await in Node.js

This week we had the much awaited Node.js 8.0.0 release! Node is getting faster and better all the time. This release also makes the async / await feature available natively. But before we look at async / await let us quickly look at promises and specially the bluebird flavor of promises.

I like bluebird because it provides some really cool features on top of the promises API. Let us build upon an example where we make HTTP calls to fetch the weather information. We will use the Dark Sky API so we are "Powered by Dark Sky" :) (I need to say this for licensing reasons).

Continue reading ...

Bhuvnesh Kumar

Senior Lead Software Engineer | PowerSchool

7 年

Async/await is one of the best feature of Node.js . Recently i started to use it with Koa2 and it is an great experience till now.

回复

要查看或添加评论,请登录

Rocky Jaiswal的更多文章

  • Fun with function composition

    Fun with function composition

    Previously we looked at why it is nice to write software with function composition. We saw that it leads to simpler…

    3 条评论
  • Hibernate Reactive Experiments

    Hibernate Reactive Experiments

    Recently IRL (not weekend life) we had to deal with an old Ruby service to get it ready for "Black Friday traffic" i.e.

  • Code with functions

    Code with functions

    Explore the idea of writing code with small composable functions.

  • React, Redux with TypeScript

    React, Redux with TypeScript

    The most important element of a React + Redux application is "state". The state decides what the user interface will…

    1 条评论
  • Kubernetes with ELK Setup

    Kubernetes with ELK Setup

    As it turns out this is my 100th post. The first one was published in March 2011 and a lot has changed since then.

    1 条评论
  • Testing HapiJS with Jest

    Testing HapiJS with Jest

    HapiJS and React are pretty much my go-to technology choices for web application development right now. While Jest…

  • Docker Registry with AWS & Let's Encrypt

    Docker Registry with AWS & Let's Encrypt

    With pretty much all new projects moving to Docker and Docker managers like Kubernetes, the Docker Registry becomes the…

  • Hello Kubernetes

    Hello Kubernetes

    Introduction Pretty much everyone in the technology world has heard about Kubernetes by now. But before we dive into…

  • Pi calculation with Elixir

    Pi calculation with Elixir

    As a programmer one is always searching for better tools, practices and programming languages. For example, working…

  • Classes and patterns in Node.js

    Classes and patterns in Node.js

    This week we had the awesome Node.js 6.

社区洞察

其他会员也浏览了