# Ordering Guarantee of messages / Sequencing

**URL:** <https://community.temporal.io/t/ordering-guarantee-of-messages-sequencing/9206>\
**Category:** Community Support\
**Tags:** java-sdk\
**Created:** [August 16, 2023, 9:49am UTC](https://community.temporal.io/t/ordering-guarantee-of-messages-sequencing/9206 "2023-08-16T09:49:00Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![Benedito\_Marques](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/benedito_marques/32/3588_2.png) [@Benedito\_Marques](https://community.temporal.io/u/Benedito_Marques)\
**Post date:** [December 21, 2024, 11:25pm UTC](https://community.temporal.io/t/ordering-guarantee-of-messages-sequencing/9206/22 "2024-12-21T23:25:30Z")

</div>

Exactly: This is the model that I want to migrate: don’t use long running workflow, and open 1 workflow per event, but to do that, I need to ensure that this workflows will be executed in order, to garante the consistency of data. If Temporal still not support the ordering, maybe I need to migrate to Google PubSub of something like this.

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [December 22, 2024, 10:32pm UTC](https://community.temporal.io/t/ordering-guarantee-of-messages-sequencing/9206/23 "2024-12-22T22:32:59Z")

</div>

Temporal cannot guarantee order of execution at such rate.

---

<div class="post-metadata">

**Author:** ![athultuttu](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@athultuttu](https://community.temporal.io/u/athultuttu)\
**Post date:** [March 4, 2025, 8:18pm UTC](https://community.temporal.io/t/ordering-guarantee-of-messages-sequencing/9206/24 "2025-03-04T20:18:53Z")

</div>

@maxim whats the solution if the average rate is low? i have a use case of doing balance updates for an account. A single workflow will be invoked for all accounts with id as account id. how can i achieve ordering on account level if average rate is 1 per sec?

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [March 5, 2025, 2:41am UTC](https://community.temporal.io/t/ordering-guarantee-of-messages-sequencing/9206/25 "2025-03-05T02:41:44Z")

</div>

At a low rate per key, create a workflow per key (using the key as part of the workflow id). Send all events for the given key to the corresponding workflow. Let workflow handle the ordering. Usually, such workflows are signaled using SignalWithStart to create them lazily.

[Previous page](https://community.temporal.io/t/ordering-guarantee-of-messages-sequencing/9206.md?page=1)
