Skip to content

Time it takes between an envelope be created and being processed #2165

Closed

Description

@weemen

I don't know if this is an issue or not. I'm also relative new to pekko so I cannot fully judge.
Recently I noticed that my projections are slow and I'm figuring out if this default behaviour or not.

So what did I do (and I maybe I'm measure it on the wrong way).
I'm running my app locally on my laptop. (No cluster setup)
My app has one projection active (I disabled all my other projections)
My projection does do a simple insert to postgress (this takes 30ms)
and at the end of the projection handler I do:

val timing             = (System.currentTimeMillis() - envelope.timestamp)

The outcome timing is always in the range 1800ms to 2200ms.

Although we strive for eventual consistency this still seems quite slow to me.
Is this normal? do I messure it in the correct way?

Many thanks in advance

Leon

Activity

  1. locked and limited conversation to collaborators on Sep 6, 2025
  2. converted this issue into a discussion #2166 on Sep 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions