Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
SOA_with_Node.pdf
Search
Ash Isaac
September 22, 2015
51
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
270
Featured
See All Featured
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Color Theory Basics | Prateek | Gurzu
gurzu
1
470
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Abbi's Birthday
coloredviolet
4
10k
Prompt Engineering for Job Search
mfonobong
0
450
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
460
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
500
Bash Introduction
62gerente
615
220k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
230
We Have a Design System, Now What?
morganepeng
55
8.3k
The Invisible Side of Design
smashingmag
301
52k
The Cost Of JavaScript in 2023
addyosmani
55
10k
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