Axon 4.4 __config in token_entry


After updating to axon framework 4.4, we noticed the following entry added to the token_entry in our database. We were wondering what it is used for?

*************************** 1. row ***************************
processor_name: __config
segment: 0
owner: NULL
timestamp: 2021-01-11T15:00:30.266702Z
token: <org.axonframework.eventhandling.tokenstore.ConfigToken>idcf5e1b4b-f17e-4b8e-bd3a-98fb885708ff</org.axonframework.eventhandling.tokenstore.ConfigToken>
token_type: org.axonframework.eventhandling.tokenstore.ConfigToken

Hi Laura this is the PR that introduced the config token:

I hope this helps!


We use that particular token to identify each individual TokenStore instance’s storage. So two TokenStore instances that share a storage will now be recognized as such, and give less false positives on duplicate token claim detection.

From the PR that introduced the feature:

This identifier allows the processors to identify whether two TokenStore instances (either on the same node or different nodes) are pointing at the same location. This is useful for AxonServer when trying to balance the number of active threads on nodes. This identifier can distinguish different processors when they carry the same name, but point at different token stores.