domain-driven design – Should I create a big initial event or break it down into small events?

I am experimenting with event sourcing for an application that we have not yet created. No, I will not implement this without thinking, I am just experimenting.

My domain model looks a bit like this. The entire model is created at once via a REST service call by external parties. Please note that the status history entities are not linked to the event search. These come from a workflow engine that we use.

Domain model invoices

After this point, the model is slightly modified. some details are changed. A status history is added. Sometimes invoice items are added. Several applications modify different aspects of this model, but not as intrusive as the original creation of the model. There are also several applications that need to know the details of the model, but in different forms. This is what led me to believe that sourcing events could be a good choice.

My main question: Should the first creation of my model be a big event that says "Set of invoices created", including all the nested details necessary for the creation (in JSON or in another form). Or should I split this initial event into several smaller events, much like the image below.

Events creating a set of invoices

My second question: how to process the delivered files? Should I store them as blob storage and reference them from events or should I include them as a base64 string in my events?

angular – Click events fire * ngIf, but do not return with expected value

I have a big question on the angle, create a radio button with the properties "True, False, Null":


when clicked, it displays the expected event (Open another form) and saves it to my json.

But when retrieve the form, opens correctly, but if * ngIf is TRUE, it does not return with the box open, only with the radio selected.

PS: it only opens the radio if I click again

follow my code

showRecuperar = false;
formRecuperar(event: any) {
    if (event.value) {
      this.showRecuperar = true;
    } else {
      this.showRecuperar = false;

Can you help me?

javascript – Is there a way to define drag events on a phaser 3 group?

I hope all is well!
I'm trying to define a drag event on a phaser 3 group, but I couldn't reach what I wanted. I was reading some phaser 2 blogs, and they said that it was not possible to set a drag event on a group.
Can anyone help me with that? Is it really impossible to define a drag event on a group?

Thank you so much!

Can I filter the events recorded in the general MySQL log

I want to be able to filter the events documented in the general journal.

Assuming I'm only interested in information about failed login attempts and / or requests.

can i configure it?

Fix my script? How can I automatically create events in Google Calendar using dates from Google sheets?

I read that it is possible to link a google sheet to the google calendar, so dates can be used to create events in the calendar. I used a script that I found, but absolutely nothing is happening. Can anyone see where i was wrong? (Note – I have the hidden contents of columns A and B, but the title of column D refuses to be imported)

// function to retrieve data from the sheet and add the first reports to the calendar
function simpleSheetsToCalendar () {

// get a spreadsheet
var ss = SpreadsheetApp.getActiveSpreadsheet ();
var sheet = ss.getSheetByName (& # 39; Report1 & # 39;);

// retrieve data from Google Sheet
var data = sheet.getRange (sheet.getLastRow (), 2,2,12) .getValues ​​();

// create variables
var title = data (0) (0);
var eventLoca = data0;
var eventDesc = data0;
var eventDate = (0) (3);

// get the calendar
var masterCal = CalendarApp.getCalendarById (& # 39; & # 39;);

// add to calendar
masterCal.createAllDayEvent (title, location, description, date)

enter description of image here

I don't know if this is part of the problem, but I imported a range from the first sheet of my document, using this formula = query (IMPORTRANGE (" d / 1uxIkcjOTxFAd25Ukzji3VJKoFbAKybuFXfHlBzaGDWc / edit # gid = 1385200762 "," Master! A3: y ")," select Col2, Col3, Col12, Col13 ", 0)

But for some reason, the title cell of column 13 is not imported. I have another post on this.
enter description of image here

unreal 4 – Run timing events from another Blueprint from C ++ UE4

I'm having problems and it's been about a week now that I still can't figure out how to do it right.

It seems that I cannot perform any function from plans that contain timers.

I have a Datatable full of details on each function that will be executed based on its key input and the owner of the functions.
enter description of image here

Ordinary functions and custom events have performed well but will be stopped by a timer.
enter description of image here

This is the code I have done so far. I have added the corresponding function chain in the delegate with its owner who is the obj, and it will be executed when entering the keys.

p.s: Ignore the error, Intellisense was spoiling me

enter description of image here

I saw the error regarding the world not found here,
enter description of image here

but i don't know if this is the case since other functions without a timer inside can work well. Ideas? Thank you.

Is opening a new thread for each event you want to handle the best way to handle events?

I know 100% that there is already a solution for what I ask, but with all the research I have done, I can't seem to find it.

Currently, a CS student is trying to do independent studies to stay ahead. Recently, I have wondered how different languages ​​/ frameworks implement event handling and I have found information on this, as there is usually an event loop working synchronously with the main thread.

My question is how such a thing is implemented when you want to check multiple events such as game events. Would you like to create a thread for each event and have these threads looped synchronously with the main thread or want you have a single thread? I'm just assuming it's better to open a new thread for each event you want to handle, but there has to be a better solution.

mysql – creates a summary of event data in a list of events by date even with 0 events in a given amount of time

Using MySQL 5.7, I am trying to create a summary of events from a list of events.

The event table looks like this:

mysql> select camtimestamp,camname from events where camtimestamp >= "2019-12-31" and camtimestamp < "2020-01-02" limit 10;
| camtimestamp        | camname |
| 2019-12-31 00:47:04 | wls1    |
| 2019-12-31 04:57:41 | wls1    |
| 2019-12-31 05:15:22 | wls1    |
| 2019-12-31 05:35:00 | wls1    |
| 2019-12-31 05:46:56 | wls1    |
| 2019-12-31 05:51:30 | wls1    |
| 2019-12-31 05:54:19 | wls1    |
| 2019-12-31 05:56:14 | wls1    |
| 2019-12-31 05:58:45 | wls1    |
| 2019-12-31 05:58:46 | wls1    |
10 rows in set (0.00 sec)

I want the summary to look like this except that I want the camtimestamp in the first column to increase per hour (or whatever I never increment) and the number to be a summary of all the events between the first line and the second.

mysql> select camtimestamp,camname,count(camname) from events where camtimestamp >= "2019-12-31" and camtimestamp < "2020-01-02" group by camtimestamp,camname limit 10;
| camtimestamp        | camname | count(camname) |
| 2019-12-31 00:47:04 | wls1    |              1 |
| 2019-12-31 04:57:41 | wls1    |              1 |
| 2019-12-31 05:15:22 | wls1    |              1 |
| 2019-12-31 05:35:00 | wls1    |              1 |
| 2019-12-31 05:46:56 | wls1    |              1 |
| 2019-12-31 05:51:30 | wls1    |              1 |
| 2019-12-31 05:54:19 | wls1    |              1 |
| 2019-12-31 05:56:14 | wls1    |              1 |
| 2019-12-31 05:58:45 | wls1    |              1 |
| 2019-12-31 05:58:46 | wls1    |              1 |
10 rows in set (0.00 sec)

What I really want is this result (as an example):

Date                  wls1  wls2
2020-01-05 12:00:00   5     7
2020-01-05 13:00:00   10    3
2020-01-05 14:00:00   2     0
2020-01-05 15:00:00   0     0
2020-01-05 16:00:00   0     2
2020-01-05 17:00:00   0     4
2020-01-05 18:00:00   1     23
2020-01-05 19:00:00   2     3
2020-01-05 20:00:00   3     4
2020-01-05 21:00:00   4     5

I tried to create a table that only contains timestamps by 2040 in hourly increments and use a join in my SELECT statement, but I can't seem to get this join between the two tables quite correctly.

architecture – Events to communicate between game objects in a component-based system?

I intend to try to implement a simple little thing "game engine", with game objects that have their components and all that. My problem is, how do they communicate with each other?

I understand that event communication is popular, but how does it work in practice?
Let's say I make a platform shooter and the player has to know each platform, enemy, ball, each image. What will the events look like? I thought the player should just say "hey stage manager, I need to know the platforms. Do you have a chance to give me a pointer to those?" then the player can simply manage it. But in general, the address of the platforms (or any other game object) shouldn't change much, so I came back to a situation where everyone knows each other … It all seems like if the events were useless in this case.

How are events practically used to communicate between objects? is my example the same as what is actually done in games? if not, what do the games do instead?

serialization – How to remember events beforehand for a new attempt

Since I have a system where I consume upstream events with payloads of different types. The pipeline is implemented in a generic way where the logic comes down to:

  • consume the JMS queue event
  • deserialize the event in DTO type
  • create notifications
  • send notification to defined channels

Until now, I did not have to remember the events before.
Now, I have a requirement where I need to try the backup channel when the first channel is not available.

Naturally, I have to remember the event beforehand to try again later.

I have a SQL database at my disposal, but I don't want (at least for now) to map each event upstream to an entity that would be persistent.

What can I do in this situation?
One idea that I have is to serialize the event in some way and save it as a value.

What is the recommended approach for serialization in the Java world and how to represent it in the SQL database?