Tuesday, November 3, 2015

Fail-Fast instead of Fire-and-Forget

Fail-Fast

fail-safe, fail-fast, fire-and-forget

Fail Fast means, when something goes wrong, you must show an error as soon as possible, so that you can take an action to solve the problem.
With fire-and-forget (when you have no any response) there is nothing you can do, when something went wrong.
Here is few points to follow fail-fast behavior:
  • assertions;
  • meaningful exceptions;
  • response for each request.


No comments:

Post a Comment