Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup mono-repo #1

Open
nimish-gupta opened this issue Dec 2, 2019 · 3 comments
Open

Setup mono-repo #1

nimish-gupta opened this issue Dec 2, 2019 · 3 comments

Comments

@nimish-gupta
Copy link
Contributor

Discuss mono-repo/multi-repo. Check the pros and cons of both the formats.

@souravdasslg
Copy link
Collaborator

I prefer to have mono-repo when:

  1. Either I'm are using templating engine based frontend, or have SSR implemented.
  2. I don't have to worry about the complexity of communication between frontend-backend.
  3. If you are in the MVP stage, this might help you to move a bit faster.

Cons of Mono-Repo:

  1. Mono-repo is a single point of failure. If you don't have a fault-tolerant system, the blackout will be throughout the system.
  2. Resource distribution is not fair if you ask me. There is no option for optimizing frontend-heavy and backend heavy services.

And must use cases for multi-repo:

  1. CI/CD based build & deploy architecture.
  2. You have a considerable number of the component in your application
  3. Perform automated test efficiently. For example, on updating the frontend view, there is no need for a backend unit-test.
    4.Very frequent modification of functionality.

Cons:

  1. It costs simplicity and money.
  2. You have to spend a considerable amount of time to keep things in sync.

@nimish-gupta
Copy link
Contributor Author

Resource distribution is not fair if you ask me. There is no option for optimizing frontend-heavy and backend heavy services.

For this, you can use micro-serivce architecture which is generally used in the mono-repos.

Mono-repo is a single point of failure. If you don't have a fault-tolerant system, the blackout will be throughout the system.

Can you please explain this furthermore? I think you are confused between monolith and mono-repo architecture.

@souravdasslg
Copy link
Collaborator

souravdasslg commented Dec 3, 2019

Can you please explain this furthermore? I think you are confused between monolith and mono-repo architecture.

Yes,I'm completely confused. I have always considered mono-repo as monolith also. Even some reading, the differences are still very subtle for me.
If "monolithic" stands for "composed all in one piece", then the mono-repo does the same right?
Except for the fact that multiple projects are contained under a single repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants