Tuesday, March 10, 2015

How to deal with communication between aggregate roots?

http://danielwhittaker.me/2014/11/22/4-secrets-inter-aggregate-communication-event-sourced-system/

What is Event-driven architecture?


Behind Event-driven architecture, system model is treated as a state machine. After a command changed the state, an event is generated to notify other components.
http://c2.com/cgi/wiki?EventDrivenArchitecture


What is a simple explanation of higher order functions and callbacks in JavaScript?

  { name: 'Waffles'type: 'dog', age: 12 },
  { name: 'Fluffy',   type: 'cat', age: 14 },
  { name: 'Spelunky', type: 'dog', age: 4 },
  { name: 'Hank',     type: 'dog', age: 11 },
];
var oldDogs = animals.filter(function(animal) {
  return animal.age > 10 && animal.type === 'dog';
});