Share your thoughts on microservices

twitter logo github logo ・1 min read

Hi everyone!

I was just wondering what other people who work with microservices do to make sure everything gets done right.

More specifically:

  • If say two services try to modify the same data at the same time, how do you prevent that? e.g. Using Redis as a fast cache to have a distributed lock?
  • If for example you want to reduce a user's balance then decrease an inventory amount (assuming those are different services), what do you do if two people are trying to buy the last item? What if a person tries to buy something twice?

Any good reads on distributed systems like that?

Thanks

twitter logo DISCUSS (1)
Classic DEV Post from Feb 10

Is Haskell bad for FP?

After reading a few frustrated posts from people trying to learn FP through Has...

Errietta Kostala profile image
I fight software and sometimes don't lose

Still don't have a dev.to account? You're welcome to lurk, but it's better to be part of the community.

Sign up now ❤️