Platform Engineering: Enhance the developer experience, establish secure environments, automate self-service tools, and streamline workflows
The dawn of observability across the SDLC has fully disrupted standard performance monitoring and management practices. See why.
VPE at Atlantic Money
Company website: https://atlantic.money/
AM
Joined Aug 2024
Stats
Reputation: | 138 |
Pageviews: | 53.3K |
Articles: | 2 |
Comments: | 1 |
Comments
Oct 15, 2024 · Nikita Melnikov
Hi, thanks for the comment!
You are absolutely right, there is a mistake in the code example.
Outbox pattern should like like this
```
...
newState, effects = actor.receive(state, command)
tx := // begin transaction
storage.put(key, newState)
for (effect in effects) {
outbox.insert(effect)
}
tx.commit()
...
```