Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use JSON data types for payload column #10

Open
Horusiath opened this issue Oct 24, 2015 · 1 comment
Open

Use JSON data types for payload column #10

Horusiath opened this issue Oct 24, 2015 · 1 comment

Comments

@Horusiath
Copy link
Contributor

The idea is to use Postgres specific data types, either JSON or (prefered?) JSONB. Advantages are quite obvious, as with this change, the database will be aware of content of events, giving the possibility to query by their fields.

However there are few challenges here:

  1. What to do with existing blob data? - since schema will change eventually in the near future, changes will occur this way or another. But changing column data type is more serious action. We could potentially introduce some switch mechanism or try to use event adapters for that.
  2. How combine this approach with surrogates. Personally I don't have an experience with serializing/deserializing json data types between PostgreSQL and .NET, but one of the problems we could possibly need to resolve is conversion of things such as IActorRef to be functional after receiving from database. This is basically an anti-pattern, but it should work nonetheless.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants