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

Fleshing Out Message Structure

In Chapter 2, Writing Messages, we showed some example messages. That’s what they look like before being written to the Message Store. The act of writing them adds some additional fields:

streamName

A string and the name of the stream this event belongs to. We discussed the importance of streams and how they’re namedhere.

position

This is used for optimistic locking, a method for dealing with concurrent writes. It denotes a particular message’s position within its stream. The Message Store will generate these values.

globalPosition

Just as position records a message’s position within its stream, globalPosition records a message’s position within the entire Message Store. This field enables real-time consumption ...

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