Upgrade to Pro — share decks privately, control downloads, hide ads and more …

SOA_with_Node.pdf

Ash Isaac
September 22, 2015
40

 SOA_with_Node.pdf

Ash Isaac

September 22, 2015
Tweet

Transcript

  1. Developer’s Overview: • httpServer-on-a-stick • Evented: async all the things

    (yay!) …callback all the things (noooo!) • very lightweight and modular (reusability + fast prototyping) • clustering is easy, error handling is hard • real-time web (web sockets, socket.io)
  2. MedNet Resource Server: imednet.com Resource Owner: Study Administrator Resource: Novartis:

    Forms, Patients Client: webservices token-server (RESTful microservice) POST { study: Novartis, resource: Patient } { clientId: XXXXX, clientSecret: XXXX } auth-proxy (middleware) Authorization: Bearer XXXX:XXXX mongodb:://tokens HTTP relay Registration Request Access
  3. node modules used… • restify : RESTful API framework •

    mongoose : MongoDB ODM • joi : validation • node-uuid : guid generation • cluster : clustering support • connect : middleware support • body-parser: parsing middleware • bunyan : logging