• Moc@lemmy.world
    link
    fedilink
    arrow-up
    3
    arrow-down
    2
    ·
    edit-2
    1 year 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
      3
      ·
      edit-2
      1 year 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?

      • Moc@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Should have explained my viewpoint. Most startups should not do micro services.

        Using linting to prevent coupling between modules can give you some of the benefits of micro services without going all in.