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

Consider migration to ZIO #782

Open
adamw opened this issue Jan 20, 2022 · 0 comments
Open

Consider migration to ZIO #782

adamw opened this issue Jan 20, 2022 · 0 comments

Comments

@adamw
Copy link
Member

adamw commented Jan 20, 2022

The cats-effect 3 migration caused some problems:

  • embedding non-DB-related effects into transactions is no longer possible using ioCode.to[ConnectionIO], instead some parts of the code need to be written using the tagless-final style, and some directly use IO/ConnectionIO
  • we had to remove the correlation id functionality: Remove correlation id support #771

That's why maybe it's worthwhile considering migration to ZIO 2.0. Some things to check:

  • what about SQL libraries for ZIO? Are there any "native" ones that allow mixing transational and non-transactional effects?
  • will we be able to implement correlation ids in a transparent way using fiber-locals?
  • will we be able to retain constructor-based DI, reducing the usage of ZIO's environment to a minimum?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant