Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
SOA_with_Node.pdf
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Ash Isaac
September 22, 2015
49
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
SOA_with_Node.pdf
Ash Isaac
September 22, 2015
More Decks by Ash Isaac
See All by Ash Isaac
OOP Principles
codelusional
0
260
Featured
See All Featured
How to Ace a Technical Interview
jacobian
281
24k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.3k
Unsuck your backbone
ammeep
672
58k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
200
Designing Experiences People Love
moore
143
24k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
420
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
400
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
200
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Rails Girls Zürich Keynote
gr2m
96
14k
How STYLIGHT went responsive
nonsquared
100
6.2k
Transcript
SOA with Node.js Microservices and Middleware
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)
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
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