Sunday, 16 April 2017

RxJS in Express and NodeJS

I would like to use RxJS in my Server Side Rendering. My Server Side code in ExpressJS Framework which runs on Node Server. is this a Right Approach or is RxJS for client side ?

mainCache
  .do(console.log.bind(console))
  .catch(err => dbData.catch(err => {
     console.log('DB CAL Log info', error);
     return fallbackCache.do(response => {
          console.log('FALLBACK CACHE SERVED');
          console.log(response);       
     }).catch(console.log.bind(console, `DB CAL Log error`))
   }));

Any Recommendations ?



via Alamelu Dilli

No comments:

Post a Comment