Skip to content

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

@weemen

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

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