redis / redis-io

Application running http://redis.io
http://redis.io
637 stars 176 forks source link

Stream "monotonically increasing" term is wrong #152

Open manast-apsis opened 6 years ago

manast-apsis commented 6 years ago

I noticed that both in live talks and in the streams introduction text, the author uses the term "monotonically increasing" for the IDs autogenerated by the XADD command. However the term is wrong, since monotonic would imply that two consecutive IDS could be the same, whereas the author most certainly means "strictly increasing".

https://redis.io/topics/streams-intro

manast-apsis commented 6 years ago

to clarify: monotonically increasing would be the timestamp part of the ID, but since it has a counter postfixed, the ID itself becomes strictly increasing.