-
Notifications
You must be signed in to change notification settings - Fork 193
-
|
I don't know if this is an issue or not. I'm also relative new to pekko so I cannot fully judge. So what did I do (and I maybe I'm measure it on the wrong way). 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. Many thanks in advance Leon |
Beta Was this translation helpful? Give feedback.
All reactions
Problem resolved: it was configuration!!!
# Pekko Persistence Query provider
jdbc-read-journal {
use-shared-db = "slick-read-journal"
refresh-interval = "100ms"
journal-sequence-retrieval.query-delay = "100ms"
}
Replies: 1 comment 7 replies
-
|
@weemen I'll leave it in this repo but arguably this be in https://github.com/apache/pekko-projection. I am not an expert on Pekko Projections but I would suggest that if you could provide code snippets and/or more detail on your environment that that might help people to envision the issue. From download stats, Projections are not one of the most used Pekko features. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Thanks @weemen. I don't have the time to really look into this. pekko-projections doesn't have any real community behind it. Most of the effort is on the core Pekko libs and Pekko HTTP. Maybe, someone else will have a look. OpenTelemetry has some Pekko support and may also be able to instrument the database calls. If we had paid developers and a big budget, we would be instrumenting the code to allow Telemetry tooling to work well with the Pekko libs but even at that, we would start with Actors and Streams and take ages to get around to Persistence and then Projections. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Possibly. you could enable debug logging and analysing just one event instead of having many events multiplying the logs. If you have any suggestions for useful logging, please feel free to submit ideas or PRs. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Heey man first of all thank you very much for your quick response!! That's highly appreciated! On my way home today from the office I thought to also create a dummy projection with r2dbc to see if I get the same results. Again thanks a lot, for everyone else reading this: If you have ideas feel free to dump them here! |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Problem resolved: it was configuration!!! # Pekko Persistence Query provider |
Beta Was this translation helpful? Give feedback.
All reactions
-
2