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.

Event definition duplication

See original GitHub issue

e.g. OrderStatusChangedToPaidIntegrationEvent 1, 2

How come these aren’t in some shared place e.g. ...Services.Orders.API.Events?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
CESARDELATORREcommented, Nov 20, 2017

We believe that is not a good practice. Microservices should be autonomous and not depend on shared libraries except for serious building blocks. This shared library wouldn’t be a building block but a domain-type library. That is almost like if you share a domain entity library across microservices. If you change the event in one microservice will break the consumers in the same way than you break consumers if you change a REST API. But in that case, you are not sharing types with Http consumers, neither. So, changing events should be done carefully, with versions, in the same way than you change REST or HTTP services. You might also have similar types when using DTOs or ViewModels in services and HTTP consumer apps. I think this is a very similar case, but using integration-events.

So, initially, we don’t want to share a class library for the events across a microservice application. It is arguable, but the reasons are what I just said. We’re open to discuss this topic further, though. We could find additional improvements, in any case. 😃

0reactions
CESARDELATORREcommented, Nov 20, 2017

We have a Slack channel for the project, but due to many other projects we’re working on, we cannot focus on Slack, so we end up using email… You can send me emails to cesardl at microsoft.com

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplication event definition in American English
Duplication event definition: an occasion when a region of DNA coding for a gene is duplicated | Meaning, pronunciation, translations and examples in ......
Read more >
duplication event collocation | meaning and examples of use
the act or process of making an exact copy ... See more at duplication. event. noun [C]. uk.
Read more >
Duplication
Duplication, as related to genomics, refers to a type of mutation in which one or more copies of a DNA segment (which can...
Read more >
Event Deduplication - SOCless Docs
An event is a duplicate if it has a deduplication hash in the Dedup table that maps to an unclosed event in the...
Read more >
Handling duplicate events
One possible approach to block duplicate events is to use a string metric to retain the unique event identifiers of the events that...
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