Re:Show HN: Encore – Go framework for building distributed s...
by asimpletune on Wednesday April 14, 2021 @07:47PM
(#26814558)
I think the answers requires more context, but for example one well known pattern is called “sagas” for implementing long lived distributed transactions.
The gist is you timeout but provide a way for transactions to resume.
Also obviously there’s 2PC but again it depends on what unite trying to solve.
Re:Show HN: Encore – Go framework for building distributed s...
by mrath on Wednesday April 14, 2021 @05:49PM
(#26813540)
How does @Transactional span services? With a JtaTransaction manager?
If you are saying about micro services here which talk grpc/http then @Transactional does not help.
If you are talking about inside one service then you have write all that boilerplates, and it will not look as simple as Java
I'm getting into go, but there doesn't seem to be a great pattern for this. Used to @Transactional on the service, so feels annoying in having to build that.