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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Into the Great Unknown - MozCon
thekraken
41
2.8k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
We Have a Design System, Now What?
morganepeng
55
8.4k
Chasing Engaging Ingredients in Design
codingconduct
0
360
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
The Cost Of JavaScript in 2023
addyosmani
55
10k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
940
Being A Developer After 40
akosma
92
590k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Typedesign – Prime Four
hannesfritz
42
3.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