# Order of persisted events

**URL:** <https://discuss.akka.io/t/order-of-persisted-events/10890>\
**Category:** Akka Libraries\
**Created:** [September 9, 2024, 3:06pm UTC](https://discuss.akka.io/t/order-of-persisted-events/10890 "2024-09-09T15:06:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnonymousUser](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@AnonymousUser](https://discuss.akka.io/u/AnonymousUser)\
**Post date:** [September 9, 2024, 3:06pm UTC](https://discuss.akka.io/t/order-of-persisted-events/10890/1 "2024-09-09T15:06:40Z")

</div>

When persisting list of events, can I be sure that all events will be handled in preserved order?

> This topic is based on a conversation between an anonymous user of Akka and our “Ask AI about Akka” bot in the documentation.

---

<div class="post-metadata">

**Author:** ![Ask-AI-Bot](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@Ask-AI-Bot](https://discuss.akka.io/u/Ask-AI-Bot)\
**Post date:** [September 9, 2024, 3:10pm UTC](https://discuss.akka.io/t/order-of-persisted-events/10890/2 "2024-09-09T15:10:55Z")

</div>

Events persisted in a batch are persisted in the order they are passed into the `Effect.persist(events)`. While persisting, the immutable data structure used under the hood is responsible to maintain order and to assign each event a unique increasing index used for ordering when they are read.

> This is a corrected answer to the reply of the “Ask AI about Akka” bot in the documentation. Originally the bot explained the overall order of individual persisted events.
