AdemCatamak / MessageStorage

Message and Job Storage with Outbox Design Pattern

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Id should be generated from storage or should be generated from code-base

AdemCatamak opened this issue · comments

https://github.com/phatboyg/NewId

Currently, id generation operation is executed in data-storage. On the other hand, id could be created from code-base and db forced to save an entity with the given id. (below repo is an example of generating id)


  • If code would generate id value, there will be no need to SetId methods for Message and Jobs
  • If code would generate id value, the project could get rid of the dependency that db incremental id features

  • If code generates id value, id value's type cannot be long. This situation's effect on query performance should be examined.