SlideShare a Scribd company logo
Getting small for the enterprise.

Beyond the
MEAN stack

@othiym23
forrest@newrelic.com
github.com/othiym23
you chose Node for a reason

Node is fast
Node is modular
Node is fun
so why turn it into something else?
Node is built on the
sound engineering
values:
low coupling
high cohesion
“

is the

of

Web development is more pattern-driven:
is this social media?
is this a storefront?
is this… is this a cms?

.”
moduletopia™
Node loves modules:
more all the time
available for almost every use case
pretty easy to understand
(mostly) on GitHub
(mostly) freely usable
stacks: khakis of the internet

familiar: faster to build things you already know
comforting: already integrated / tested / shipped
easy: developers only need master one set of tools
stacks are sticky

opaque: full of implicit assumptions and requirements
complicated: hard to master, easy to break
monolithic: have to pay for the whole thing (but only
using some of it)
Node says: build only what you need.
one size does not fit all
one size does not fit all
one size does not fit all
Beyond the MEAN Stack: Thinking Small with Node.js for the Enterprise
some Node use cases
streaming
json apis
multiplexing
soft realtime
proxying
…you know, fast web servers
& some legacy glue
dat: scraping & etl
dinosaur taming: Oracle & xml
~50k modules: there’s a pony in there somewhere
Windows: best support of any of the major scripting
languages
the zen of Node
self-contained: code over configuration
modular: inversion of control & direct dependency
injection
simple: one small thing in one short file
and so: easy for new people to pick up, easy to maintain
be nice, not mean
MEAN: MongoDB
instead of MongoDB: Redis
fast: data lives in memory
powerful: many different data types, lots of operations
flexible: many options for high availability and
clustering
a veteran: battle-tested in Node
instead of MongoDB: MySQL*
“simple” and “fast” are its best features
time-tested
some data are just plain relational
can actually be managed
* or PostgreSQL (<3

)
instead of MongoDB: leveldb
a do-it-yourself dbms
rapidly-growing ecosystem
simple
not all there yet, but built on a solid foundation
MEAN: Express
instead of Express: hapi

plugins instead of middleware
configuration-centric
optimized for large teams
instead of Express: Restify
api “compatible” with Express’s
meant for building restful apis
optimized for json
instrumented for operational monitoring
instead of Express: Sails

actually built on top of Express
feels like Rails (including scaffolding)
realtime
stack-like, but still a creature of parts
MEAN: AngularJS
instead of Angular:
browserify
puts Node modules in your browser
puts Node ideology in your browser
everything’s on npm
flexible packaging pipeline
good for Node-first developers
instead of Angular: component

similar to browserify
built on GitHub
not so much with the asset pipeline
more focused on client-side development than
browserify
instead of Angular:
bower / Yeoman

an integrated, browserfocused workflow
very rich asset pipeline
good for client-first
developers
MEAN: Node.js

More Related Content

What's hot (20)

PPTX
You know what iMEAN? Using MEAN stack for application dev on Informix
Keshav Murthy
 
PPTX
NodeJS
Alok Guha
 
PPTX
Introduction to Node.js
Edy Segura
 
PDF
When Will Drupal Die? (Keynote talk)
chrisshattuck
 
PDF
Mean Stack - An Overview
Naveen Pete
 
PPTX
Introduction to Node.js
AMD Developer Central
 
PDF
Developing realtime apps with Drupal and NodeJS
drupalcampest
 
PDF
Building a REST API with Node.js and MongoDB
VivochaLabs
 
PDF
MEAN Stack - Google Developers Live 10/03/2013
Valeri Karpov
 
PDF
Intro to Node.js
Jamal Sinclair O'Garro
 
PPTX
Building your first MEAN application
FITC
 
PDF
MongoDB
SPBRUBY
 
PDF
Nodejs
Prem Sanil
 
PDF
MongoDB and Node.js
Norberto Leite
 
PPTX
MEAN Stack
Dotitude
 
PDF
Introduction to Node.js
Rob O'Doherty
 
PPTX
Introduction to node.js by jiban
Jibanananda Sana
 
PDF
Node.js primer
Swapnil Mishra
 
PDF
Best node js course
bestonlinecoursescoupon
 
PDF
MEAN Stack
Krishnaprasad k
 
You know what iMEAN? Using MEAN stack for application dev on Informix
Keshav Murthy
 
NodeJS
Alok Guha
 
Introduction to Node.js
Edy Segura
 
When Will Drupal Die? (Keynote talk)
chrisshattuck
 
Mean Stack - An Overview
Naveen Pete
 
Introduction to Node.js
AMD Developer Central
 
Developing realtime apps with Drupal and NodeJS
drupalcampest
 
Building a REST API with Node.js and MongoDB
VivochaLabs
 
MEAN Stack - Google Developers Live 10/03/2013
Valeri Karpov
 
Intro to Node.js
Jamal Sinclair O'Garro
 
Building your first MEAN application
FITC
 
MongoDB
SPBRUBY
 
Nodejs
Prem Sanil
 
MongoDB and Node.js
Norberto Leite
 
MEAN Stack
Dotitude
 
Introduction to Node.js
Rob O'Doherty
 
Introduction to node.js by jiban
Jibanananda Sana
 
Node.js primer
Swapnil Mishra
 
Best node js course
bestonlinecoursescoupon
 
MEAN Stack
Krishnaprasad k
 

Similar to Beyond the MEAN Stack: Thinking Small with Node.js for the Enterprise (20)

PDF
Node.js an Exectutive View
Manuel Eusebio de Paz Carmona
 
PPTX
Node js installation steps.pptx slide share ppts
HemaSenthil5
 
PPTX
module for backend full stack applications 1.pptx
hemalathas752360
 
PDF
Exploring MERN Stack and Tech Stacks: A Comparative Analysis
IRJET Journal
 
PPT
Node js
Chirag Parmar
 
PPTX
What is a good technology stack today?
Netlight Consulting
 
PPT
Node and Azure
Jason Gerard
 
PDF
Getting MEAN with Mongo Express Angular and Node 1st Edition Simon Holmes
nqaoylllvg977
 
PDF
Getting MEAN with Mongo Express Angular and Node 1st Edition Simon Holmes
sherajqublan
 
KEY
Dcjq node.js presentation
async_io
 
PPTX
Mean stack
RavikantGautam8
 
PPTX
After the LAMP, it's time to get MEAN
Jeff Fox
 
ODP
Riereta Node.js session 3 (with notes)
Tekno Paul
 
PDF
An introduction to Node.js
Kasey McCurdy
 
PDF
Seattle StrongLoop Node.js Workshop
Jimmy Guerrero
 
PDF
DownTheRabbitHole.js – How to Stay Sane in an Insane Ecosystem
FITC
 
PDF
The Happy Path: Migration Strategies for Node.js
Nicholas Jansma
 
PDF
Node.js
Matt Simonis
 
PDF
All You Need to Know About Using Node.pdf
iDataScientists
 
PPTX
Take the Fastest Path to Node.Js Application Development with Bitnami & AWS L...
Bitnami
 
Node.js an Exectutive View
Manuel Eusebio de Paz Carmona
 
Node js installation steps.pptx slide share ppts
HemaSenthil5
 
module for backend full stack applications 1.pptx
hemalathas752360
 
Exploring MERN Stack and Tech Stacks: A Comparative Analysis
IRJET Journal
 
Node js
Chirag Parmar
 
What is a good technology stack today?
Netlight Consulting
 
Node and Azure
Jason Gerard
 
Getting MEAN with Mongo Express Angular and Node 1st Edition Simon Holmes
nqaoylllvg977
 
Getting MEAN with Mongo Express Angular and Node 1st Edition Simon Holmes
sherajqublan
 
Dcjq node.js presentation
async_io
 
Mean stack
RavikantGautam8
 
After the LAMP, it's time to get MEAN
Jeff Fox
 
Riereta Node.js session 3 (with notes)
Tekno Paul
 
An introduction to Node.js
Kasey McCurdy
 
Seattle StrongLoop Node.js Workshop
Jimmy Guerrero
 
DownTheRabbitHole.js – How to Stay Sane in an Insane Ecosystem
FITC
 
The Happy Path: Migration Strategies for Node.js
Nicholas Jansma
 
Node.js
Matt Simonis
 
All You Need to Know About Using Node.pdf
iDataScientists
 
Take the Fastest Path to Node.Js Application Development with Bitnami & AWS L...
Bitnami
 
Ad

Recently uploaded (20)

PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Biography of Daniel Podor.pdf
Daniel Podor
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Ad

Beyond the MEAN Stack: Thinking Small with Node.js for the Enterprise

  • 1. Getting small for the enterprise. Beyond the MEAN stack @othiym23 [email protected] github.com/othiym23
  • 2. you chose Node for a reason Node is fast Node is modular Node is fun
  • 3. so why turn it into something else?
  • 4. Node is built on the sound engineering values: low coupling high cohesion
  • 5. “ is the of Web development is more pattern-driven: is this social media? is this a storefront? is this… is this a cms? .”
  • 6. moduletopia™ Node loves modules: more all the time available for almost every use case pretty easy to understand (mostly) on GitHub (mostly) freely usable
  • 7. stacks: khakis of the internet familiar: faster to build things you already know comforting: already integrated / tested / shipped easy: developers only need master one set of tools
  • 8. stacks are sticky opaque: full of implicit assumptions and requirements complicated: hard to master, easy to break monolithic: have to pay for the whole thing (but only using some of it)
  • 9. Node says: build only what you need.
  • 10. one size does not fit all
  • 11. one size does not fit all
  • 12. one size does not fit all
  • 14. some Node use cases streaming json apis multiplexing soft realtime proxying …you know, fast web servers
  • 15. & some legacy glue dat: scraping & etl dinosaur taming: Oracle & xml ~50k modules: there’s a pony in there somewhere Windows: best support of any of the major scripting languages
  • 16. the zen of Node self-contained: code over configuration modular: inversion of control & direct dependency injection simple: one small thing in one short file and so: easy for new people to pick up, easy to maintain
  • 17. be nice, not mean
  • 19. instead of MongoDB: Redis fast: data lives in memory powerful: many different data types, lots of operations flexible: many options for high availability and clustering a veteran: battle-tested in Node
  • 20. instead of MongoDB: MySQL* “simple” and “fast” are its best features time-tested some data are just plain relational can actually be managed * or PostgreSQL (<3 )
  • 21. instead of MongoDB: leveldb a do-it-yourself dbms rapidly-growing ecosystem simple not all there yet, but built on a solid foundation
  • 23. instead of Express: hapi plugins instead of middleware configuration-centric optimized for large teams
  • 24. instead of Express: Restify api “compatible” with Express’s meant for building restful apis optimized for json instrumented for operational monitoring
  • 25. instead of Express: Sails actually built on top of Express feels like Rails (including scaffolding) realtime stack-like, but still a creature of parts
  • 27. instead of Angular: browserify puts Node modules in your browser puts Node ideology in your browser everything’s on npm flexible packaging pipeline good for Node-first developers
  • 28. instead of Angular: component similar to browserify built on GitHub not so much with the asset pipeline more focused on client-side development than browserify
  • 29. instead of Angular: bower / Yeoman an integrated, browserfocused workflow very rich asset pipeline good for client-first developers

Editor's Notes

  • #4: • the name of this talk comes from a thing I’ve seen out there: the “MEAN (or Mongo-Express-Angular-Node) stack” • this isn’t actually a thing, but I understand why some people want it to be, and will go into both what I think their motivations are and why I ultimately think they should let it go
  • #5: • Facts and Fallacies is a wonderful book, pragmatic and filled with evidence • it provides an empirical basis for a lot of software engineering’s core principles • and these cornerstones of good software engineering are pretty simple: they’re low coupling and high cohesion • put another way, each piece should do only one thing, and do it well • the Node community honors these values in a pretty plainspoken way • publish everything as its own module • don’t put in anything you don’t need
  • #6: • web development tends to be more pattern-driven: does this new product look like Facebook? does it look like Amazon? does it look like Wordpress? [the Instagram of fax machines / the Netflix of underwear / the Klout of bail bond services (one of those is real)]
  • #7: • this is practically an ideology in the Node community – modules are plentiful and very focused, and tend to be simple enough that a moderately experienced developer can understand a new module in less than an afternoon [the biggest problem with Node’s module ecosystem is discoverability]
  • #8: • it&apos;s tempting as a business owner to spec projects out this way, because it feels faster to frame new products in terms of things you already know • and it&apos;s comforting to think in terms of frameworks or stacks, because you know they&apos;ve already been integrated, tested and delivered at least once • this reduces risk and gives some sense of the scope of work • and some devs prefer frameworks because it allows them to master one set of tools and use them to quickly put together new things
  • #9: • but stacks are sticky – they contain implicit assumptions and requirements that may not match yours – and adapting them can be difficult • the more comprehensive the stack, the more difficult it&apos;s going to be to understand it, and the more likely you are to overlook something, duplicate functionality with slightly different implementations, or introduce bugs or security holes
  • #10: The nice thing is that Node modules, being designed to do one thing, are generally easy to combine, making it fast to build an app that does what you need – and no more – in a reasonable amount of time.
  • #12: Node isn&apos;t omakase: it’s not an opinionated framework made up of curated components, optimized for a single use case
  • #13: nor is it a swiss-army chainsaw: it doesn’t try to do everything, and it’s not good at everything
  • #14: nor is it whatever the hell this is: Node eschews the abstract and formal in favor of getting things done [google “java abstract factory”]
  • #15: • it has a double handful of solid use cases, of which some are highly relevant to enterprise projects: • streaming: good for serving large files (GitHub’s use case for a couple years now) * multiplexing: lots of I/O on an economical amount of server (good for games!) • JSON APIs: good for talking to mobile and modern web clients * proxying: good for pulling together a complex back-end network (just look at Walmart) * soft realtime: presence notification and status notification
  • #16: • pretty much whatever legacy components you have to interoperate with have at least one module out there (except maybe tn3270 emulation) • Azure is already the second-largest cloud, it’s competitively priced (and MS invoices!), and MS is improving it all the time
  • #17: • Node tends to favor a style of simple composition: • code over configuration • inversion of control via callbacks or promises • direct dependency injection • one thing exported from one short file – you can reason about one whole small problem at a time
  • #18: • let’s look at some alternatives to the popular components in the MEAN stack • not judging, just showing some of the many different ways Node can be used to solve different engineering problems • choosing the best tool for the job rarely ends up being an objective process anyway
  • #20: Voxer uses it less than they did, but it was handling thousands of transactions per second for sustained periods of time.
  • #21: • driver is bare-bones, but that’s a feature — there are other modules for connection pools, ORM-like things • “time-tested” – legacy isn’t always a dirty word
  • #22: • explosively growing ecosystem, via npm • scale up or down as far as you want
  • #24: • hapi is still relatively new, but already in large-scale production use • plugged into all kinds of legacy systems, being used as a shim for mobile • grew out of Express, but was tailored to suit Walmart’s needs – a model for other enterprise projects
  • #25: • follows the same routing syntax, but has its own architecture • great for mobile apps [too cool for a logo]
  • #26: …and there’s always Geddy if you want something like Rails but smaller, simpler, and more conceptually unified than Sails.
  • #28: • ideology isn’t necessarily something you want to deal with when writing web apps, but it’s pretty par for the course with large frameworks like Angular or Ember • and browserify really isn’t a framework, it’s a module that glues components together, but it’s meant to be used (with lots of small browser modules) instead of Angular • flexible packaging pipeline without complex external tools
  • #29: • component is even less of a framework than browserify – not really about control flow and logic, more about putting widgets on a page • easy to use with another browser-hosted framework
  • #30: • yeoman is an impressive tool for client-oriented developers • focused on integrated workflow over integrated abstractions • not necessarily incompatible with a framework like Angular or Backbone, but not necessarily required, either
  • #31: • the point of this presentation is: consider your options, and use the right tool for the job • I really like Node – I’ve sunk more than two years of my life into working with it and making it better, pretty much 24/7 – but I’ll be the first to admit it’s not appropriate for everything • it’s easy to malign platforms like PHP and the JDK, but they have a lot of valuable things to offer • choose what you need to solve your problem, and try to design products to use it for what it’s best at