News for hackers. Stuff that matters.
Re:Biggest CPU for the Bad System by shermantanktop on Monday May 13, 2024 @10:56AM (#40344063)
Unfortunately the word “microservices” on HN brings out some low-quality discourse. Maybe this time will be different?
Re:Biggest CPU for the Bad System by pixl97 on Monday May 13, 2024 @11:39AM (#40344549)
For this particular instance and company, no. Not because microservices can't work, but instead because of the coordination required between services/api/database that doesn't appear to exist at all in this company.

This said, depending on your application and how it's split up quite often there are easy wins. An example I've seen is a company that had a huge batch reporting jobs for reporting at fixed intervals. Hammered the hell of out production, so was moved to pull data from a read only replica.

Re:Biggest CPU for the Bad System by rbanffy on Monday May 13, 2024 @11:58AM (#40344751)
It really depends on what they are doing. At this stage, I'd suspect it needs some major rearchitecture, but they accumulated so much tech debt it's difficult to say what next steps could be. As was pointed out by others, starting by introducing some strong governance practices would be a good start.
Re:Biggest CPU for the Bad System by hot_gril on Monday May 13, 2024 @12:16PM (#40344932)
My department was in a bad single-DB position like this. The only way out was big rewrites, and generally each team had one service with its own DB in the end. Dunno if you'd call that microservices or not.
Re:Biggest CPU for the Bad System by rbanffy on Tuesday May 14, 2024 @08:43AM (#40354606)
I would if they can have their own release cycles.
Re:Biggest CPU for the Bad System by hot_gril on Tuesday May 14, 2024 @12:49PM (#40357226)
Then yes
Re:Biggest CPU for the Bad System by hot_gril on Wednesday May 15, 2024 @02:08PM (#40370363)
The important thing in these convos is to be clear each time what you mean by "microservices," because there isn't a solid definition for that. I've seen too many debates at work over whether we should use microservices, where both sides already agree on the actual design.