News for hackers. Stuff that matters.
Re:Why Bloat Is Still Software's Biggest Vulnerability (2024) by jongjong on Wednesday May 07, 2025 @12:13AM (#43912214)
We do use docker compose but I also need to run a server from source for most of the microservices in order to modify and debug the code. Most features touch on at least 3 to 4 repos/microservices. The problem is really opening and launching code across 6 bash consoles some of which require an additional manual authentication step. It's just a very complicated system.

I'm sure the launch can be fully automated but it's kind of at the edge of not worth automating because of the frequency of how often I need to restart everything... Also the CEO just doesn't like to make time for work which doesn't yield features.

Re:Why Bloat Is Still Software's Biggest Vulnerability (2024) by branko_d on Wednesday May 07, 2025 @12:54AM (#43912396)
I remember, at the turn of the century (was is 2001?) when Microsoft was touting "weak coupling" achievable through "web services" and demoing the support for SOAP in Visual Studio.

To me, that was the strangest idea - how could you "decouple" one service from another if it needs to know what to call, and what information to pass and in what format? Distributing the computing - for performance, or redundancy or security or organizational reasons - that I can understand - but "weak coupling" just never made sense to me.

Re:Why Bloat Is Still Software's Biggest Vulnerability (2024) by jongjong on Wednesday May 07, 2025 @06:42PM (#43921254)
Yeah it's a case of falling in love with the solution, not with the problem.

The real reason for tight coupling is simply complex interfaces. That means a range of things; complex function signatures which rely on highly specific parameters (e.g. live instances instead of raw primitive values or raw data) or return complex values instead of raw information "here's what I did". It can also mean complex API parameters and response payloads. Ideally, complex processing should be hidden behind simple interfaces which don't encourage micromanaging the module/service. If the interface is as complex as the processing behind it, that's a design failure and will lead to tight coupling.

Separating code into modules and services may be intended as a way to encourage developers to think about separation of concerns so that they may end up designing simpler interfaces but it doesn't seem to help certain people. Some see it as an opportunity to add even more complexity.

Re:Why Bloat Is Still Software's Biggest Vulnerability (2024) by auszeph on Wednesday May 07, 2025 @02:17AM (#43912744)
Something I've felt is missing is a developer orchestration layer that makes it really easy to define the set of services like a docker-compose but just as easy to switch implementations between container, source, or remote.

Sometimes you need them all from source to debug across the stack, when you don't you might need a local container to avoid pollution from a test env, sometimes it is just fine to port-forward to a test env and save yourself the local resources.

Re:Why Bloat Is Still Software's Biggest Vulnerability (2024) by codr7 on Wednesday May 07, 2025 @02:18AM (#43912748)
Yep, one of the minor details the micro service fan club don't talk about much.

Firing up the whole mess and debugging one or two of them locally is always a major pain, and god help you if you have no idea which services to stub and which to debug.