Armağan Amcalar PRO
Armagan is the founder of Coyotiv GmbH, and is currently on a mission to bring a scalable and nimble engineering culture to startups and enterprises. Armagan is a public speaker, a mentor and a lecturer.
Armagan Amcalar
FullStackJS Berlin Summer Special 2016 Meetup
Aug 24th, 2016
Armagan Amcalar
Head of Software Engineering @ unu GmbH
Founder @ Lonca Works
dashersw dashersw
Requirements of a modern application
How to design (split an app into) microservices
Pitfalls of microservices
A real-life, real-time application demo
Real-time communication. Live-update & sync to web apps is like a logo to a webpage nowadays
Ease-of-use (developer UX)
Scalability
Performance
Flexibility in choices (no vendor lock-in)
Reduce number of technological complexities
Perfect sync, demos work like a charm ✓
Monolith ✕
Doesn't scale ✕
MongoDB-only ✕
Bounded contexts in domain driven design (at worst)
Preferably many smaller pieces
Scaling concerns
Single responsibility, API interface
Organization of development teams
Iteration model
Wrong domain model
Error handling & circuit breaking
Fault-tolerance
Monitoring
Multiple points of failure
Hard to get the big picture
Zero-configuration
Scalable, distributed applications
Fault-tolerant
Auto-discovery
Mesh network, peer-to-peer communication
Pubsub pattern
Requester/responder pattern
Client-side communication with Websockets
Load balancing with different strategies
Daemon monitor
var cote = require('cote');
var timeService = new cote.Responder({name: 'Time Service'});
timeService.on('time', (req, cb) => {
cb(new Date());
});
var cote = require('cote');
var client = new cote.Requester({name: 'Client'});
client.on('ready', () => {
client.send({type: 'time'}, (time) => {
console.log(time);
});
});
time-service.js
client.js
source code available at:
Armagan Amcalar
armagan@amcalar.com
twitter: @dashersw
github: dashersw
By Armağan Amcalar
In this talk, Armagan will demo an e-commerce application built with microservices in Node.js, using an open-source Node.js library called cote.
Armagan is the founder of Coyotiv GmbH, and is currently on a mission to bring a scalable and nimble engineering culture to startups and enterprises. Armagan is a public speaker, a mentor and a lecturer.