• addie@feddit.uk
    link
    fedilink
    arrow-up
    7
    ·
    7 months ago

    Think you’re understating it there. Network call takes milliseconds at best. Function call, if the CPU has correctly predicted the indirect branch, is basically free, but even if it hasn’t then you’re talking nanoseconds. It’s slower by millions of times.

    • 1984@lemmy.today
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      7 months ago

      Yeah it’s insane. But of course if scaling different parts of the application, I guess micro services are the way to do it. But otherwise one could scale the entire app by just putting more of the entire app on servers. No need for micro services. It just needs to be written to be able to listen to message queues and you can have any number of app instances.