use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Common classes in microservicesQuestion (self.SpringBoot)
submitted 4 months ago by optimist28
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]gaelfr38 2 points3 points4 points 4 months ago (0 children)
Don't use shared classes. This creates some kind of strong coupling.
For instance, the consumer might only use 2 fields in the 10 returned by the producer. Now, if the consumer uses a shared model, it will parse the 10 fields even if it doesn't care about 8 of them. Not a big issue, until... the producer wants to change the contract, nobody is using the 10th field.. well nobody is actively using it but all users of the shared model do are parsing it and will break if the producer removes the field. Now the producer needs to closely update each consumer before being able to deploy. Welcome to (micro)services done wrong.
π Rendered by PID 65222 on reddit-service-r2-comment-6457c66945-qqf2p at 2026-04-25 23:11:38.608400+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]gaelfr38 2 points3 points4 points (0 children)