• Moc@lemmy.world
    cake
    link
    fedilink
    arrow-up
    7
    arrow-down
    2
    ·
    edit-2
    2 years ago

    Someone in the thread mentioned that to get the benefits of micro services in a monolith, you can use a linting rule to prevent dependencies across modules

    Share data, not state.

    In Rust this is a pretty good use-case for channels, which can be used to send messages across threads.

    • lysdexic@programming.dev
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      2 years ago

      Someone in the thread mentioned that to get the benefits of micro services in a monolith, you can use a linting rule to prevent dependencies across modules

      I don’t think that makes any sense. The main benefit of microservices is organizational, more specifically how a single team gets to own all aspects of developing, managing, and operating a service.

      Lower in priority, there’s enabling regional deployments and improved reliability.

      How are linting rules even expected to pull that off?