furkan3ayraktar/clojure-polylith-realworld-example-app

error handling

Closed this issue · 2 comments

Hi team,

I checked the code a bit and seems for this example app there's no error handling for:

  • database operations
  • rpc calls

What will happen to current example app if the disk of the database server is full?

I also posted a similar question in the forum https://polylith.freeflarum.com/d/7-distributed-error-handling-for-microservice-deployment-style

Guess this is an important piece if we want to build a real application, since extensive error handling will actually shape the interface quite a bit, increasing the development cost.

Hi! Just a side not, this example is based on the specifications of the RealWorld project.

Apart from this, if we go back to the main question, there are many ways of handling exceptions depending on platform, environment, frameworks, etc. you choose. In my opinion it's an implementation detail which should live under the implementation of the component, not under the interface. Also Polylith is an architecture and a metaphor independent of language, framework or platform choice. That's why it does not suggest any implementation details like handling exceptions. It's up to the developer to decide how to handle exceptions.

Coming back to this example project, if you want to implement a way of handling exceptions while complying to the specifications of RealWorld project, please create a pull request and we can merge it to the repository.

I'm closing this due to inactivity. Create a PR If anyone wants to pick it up.