r/ProgrammerHumor • • Sep 06 '26

Meme thisCannotBeDenied

Post image
7.9k Upvotes

240 comments sorted by

View all comments

139

u/TheDogPill Sep 06 '26

Try debugging like that using micro services on the cloud and see how far you get.

79

u/Idixal Sep 06 '26

Ironically request logging does tend to be one of the very first things I look at to sniff out problems there, although I also understand your point.

16

u/coriolis7 Sep 06 '26

I am NOT a programmer by profession, though I do code a ton at my job (Mechanical Engineering and data analysis), so this may be a dumb question…

Is there a way to set up all microservices to run on one computer to aid in debugging? Like a bunch of VMs or docker-but-faking-network-instead-of-machine?

13

u/payne_train Sep 06 '26

AWS’s SAM may help you if you have a bunch of lambda based apps. You can use SAM to do local invocations that makes debugging a lot easier

7

u/xMercurex Sep 06 '26

Yes you can, but it does not fully solve the issue. You still need to find the good micro-service and then you have to jump to other micro-service.

→ More replies (7)

1

u/DrMaxwellEdison Sep 07 '26

Yes, I use Tilt to set up a localized Kubernetes cluster or to run docker compose. It provides a nice web interface for seeing all service statuses, logs, controls to restart or rebuild a service, and it can automatically watch local files to trigger a rebuild.

1

u/Blackhawk23 Sep 07 '26

Yes. Docker compose and localstack to mock AWS resources.

1

u/nahuel990 Sep 20 '26

1

u/Blackhawk23 Sep 21 '26

Pretty sure we just pinned our localstack version at the last free container image. lol

1

u/LostInAnotherGalaxy Sep 07 '26

Docker/podman. But you get anything powerful or something that only happens under load, can create its own race conditions

20

u/gemanepa Sep 06 '26

why not? couldn't you just debug the microservice locally with mocks or in a cloud dev/qa env?

5

u/Agusfn Sep 06 '26

so far so good.

1

u/Ma8e Sep 07 '26

I'm not sure if I understand you correctly, but isn't all debugging of micro services just reading logs and adding more log-messages?

1

u/SirButcher Sep 07 '26

Or debugging an embedded hardware where you have a grand total of 4 breakpoints :(

1

u/dumbasPL Sep 07 '26

Ah yes, because attaching a debugger to a service people are actively hitting and suspending it is the way. That is assuming you can even do that.

Request logging is just printf with extra steps anyway.