question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is the purpose of `id` in a command?

See original GitHub issue

On this line: https://github.com/adrai/cqrs-sample/blob/master/domain/server.js#L17 we are defining some Id. But we also define the aggregateId. What is the purpose of id:? Is it supposed to change? Be static?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nanovcommented, Jun 11, 2018

You could think of it as a request/transaction ID, it identifies this exact command “request”, as a result a correlationId with the exact same ID is attached to the resulted event(s) and even further notification(s) ( ie. readmodel events ) for tracking/coupling ( extremely important when working with a message bus ).

1reaction
adraicommented, Jun 11, 2018

the name of the command identifies the behaviour in your aggregate… it’s not the identifier of that message… i.e. how do you distinguish 2 commands (‘editAccount’) that looks the same?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Id command in Linux
id is a command-line utility that prints the real and effective user and group IDs. The id command prints information about a given...
Read more >
id command in Linux with Examples
1. The id command without any arguments shows the the user and group names and numeric IDs, of the calling process i.e. the...
Read more >
Linux id Command
Linux id command is used to print the genuine and effective user ID and group ID. A user ID (UID) is a particular...
Read more >
Linux Id Command Tutorial
To display your own identity, type id in the terminal. It will display your id, primary group id, and supplementary groups ids if...
Read more >
id Command
Supplementary group information is written only for systems supporting multiple-user groups and only if the specified user belongs to a supplementary group. The ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found