News for hackers. Stuff that matters.
Re:Transactions in a Microservice World by numbsafari on Tuesday August 22, 2023 @03:59PM (#37227782)
tl;dr

The "Classic Funds Transfer" diagram at the top is the signal that you don't need to read this article and the author probably shouldn't have written it.

Re:Transactions in a Microservice World by hinkley on Tuesday August 22, 2023 @04:26PM (#37228090)
The author looks like enough of a grey-hair that he should remember this paper when it first came out.

Your Coffee Shop Doesn't Use Two-Phase Commit:

https://www.enterpriseintegrationpatterns.com/docs/IEEE_Soft...

This version was published the same year the term 'microservice' was coined, but the author blogged about it the previous fall.

Re:Transactions in a Microservice World by numbsafari on Tuesday August 22, 2023 @05:18PM (#37228660)
Now _there's_ a classic.
Re:Transactions in a Microservice World by yathaid on Wednesday August 23, 2023 @09:27AM (#37235529)
Are you two annoyed that the author wrote this article when "Your coffee shop ..." exists?
Re:Transactions in a Microservice World by hinkley on Wednesday August 23, 2023 @10:00AM (#37236009)
I’m annoyed it was written 18 years later by someone who should know better.

Actually I’m annoyed that a course in distributed computing is an elective at good schools and may not even exist at others. I like concurrency, but I’ve been surprised over and over again to find nobody else can or will step up and it’s because I’m the only one who was classically trained. It’s just ridiculous at this point.

Re:Transactions in a Microservice World by gomezjdaniel on Tuesday August 22, 2023 @04:23PM (#37228042)
Why?
Re:Transactions in a Microservice World by mrkeen on Tuesday August 22, 2023 @04:45PM (#37228276)
Even though ACID-compliant databases are very trustworthy, it's still bad practice to mutate amounts of money in-place, even if you trust the database not to duplicate or destroy money. "Accountants shouldn't use erasers" and all that.

If you're dealing with money, you should at a minimum have some kind of ledger, and derive the current state from that.

Calling an SQL transaction "Classic funds transfer" is a bit of a disservice to all the banking that happened before databases. Mesopotamians were recording transactions on clay tablets 5000 years ago.

Re:Transactions in a Microservice World by numbsafari on Tuesday August 22, 2023 @04:58PM (#37228432)
Thank you.

Using incorrect and invalid models of real world systems and using them as exemplars of technical concepts, even as a short hand, is a sign of a not well written document.

It gets worse, because the "level up" to distributed transactions builds on the model by trying to show two banks engaged in a distributed transaction using 2PC to handle a funds transfer. This doesn't exist. It's not a thing. It never has been. There's nothing "classical" about this example.

It exists in the same canon as "a manager is a person. an employee is a person..." examples to explain data modeling.

Using these "examples" leads readers (learners) to walk away with incorrect understanding that they will likely spend a ton of time having to unlearn and overcome.

Re:Transactions in a Microservice World by hinkley on Tuesday August 22, 2023 @06:33PM (#37229465)
I've been job hunting lately and one of the positions was for someone trying to disrupt Visa. It took me years of chats with billing folks and dealing with declined purchases to piece together what I know about how credit cards actually work, and it's just the tip of the iceberg.

Good luck with your Chesterton's Fence adventure boys. You're gonna need it.

Re:Transactions in a Microservice World by simonw on Tuesday August 22, 2023 @04:41PM (#37228229)
I kind of feel like the moment you're trying to run a transaction across data stored in multiple separate microservices, you're in trouble.

"Can entirely encapsulate a transaction" is a good rule of thumb for designing your microservice boundaries.

Once that transaction has completed within the microservice, you can have other services then reliably carry out follow-on actions (maybe via an at-least-once delivery queue such as Kafka).

Re:Transactions in a Microservice World by marcosdumay on Tuesday August 22, 2023 @04:56PM (#37228403)
I kind of feel that every single person that has had good experiences with microservices actually experienced something that doesn't fit the "micro" description, and often enough not even "service".

If the thing can encapsulate an entire transaction, then it's taking care of an entire business vertical. What I do agree, it's one of the best ways to partition your services (just after not doing it). But calling this a "microservice" only serves to confuse people.

Re:Transactions in a Microservice World by JamesBarney on Tuesday August 22, 2023 @06:47PM (#37229598)
Yeah can't we just have services without making them tiny. Just because I don't think having 7 services is an appropriate architecture for a team of 3 doesn't mean I don't think it's an appropriate architecture for a team of 100.
Re:Transactions in a Microservice World by tsss on Tuesday August 22, 2023 @06:51PM (#37229636)
It has always been that except for the constant onslaught of misinformed idiots who have no clue about architecture (especially here on hackernews) trying to convince people otherwise.
Re:Transactions in a Microservice World by xwolfi on Tuesday August 22, 2023 @11:09PM (#37231431)
Or get the project approved. Sometimes you dont work with reasonable people: they want micro services, they cannot forgive you for doing one and then not having transactional correctness. So you have to call your business service a micro service, a small lie that saves a lot of pain and money.

It's like finishing a migration by renaming your initial project with the new name of the target project: everyone is happy, the software is still working, the various political stakeholders now feel the warm embrace of ownership from the old bad domain to their turf, and you saved years of reinventing the wheel to end up in the same place.

Re:Transactions in a Microservice World by Guvante on Tuesday August 22, 2023 @11:58PM (#37231688)
Transaction usually refers to the atomic but of what needs to be done which is certainly not guaranteed to be a business vertical.

You should never have a microservice that doesn't own something unique and the best ones are interesting enough to have a proper owner.

Re:Transactions in a Microservice World by lucasyvas on Wednesday August 23, 2023 @12:09AM (#37231771)
Is it the word micro that causes the issue? Services are way easier and more logical when they are verticals - this is how it's largely meant to be. How many people have read the supporting books and literature that say as much? That would be a good question.

Almost everywhere you go, you see the same mistakes. Almost every one can be found in Sam Newman's 2nd edition. The conclusion I draw is that a very large number of developers ran with it without understanding the pros and cons. Services are only worth it if your organization benefits more from the pros. Many orgs don't, so it makes no sense for them to adopt it over monolithic architecture that is way easier to implement transactions with.

Designing "transactions" across services and databases is an insane endeavour. It's best if each service is split on a line that it can deal with incomplete states in other services.

Re:Transactions in a Microservice World by donkeyd on Wednesday August 23, 2023 @02:53AM (#37232640)
> Is it the word micro that causes the issue? Services are way easier and more logical when they are verticals

I think that the word micro is indeed the issue. Once they stop being micro and just become services, it pretty much becomes a Service Oriented Architecture. So why keep calling it microservices?

Re:Transactions in a Microservice World by marcosdumay on Wednesday August 23, 2023 @01:56PM (#37239748)
The "micro" was specifically coined to mean breaking a vertical into several smaller services. So, if you go look online how to create microservices, you will get most of the material biased into that. Even though most people pushing those describe something saner, what the docs say is what you will get.

Before that, we had "SOA", that was coined to mean exactly breaking your system into full verticals. But then the term was hijacked by some very loud companies selling tools for microservices, and now if you go search for it you will mostly find stuff like how to set distributed transactions.

Overall, humanity currently has a pretty hard time communicating, due to the sheer number and size of bad actors actively and purposefully polluting our communication infrastructure. We get to feel the effects when talking about software too.

Re:Transactions in a Microservice World by lhnz on Tuesday August 22, 2023 @05:31PM (#37228793)
I agree with you, but, I once responded along these lines in an interview and it's not what people want to hear.
Re:Transactions in a Microservice World by foobazgt on Tuesday August 22, 2023 @05:38PM (#37228861)
What did they want to hear?
Re:Transactions in a Microservice World by monknomo on Tuesday August 22, 2023 @05:58PM (#37229095)
I'd imagine something like the saga pattern, what it is, how you use it, when you would use it, etc. would be a decent response
Re:Transactions in a Microservice World by numbsafari on Tuesday August 22, 2023 @04:44PM (#37228259)
This is the correct answer, and it only took three sentences and nary a diagram to state. Well done!
Re:Transactions in a Microservice World by jeffbee on Tuesday August 22, 2023 @05:58PM (#37229088)
I kind of feel like as soon as you decide you need transactions at all you've probably gone off the rails already. Many cases where people believe they need transactions actually just call for doing things in a defined order, or sometimes even just chaos. People jump straight to transactions without thinking through the real minimal constraints.
Re:Transactions in a Microservice World by hinkley on Tuesday August 22, 2023 @06:29PM (#37229423)
Business doesn't work that way.

Every business I've ever worked for has figured out they have peanut butter down, and they have chocolate pretty well squared away, and wouldn't it be great if we made peanut butter cups? We have all the bits we just need to mash them together.

Business loves, loves, loves creating new features by combining existing ones. It's easier than actually inventing anything new. So whatever transactional boundaries you created two years ago? Those are creaking under the weight of feature factory work coming in from customers, business folks and the C-suite.

Re:Transactions in a Microservice World by tsss on Tuesday August 22, 2023 @07:03PM (#37229735)
That you even consider a "peanut butter" microservice demonstrates your total lack of knowledge about them. "Peanut butter" is not a business capability, it is an entity. If you try to align services with entities, you are designing a data model, not a microservice architecture and it is inevitable that you will have a mess where any change needs data from a dozen services and business logic is stretched equally thin.
Re:Transactions in a Microservice World by hinkley on Tuesday August 22, 2023 @11:46PM (#37231612)
It was a metaphor. They always want to tie the display of one piece of data they’ve gathered with some other piece of day they gathered separately. And they eventually come around to the idea that they want it to be consistent. So now your two concepts that were separate are part of some feature that correlates them.
Re:Transactions in a Microservice World by lxzhu on Tuesday August 22, 2023 @06:37PM (#37229506)
I kind of feel it depends on what does "transaction" mean to you. In a multiple steps business flow, one can say each step is a transaction, but people also treat the whole flow as a transaction. For example, a user buys a product online and pays by her bank card. It could be implemented as following steps: 1. sales services request inventory service to reserve a product for this user. 2. sales service request payment service to debit user's card. Is reserving a product a transaction by itself? Or is it just a step of a bigger transaction of buying? If you take the former, then cancelling resevation would be another transaction. If you take the later, then cancelling reservation is a part of transaction rolling back.
Re:Transactions in a Microservice World by simonw on Tuesday August 22, 2023 @11:01PM (#37231379)
For me, the word "transaction" means a thing where you want to store data in your database is a single unit, where it either all succeeds or it all fails.

A multiple business step flow should be called something different, to avoid confusion with well established database terminology.

Re:Transactions in a Microservice World by xwolfi on Tuesday August 22, 2023 @11:16PM (#37231458)
What cannot the client forgive you for not ensuring: I faced this case, we had an ivory tower-designed micro service architecture, the travel insurance team decided to use it to not be fired or humiliated by the architect 2 floors above.

They proceed to create 5 services in python aws lambdas: ui proxy, credit card processor, insurance gateway, email service.

The flow would be: the user clicks buys, it sends the the ui proxy, which triggers a redirect to a credit card ui, the client pays, the backend sends a request to the insurance gateway, and if all goes well, an email is sent with the policy.

Ofc, we didnt receive a policy document from the insurance gateway, we'd generate it ourselves on success, the insurance gateway only saying "ok". The first few weeks, the team missed some failure condition on the insurance gateway, and would charge the client and send a policy pdf by email, but the client was NOT actually insured. It impacted 7 clients a day going to trips thinking they were insured but were NOT.

Imagine the face of the business when they realized there was no transactional boundary over the whole process: one micro service could fail and the others could succeed and god knows what happens then. The change was to build one giant procedural thing that does 1 step at a time and finishes once all is good. One service, one transaction, one state that matters. The architect was eventually fired, finally.

Re:Transactions in a Microservice World by seer on Tuesday August 22, 2023 @11:48PM (#37231625)
Hmm, wouldn’t things have ended up the same inconsistent state if you had it all built as a single service in the first place? E.g. you still can miss a failure condition on the insurance side and end up with a committed transaction? Why was the failure missed in your opinion? Was it because of the opaqueness of the services?

If you go monolith, you’ll of course have the advantage of having one place that orchestrates everything, the place where you start the transaction and follow up with credit card / insurance / email.

But if you are forced to deal with micro services you can roll a poor man’s transaction in the form of a state machine for the whole process backed in the db. Ui proxy receives click, credit card service authorizes money, insurance generates, credit card service settles transaction, email is sent.

The good thing about this whole affair is that you can very clearly see where something fails and why, because failure is not a special case, but part of the normal operation of the service. Also gets you the whole split up into micro services thing where different teams can handle different services. Bad thing of course is its massively more complex, so most probably is not justified.

Transactions are great, but when they rollback, they rollback everything. Now if you want to actually understand and track what went wrong, you need to log stuff somewhere else, which in itself can also fail.

Re:Transactions in a Microservice World by nitwit005 on Tuesday August 22, 2023 @11:32PM (#37231546)
The important question tends to be what happens when things go wrong, such as losing a database and restoring it from backup.

Your database and the credit card company's are separate, so they may retain a record even if you lost the data.

Re:Transactions in a Microservice World by exabrial on Tuesday August 22, 2023 @04:47PM (#37228296)
If you are doing transactions across Microservices you have done "Microservices" incorrectly. Divide your microservices along business, not technical, concerns.

While Microservices themselves can/should absolutely use transactions internally, they should be coarse grained actions. A call into a microservice should either fail and complete, but never leave a system in a partial state.

Re:Transactions in a Microservice World by wg0 on Tuesday August 22, 2023 @05:28PM (#37228761)
And... How that is possible? When you want multiple atomic operations from multiple Microservices to fail altogether or not because there's a workflow that needs those steps?
Re:Transactions in a Microservice World by foobazgt on Tuesday August 22, 2023 @05:44PM (#37228934)
There are all sorts of examples of this in the real world, because it's often not feasible to group everything you'd like into a single transaction.

As a trivial example, consider any interaction with a third party. Once you're into that territory, you're talking logs, asynchronous retry queues, compensating operations, etc.

Sometimes the surface area of your company's product gets so large that, in order to scale, you interact with other teams as if they were 3rd parties.

Re:Transactions in a Microservice World by wg0 on Wednesday August 23, 2023 @03:59AM (#37233065)
We are not talking about third parties. Microservices are always first party, all that you own or some other team within your organisation owns even if they get deployed onto different clouds or something.

Easier would be to admit that the microservices idea was the biggest fad in the history of computing and milked by consultancies to no end while compounding the complexity of software development to unprecedented levels, needlessly.

Re:Transactions in a Microservice World by rqtwteye on Tuesday August 22, 2023 @05:44PM (#37228940)
Is there a process for figuring out how to do microservices “correctly” by your definition? It seems incredibly difficult to stay correct while requirements are being added.
Re:Transactions in a Microservice World by colonwqbang on Tuesday August 22, 2023 @06:09PM (#37229209)
The fact that people like Prof. Leymann are writing whitepapers on how to do microservice "incorrectly" the best way, speaks to this.
Re:Transactions in a Microservice World by JamesBarney on Tuesday August 22, 2023 @06:50PM (#37229629)
I think most companies do this pretty well when deciding what projects different teams are responsible for. Those are usually pretty good business joints to cleave the domain.

People just lose their mind when you say the microservice.

Re:Transactions in a Microservice World by mjfisher on Wednesday August 23, 2023 @01:38AM (#37232234)
Yeah - start with a monolith as Martin Fowler (the guy who popularized microservices) suggests. Split out services as you understand more about how the business is developing and stabilising.
Re:Transactions in a Microservice World by rqtwteye on Wednesday August 23, 2023 @10:54AM (#37236992)
So basically don’t do micro services unless there is a real need :-). I am on board with that but I am old and don’t understand how modern software gets done.
Re:Transactions in a Microservice World by hinkley on Tuesday August 22, 2023 @06:30PM (#37229437)
Business concerns change every month. Where is your architecture now?
Re:Transactions in a Microservice World by winrid on Wednesday August 23, 2023 @12:58AM (#37232049)
I can assure you some of us have worked in hellscapes where it does change every month ^_^
Re:Transactions in a Microservice World by abwizz on Wednesday August 23, 2023 @03:36AM (#37232890)
probably most
Re:Transactions in a Microservice World by hinkley on Wednesday August 23, 2023 @09:53AM (#37235890)
I had a guy early on who tried to change the business plan every week. A few times that was twice a day. It was exhausting.
Re:Transactions in a Microservice World by baz00 on Tuesday August 22, 2023 @04:55PM (#37228396)
How this usually turns out...

1. We got into this microservices fad and built this really granular service architecture which we're so proud of but is actually a pile of steaming shit and we're in denial.

2. We forgot to consider that a service boundary is a transaction and/or failure domain and now we have this distributed operation that has to be transactional because it's crapping itself 50 times a day and clients are complaining that something is inconsistent somewhere.

3. Read Martin Fowler's blog and this blog article while having a post-work shit in the bathroom.

4. Come out with a half baked understanding of distributed transactions which is good enough for your ego to think is a really good business outcome.

5. Design another fucking microservice and correlation system for transaction registration.

6. Hand it over to some junior and senior developers who half-ass the whole thing because they don't understand your inane ramblings and have no idea how to test it properly.

7. Throw it into production and shout SUCCESS as loud as possible over the sounds of creaking, grinding and explosions.

How this should have turned out...

1. Actually realise that you're only doing about 5 million transactions a day and that's hardly anything.

2. Stuff the whole shebang behind a monolith with a single call, single transaction and in one storage and failure domain.

3. Pay for a slightly fatter DB instance.

4. Go back to developing things with a better ROI.

Apologies for the bitterness but it is realistic.

Re:Transactions in a Microservice World by exabrial on Tuesday August 22, 2023 @05:01PM (#37228470)
step 8: move to the next startup for a +$15k salary bump before your code ever sees heavy prod usage. Mark your resume as "expert in web scale".
Re:Transactions in a Microservice World by baz00 on Tuesday August 22, 2023 @05:03PM (#37228479)
So so so so true. I am haunted by the ghosts of so many of those bastards. The place is like "oh no they left - quick hire another charlatan".
Re:Transactions in a Microservice World by sharpy on Tuesday August 22, 2023 @05:28PM (#37228753)
Haha. We called those "promotion driven architecture". I mean if you just shove the whole thing into a monolith, no matter how appropriate, how is this going to serve as a technical artifact supporting promotion?
Re:Transactions in a Microservice World by vsareto on Tuesday August 22, 2023 @06:34PM (#37229484)
This dumb industry can seemingly support a large amount of charlatans and honestly I don't blame them because they can get decent money while not being bitter/miserable/ashamed and letting the weight of bad code or architecture get to them.
Re:Transactions in a Microservice World by nine_zeros on Tuesday August 22, 2023 @06:13PM (#37229257)
Step 7.5: Show all that to management who demands "new things" for a promotion.
Re:Transactions in a Microservice World by cultofmetatron on Tuesday August 22, 2023 @05:55PM (#37229064)
if you do go over that.

step 5: partition your database and setup sharding and use logical replication to replicate columnar storage on redshift for long term analystics.

whatever is past step 6, you probably wont' get there

Re:Transactions in a Microservice World by VincentEvans on Tuesday August 22, 2023 @06:22PM (#37229352)
I know a few people who work at a place where they stuffed all their databases on the same server, and all their systems just write to whatever database they feel like on that same server, share data via database, join data across databases etc. And they use upvoted cynical memes like this comment to justify their “architecture” because “microservices are a fad”.

So as one might expect - various automated reports and actions routinely fail with deadlocks and timeouts, any change anywhere has a pretty big chance of screwing some other distant part of another system, all services need full unrestricted access to all databases, and off course nothing can really be tested because you need to run practically every database and service on the same machine to even try to test.

Naturally the pace of work is glacial, and bugs are blamed on individual intellectual failing of lesser tenured developers not having the experience and the vast system trivia knowledge of “lifers” who secured their guaranteed employment this way.

You might even be those people for all i know.

Re:Transactions in a Microservice World by JamesBarney on Tuesday August 22, 2023 @06:39PM (#37229531)
Having multiple systems managed by different teams sharing a database is not a monolith. I've seen that idea brought up multiple times by microservices enthusiasts as a way to route around the difficulty of transactions. Most monolith enthusiasts like myself would build one service on top of one database.
Re:Transactions in a Microservice World by z3t4 on Tuesday August 22, 2023 @06:35PM (#37229492)
[delayed]
Re:Transactions in a Microservice World by exabrial on Tuesday August 22, 2023 @06:34PM (#37229481)
The advantage is you know quickly rather than slowly that it’s broken.
Re:Transactions in a Microservice World by VincentEvans on Tuesday August 22, 2023 @06:41PM (#37229551)
It’s great! Abundant and regular opportunities to step in and heroically fix various fires that routinely start to smolder in surprising and unexpected places.
Re:Transactions in a Microservice World by baz00 on Tuesday August 22, 2023 @06:51PM (#37229637)
This is how you end up bald very quickly.
Re:Transactions in a Microservice World by danpalmer on Tuesday August 22, 2023 @06:44PM (#37229570)
Both of these things can be true. I worked on a monolith with one database and boring, correct, transactions, and it was a joy for almost all the time. Productivity was high.

We went through a few growing pains when we had some big reports, but the first pass just moved them to a ~100 line batch reporting system, that solved it for another 2 years. Then we hit growing pains again but by that time had a shiny new data warehouse and just moved them to use the data warehouse instead.

There's truth to both sides of this, but optimising for where most engineering is happening, keeping developers productive, and simple solutions that everyone understands, have always paid off well in my experience.

Re:Transactions in a Microservice World by VincentEvans on Tuesday August 22, 2023 @09:15PM (#37230718)
Its almost as if people work on different kind of systems, and each problem and solution requires context and nuance, and when you come across an academic article describing a complex solution to a complex problem in complex system that has complex operating requirements that you have never encountered professionally and don’t have any experience with - it would be best to file it away for later, or just move on.

But maybe posting a snarky meme about it isn’t constructive.

Re:Transactions in a Microservice World by baz00 on Tuesday August 22, 2023 @06:50PM (#37229621)
Not one of those. They got the microservice database isolation correct. But nothing else. Well the coffee is good and the toilets are clean.

As for lifers, everyone I work with knows how many days until retirement. Sad sad people. I am merely hopping between frying pans until I can slide out into academia and get old and rot somewhere hopefully with tenure.

Re:Transactions in a Microservice World by ngc248 on Wednesday August 23, 2023 @02:07AM (#37232366)
Exactly, a monolith is suitable for small orgs or companies which deliver one thing. Microservices are not a fad and they solve a real world problem where you need to deliver for ex: something like a cloud platform. 10s of orgs cannot work on a monolith without stepping over each other, just the communicatin over. Also microservice enable you to scale (scale-out) the parts of the system that need scaling.

At scale microservices do help, but you get into unnecessary problems when you don't have scale and use microservices.

Re:Transactions in a Microservice World by baz00 on Wednesday August 23, 2023 @05:10AM (#37233516)
Microservices are just monoliths…
Re:Transactions in a Microservice World by hinkley on Tuesday August 22, 2023 @06:25PM (#37229376)
If you want to sneak some buzzwords in, work Raft into the protocol so that one machine is serializing all of the transactions but you can replace it with another if it falls over.

Except someone wrote their own and it's buggy.

Re:Transactions in a Microservice World by baz00 on Tuesday August 22, 2023 @06:43PM (#37229561)
Fuck raft and distributed consensus. I’ve spent too many nights awake fixing consul.
Re:Transactions in a Microservice World by hinkley on Wednesday August 23, 2023 @09:56AM (#37235936)
I think I want to hear that story. I keep very coarse grained data in consul and haven’t had any problems.
Re:Transactions in a Microservice World by jeremycarter on Tuesday August 22, 2023 @06:29PM (#37229418)
I'll stick to my Actor Model thanks. Akka (Scala) and Microsoft Orleans FTW.
Re:Transactions in a Microservice World by xnx on Friday August 25, 2023 @08:24AM (#37260903)
A huge amount of inappropriate technology is used because people have incorrect understanding of what scale is.
Re:Transactions in a Microservice World by latchkey on Tuesday August 22, 2023 @05:48PM (#37228965)
Back in 2005, we ran the worlds largest hardcore porn site (kink) on JBoss 4, jgroups with multicast, EJB3 and we did all of this on 3 servers, but only needed one and used the rest of for redundancy on fully automated rolling deploys. They weren't even very special servers... just some Dell blades.

We had full transaction isolation and it just ran thousands of connections and transactions per second, gloriously, without any issues. We had a micro currency (kinks), first 1080p pay per minute live viewing, and a whole slew of happy customers with .gov/.mil email addresses.

Kids these days with their 'microservices'... psssschhhaaa...

Re:Transactions in a Microservice World by monero-xmr on Tuesday August 22, 2023 @06:35PM (#37229496)
This times 1000. Devs way over estimate their workloads and way under estimate the ability to scale with fairly low effort. Creating distributed spaghetti is still spaghetti - but now your bowls are spread all over the map.
Re:Transactions in a Microservice World by anonzzzies on Wednesday August 23, 2023 @02:22AM (#37232445)
Yep. But I applaud it; let my competitors please adopt AWS, k8s and microservices. We run our monoliths on a few $/mo VPSs while our competitors run 1000-100000s $ per month (literally met the CTO of a UK competitor a few weeks ago at a meetup and he explained their prod + staging for their few clients is now up to $80k/mo at aws; comparing to run around $2000 in total hosting for all our clients together for staging, prod + test. Of course that competitor is playing with investor money so they don't care). Our way requires vastly less resources; humans & machines, so we run far higher margins (in our industry, pricing is identical for all including the sales discounts that are given), we sleep better and more (monoliths are so much easier/faster to debug and deploy) and when things are down (like last year) in the market, we have stacks of profits while two of the top competitors had to get new funding to not just disappear (both did get the funding).

I wish everyone many microservices and cutting edge frontend frameworks!

Re:Transactions in a Microservice World by Shaanie on Wednesday August 23, 2023 @12:10PM (#37238229)
Less cost, sure. Faster to debug? Eh, possibly, in some situations. Faster to deploy though... How could that possibly be true?
Re:Transactions in a Microservice World by anonzzzies on Wednesday August 23, 2023 @03:17PM (#37240871)
One binary on a vps? To deploy all we have. How can it be faster/easier?
Re:Transactions in a Microservice World by cachvico on Wednesday September 06, 2023 @09:06AM (#37404547)
Do you have zero downtime upgrades and automated rollback on deployment failure?
Re:Transactions in a Microservice World by francasso on Tuesday August 22, 2023 @06:04PM (#37229163)
How to do transactions in a microservices world: change world.
Re:Transactions in a Microservice World by sarchertech on Tuesday August 22, 2023 @07:09PM (#37229783)
I wrote a guest blog post on the 2 generals problem that goes into a bit about sagas, which this paper touches on briefly in the compensation section.

One of these days I’m going to write a follow up blog post called “You (probably) don’t need sagas.” About how at my current company I was able to remove almost all of the sagas we were using because it turns out they were never needed in the first place.

https://haydenjames.io/the-two-generals-problem/

Re:Transactions in a Microservice World by jlledo on Tuesday August 22, 2023 @07:26PM (#37229912)
Please do, that sounds interesting! If you choose to do so, could you please share a way to get notified when it comes out?
Re:Transactions in a Microservice World by sarchertech on Wednesday August 23, 2023 @06:40AM (#37233996)
Sure thing! You can sign up for the mail list for my free book here https://www.networksfromscratch.com

I also publish updates about related blog posts.