Skip to Content
Practical Microservices
book

Practical Microservices

by Ethan Garofolo
April 2020
Intermediate to advanced
292 pages
6h 50m
English
Pragmatic Bookshelf
Content preview from Practical Microservices

Accepting Potential Duplication

If you had an uneasy feeling as you went through how we handled idempotence here, that’s awesome that you’re developing a sense for it. Before publishing the video, we checked to see if the video was already done. We only have a single video-publishing instance, so we don’t have to worry about two or more instances competing with one another. However, we could very well transcode the video and get restarted due to deployment or crash before writing the VideoPublished event. When it restarts, it’ll see the PublishVideo command and do it all over again.

Transcoding videos is cheap, and we absolutely cannot accept failing to transcode the videos—they don’t go out to our viewers if they don’t get transcoded. Also, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microservices in Action

Microservices in Action

Morgan Bruce, Paulo A Pereira
Microservices: Up and Running

Microservices: Up and Running

Ronnie Mitra, Irakli Nadareishvili
Kubernetes Best Practices

Kubernetes Best Practices

Brendan Burns, Eddie Villalba, Dave Strebel, Lachlan Evenson

Publisher Resources

ISBN: 9781680507782Errata Page