8000 Add ZIO production ready microservice example by saraiva132 · Pull Request #3703 · zio/zio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add ZIO production ready microservice example #3703

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

Merged
merged 1 commit into from
May 25, 2020

Conversation

saraiva132
Copy link
Contributor

So I wanted to try out how well one can write a production ready microservice using ZIO and current ecosystem.

Code is pretty much done but will see some improvements over time (integration with tranzactio to also show how to combine several db effects in one transaction, but especially documentation). After writing it I noticed there are some example that are somewhat similar in libraries but mine goes a bit further by:

  • Having unit tests with properly mocked dependencies with zio-mock
  • Having integration tests with some maybe interesting things going on
  • Full blown microservice with proper client error handling / healthcheck etc
  • Full usage of tapir (ztapir) and sttp (integration with third-party http service).
  • zio-logging

Let me know your thoughts. And feedback. :)))

So I wanted to try out how well one can write a production ready microservice using ZIO and current ecosystem. 

Code is pretty much done but will see some improvements over time (integration with tranzactio to also show how to combine several db effects in one transaction, but especially documentation). After writing it I noticed there are some example that are somewhat similar in libraries but mine goes a bit further by:

- Having unit tests with properly mocked dependencies with zio-mock
- Having integration tests with some maybe interesting things going on 
- Full blown microservice with proper client error handling / healthcheck etc 
- Full usage of tapir (ztapir) and sttp (integration with third-party http service). 
- zio-logging

Let me know your thoughts. And feedback. :)))
Copy link
Contributor
@adamgfraser adamgfraser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding!

@adamgfraser adamgfraser merged commit feae26f into zio:master May 25, 2020
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

Successfully merging this pull request may close these issues.

2 participants
0