Building sustainable microservices – our opinions and advice
building.echo.co.uk
Building sustainable microservices – our opinions and advice
1–4 of 4 posts
Re: Building sustainable microservices – our opinions and advice
#2Hi, I'm the Author of this. Feel free to ask any questions!
Re: Building sustainable microservices – our opinions and advice
#3Hi, I'm the Author of this. Feel free to ask any questions!
Thanks a lot for this post.
Could you expand on the techniques you use to implement idempotency in your workers/queues and in your rpcs?
I have seen a mix of doing nothing if there is nothing to do, locking, using a idempotency key and so on. But I am always curious to see what others do.
Re: Building sustainable microservices – our opinions and advice
#4Hi, I'm the Author of this. Feel free to ask any questions!
Thanks a lot for this post. Could you expand on the techniques you use to implement idempotency in your workers/queues and in your rpcs? I have seen a mix of doing nothing if there is nothing to do, locking, using a idempotency key and so on. But I am always curious to see what others do.
Yeah, basically all of the above. We rely heavily on database row locking and then checking if it's already done. Sometimes you just don't need to check to (for example, just updating a timestamp)