Armagan Amcalar
Node.js Meetup Berlin
Jun 21st, 2016
Armagan Amcalar
Head of Software Engineering @ unu GmbH
Founder @ Lonca Works
dashersw dashersw
Microservices vs monoliths
Problems with microservices
How cote.js can help
Coding demo
Single code base
One process to rule them all
A bug anywhere crashes the whole system
May consume lots of stale resources
Hard to scale; needs even more stale resources
Request–response flow is one huge piece
Easy to manage
Separate code base
Multi processes for each service
A bug in a service crashes only that service
Consumes minimal resources
Scales well, needs minimal additional resources
Supports event-driven architecture
Request–response flow breakdown
Hard to manage
Communication between services
Fault-tolerance
Transactional processes
Dynamic service configuration
Service discovery
Health checks & monitoring
Zero-configuration
Scalable
Fault-tolerant
Distributed applications
Auto-discovery
Mesh network, peer-to-peer communication
Pubsub pattern
Requester/responder pattern
Cclient-side communication with Websockets
Load balancing with different strategies
Daemon monitor
Armagan Amcalar
armagan@amcalar.com
twitter: @dashersw
github: dashersw
get these slides at:
https://slides.com/armaganamcalar/cote-microservices
code examples:
https://github.com/dashersw/berlin-nodejs-meetup-cote
e-commerce app case study:
https://github.com/dashersw/cote-workshop