ЗАПИСИ С МЕТКОЙ #Patterns

[← Вернуться ко всем меткам]

Transactional Outbox: A Simplified Approach

I was reading the “Microservices Patterns” book by Chris Richardson and came across this pattern called “Transactional Outbox”, described also on the author’s website. It allows you to solve a case when you want to write a record to the database and send a related message to the consumers via a message broker, while keeping those two actions transactional.
[читать далее]

Best practice: Establishing a border of trust

The defensive programming principles state that we should validate and assert the preconditions (input parameters, return values of called methods, current system state) before executing the particular method code. The obvious benefit of this approach is it allows you to catch bugs early and to get a reasonable stacktrace that limits the scope for finding the error in the code.
[читать далее]