by maps7 · 6y ago · 0 comments
> Rule 10: When to make a microservice
> I would use a microservice when I have a relatively small and simple chunk of code that needs to run every once in a while.
Isn't this wrong? There's no reason a microservice should just run once in a while. It also creates a lot of complexity for a simple chunk of code.
Author here. Part of the point was to expose my ignorance and get people to rip it to shreds. So have at it if you want. I've actually learned a good amount so far using this method.
> when I have a relatively small and simple chunk of code that needs to run every once in a while.
I think "run every once in a while" actually means stable requirements.
I think the number of executions per time is irrelevant. Being stable is the important thing.
My theory is that "run every once in a while" is substituting stable requirements because that's what I also see in organizations. What is execute a lot usually has an higher importance for business which also translates to unstable requirements.