HNHacker News
TopNewBestAskShowJobs

ratneshsingh35

30 karma · joined March 31, 2020

Software Architect
submissionscomments
ratneshsingh35··on Distributed transactions are not microservices
Thanks for sharing, If you include scale then the situation might be tricky, you may need to have different DBs and endpoints there will be a limit on how much vertically you can scale, with that thing in mind this problem is not avoidable, but the distributed transaction is still avoidable using eventual inconsistency or a batch proces.
ratneshsingh35··on Distributed transactions are not microservices
It seems the term scaling changes everything, SOA is good but in many cases scaling the SOA might not solve the problems and you need to pick the path of optimization, and microservices are the possible way to optimize the service, Now if you need transaction (not in all cases) as well then It becomes tricky.
ratneshsingh35··on Distributed transactions are not microservices
thanks for sharing this, good read
ratneshsingh35··on Distributed transactions are not microservices
in one of the situation, we had a similar problem of scaling and consistency not going hand in hand, at that time batch process solves Lot of our problems.
ratneshsingh35··on Distributed transactions are not microservices
yes they will not mostly care and will insist on microservices, but they will not ask for the distributed transaction, I will always try to get the thing done by a batch process instead of services calling each other.
ratneshsingh35··on Distributed transactions are not microservices
https://link.springer.com/chapter/10.1007/978-3-642-30885-7_...
ratneshsingh35··on Distributed transactions are not microservices
yes, thanks for reading
ratneshsingh35··on Distributed transactions are not microservices
I agreed, I like these patterns but I never encourage anyone to start with these patterns, First build a simple monolith to handle the situation, if there is a hard problem then and only then these should be applied, But these days I am seeing quite opposite though, I don't see enough evidence to start with these patterns and always use them as rule of thumb .
ratneshsingh35··on Distributed transactions are not microservices
What I always try to learn is, whether we need these patterns in the first place and do we always need them, But if we do, then these seem handy
ratneshsingh35··on Distributed transactions are not microservices
in the first place, the components should not be decomposition like this, But you can't control everyone , But if It happen and went to production, the only thing you can do it is make it better, that what I have done in many products (using auditor or arbitrator )