node.js - nodejs - multiple async http requests -
i have started journey nodejs , create simple nodejs app needs to: - first request/get initial data via http, - use received json set of requests (some can done in parallel, needs executed first , data received used create valid url).
taking account nodejs asynchronous , based on callbacks, wondering best way achieve in order have 'clean code' , not mess code much.
thanks hints / guidelines, mark
maybe check out async library. has lot of built in functionality seems accomplish you're looking for. couple of useful ones right off bat might "async.waterfall" , "async.map".
Comments
Post a Comment