You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- 2The 5-10 files to 70-100 files is a bit more than a hypothetical. My last task was to create some functionality in one of our newer microservices. The new service was supposed to receive a request, and save a document. In doing so, I needed classes to represent the user entities in 2 separate databases and repos for each. Repos to represent other tables I needed to write to. Dedicated classes to handle file-data checking and name-generation. And the list goes on. Not to mention, every class that contained logic was represented by an interface so it could be mocked up for unit tests.JD Davis– JD Davis2019-07-09 14:07:32 +00:00Commented Jul 9, 2019 at 14:07
- 1As far as our older codebases, they are all tightly coupled and incredibly monolithic. With the SOLID approach, the only coupling between classes has been in the case of POCOs, everything else is passed through DI and interfaces.JD Davis– JD Davis2019-07-09 14:09:46 +00:00Commented Jul 9, 2019 at 14:09
- 3@JDDavis - wait, why is one microservice working directly with multiple databases?Telastyn– Telastyn2019-07-09 15:35:40 +00:00Commented Jul 9, 2019 at 15:35
- 1It was a compromise with our dev manager. He massively prefers monolithic and procedural software. As such, our microservices are a lot more macro than they should be. As our infrastructure gets better, slowly things will move into their own microservices. For now we're somewhat following the strangler approach to move certain functionality out into microservices. As multiple services need access to a specific resource, we are moving those into their own microservices as well.JD Davis– JD Davis2019-07-09 15:45:58 +00:00Commented Jul 9, 2019 at 15:45
Add a comment |
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-cs