115
you are viewing a single comment's thread
view the rest of the comments
[-] Moc@lemmy.world 7 points 1 year ago* (last edited 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 7 points 1 year ago* (last edited 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 5 points 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.

[-] lysdexic@programming.dev 2 points 1 year ago

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

My point was that modularizing an application and decoupling components does not, by any mean, give any of the benefits of microservices.

The benefits of microservices are organizational and operational independence. Where do you see coupling between components to play a role in any of these traits?

this post was submitted on 12 Sep 2023
115 points (96.0% liked)

Programming

17025 readers
147 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS