What are reactors / reactions in event-sourcing?

I am new to CQRS and I read about projections and projectors, as well as reactors, but my resource does not cover it completely. Can someone define the reactors completely in the Event History or give me a link or book to read? my main questions are:

  • What are reactors?
  • What is the structure of the reactors?
  • How do we sell reactors?
+4
source share
1 answer

A projection is a function that takes a domain event and converts it into an action on a list, tree, graph, any ...

, , , . , , , X INSERT UPDATE DELETE .

, CRUD. , .

, . , , userLoggedIn, . , . , . - .

(, ), , . , , , .

: - , . , , , : , - , .

, , , . wolkenkit, CQRS JavaScript Node.js, - . , , .

(, , wolkenkit) :

'use strict';

const when = {
  'userManagement.user.loggedIn' (event, mark) {
    // ...
    mark.asDone();
  }
};

module.exports = { when };

( : wolkenkit, , , .)

+1
source

Source: https://habr.com/ru/post/1688264/


All Articles